files.com 1.2.35 → 1.2.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -554,9 +554,16 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
554
554
  // Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
555
555
  //
556
556
  // Parameters:
557
+ // api_token - string - Files Agent API Token
557
558
  // permission_set - string - The permission set for the agent ['read_write', 'read_only', 'write_only']
558
559
  // root - string - The root directory for the agent
560
+ // hostname - string
561
+ // port - int64 - Incoming port for files agent connections
562
+ // status - string - either running or shutdown
563
+ // config_version - string - agent config version
559
564
  // private_key - string - The private key for the agent
565
+ // public_key - string - public key
566
+ // server_host_key - string
560
567
  // subdomain - string - Files.com subdomain site name
561
568
  (0, _defineProperty2.default)(this, "configurationFile", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
562
569
  var params,
@@ -586,51 +593,93 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
586
593
  }
587
594
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
588
595
  case 8:
589
- if (!(params.permission_set && !(0, _utils.isString)(params.permission_set))) {
596
+ if (!(params.api_token && !(0, _utils.isString)(params.api_token))) {
590
597
  _context.next = 10;
591
598
  break;
592
599
  }
593
- throw new errors.InvalidParameterError("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(params.permission_set)));
600
+ throw new errors.InvalidParameterError("Bad parameter: api_token must be of type String, received ".concat((0, _utils.getType)(params.api_token)));
594
601
  case 10:
595
- if (!(params.root && !(0, _utils.isString)(params.root))) {
602
+ if (!(params.permission_set && !(0, _utils.isString)(params.permission_set))) {
596
603
  _context.next = 12;
597
604
  break;
598
605
  }
599
- throw new errors.InvalidParameterError("Bad parameter: root must be of type String, received ".concat((0, _utils.getType)(params.root)));
606
+ throw new errors.InvalidParameterError("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(params.permission_set)));
600
607
  case 12:
601
- if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
608
+ if (!(params.root && !(0, _utils.isString)(params.root))) {
602
609
  _context.next = 14;
603
610
  break;
604
611
  }
605
- throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
612
+ throw new errors.InvalidParameterError("Bad parameter: root must be of type String, received ".concat((0, _utils.getType)(params.root)));
606
613
  case 14:
607
- if (!(params.subdomain && !(0, _utils.isString)(params.subdomain))) {
614
+ if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
608
615
  _context.next = 16;
609
616
  break;
610
617
  }
611
- throw new errors.InvalidParameterError("Bad parameter: subdomain must be of type String, received ".concat((0, _utils.getType)(params.subdomain)));
618
+ throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
612
619
  case 16:
613
- if (params.id) {
620
+ if (!(params.port && !(0, _utils.isInt)(params.port))) {
621
+ _context.next = 18;
622
+ break;
623
+ }
624
+ throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
625
+ case 18:
626
+ if (!(params.status && !(0, _utils.isString)(params.status))) {
627
+ _context.next = 20;
628
+ break;
629
+ }
630
+ throw new errors.InvalidParameterError("Bad parameter: status must be of type String, received ".concat((0, _utils.getType)(params.status)));
631
+ case 20:
632
+ if (!(params.config_version && !(0, _utils.isString)(params.config_version))) {
614
633
  _context.next = 22;
615
634
  break;
616
635
  }
636
+ throw new errors.InvalidParameterError("Bad parameter: config_version must be of type String, received ".concat((0, _utils.getType)(params.config_version)));
637
+ case 22:
638
+ if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
639
+ _context.next = 24;
640
+ break;
641
+ }
642
+ throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
643
+ case 24:
644
+ if (!(params.public_key && !(0, _utils.isString)(params.public_key))) {
645
+ _context.next = 26;
646
+ break;
647
+ }
648
+ throw new errors.InvalidParameterError("Bad parameter: public_key must be of type String, received ".concat((0, _utils.getType)(params.public_key)));
649
+ case 26:
650
+ if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
651
+ _context.next = 28;
652
+ break;
653
+ }
654
+ throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
655
+ case 28:
656
+ if (!(params.subdomain && !(0, _utils.isString)(params.subdomain))) {
657
+ _context.next = 30;
658
+ break;
659
+ }
660
+ throw new errors.InvalidParameterError("Bad parameter: subdomain must be of type String, received ".concat((0, _utils.getType)(params.subdomain)));
661
+ case 30:
662
+ if (params.id) {
663
+ _context.next = 36;
664
+ break;
665
+ }
617
666
  if (!_this.attributes.id) {
618
- _context.next = 21;
667
+ _context.next = 35;
619
668
  break;
620
669
  }
621
670
  params.id = _this.id;
622
- _context.next = 22;
671
+ _context.next = 36;
623
672
  break;
624
- case 21:
673
+ case 35:
625
674
  throw new errors.MissingParameterError('Parameter missing: id');
626
- case 22:
627
- _context.next = 24;
675
+ case 36:
676
+ _context.next = 38;
628
677
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id), "/configuration_file"), 'POST', params, _this.options);
629
- case 24:
678
+ case 38:
630
679
  response = _context.sent;
631
680
  RemoteServerConfigurationFile = require('./RemoteServerConfigurationFile.js').default;
632
681
  return _context.abrupt("return", new RemoteServerConfigurationFile(response === null || response === void 0 ? void 0 : response.data, _this.options));
633
- case 27:
682
+ case 41:
634
683
  case "end":
635
684
  return _context.stop();
636
685
  }
@@ -107,6 +107,34 @@ var RemoteServerConfigurationFile = /*#__PURE__*/(0, _createClass2.default)(func
107
107
  (0, _defineProperty2.default)(this, "getTransferRateLimit", function () {
108
108
  return _this.attributes.transfer_rate_limit;
109
109
  });
110
+ // string # Files Agent API Token
111
+ (0, _defineProperty2.default)(this, "getApiToken", function () {
112
+ return _this.attributes.api_token;
113
+ });
114
+ // int64 # Incoming port for files agent connections
115
+ (0, _defineProperty2.default)(this, "getPort", function () {
116
+ return _this.attributes.port;
117
+ });
118
+ // string
119
+ (0, _defineProperty2.default)(this, "getHostname", function () {
120
+ return _this.attributes.hostname;
121
+ });
122
+ // string # public key
123
+ (0, _defineProperty2.default)(this, "getPublicKey", function () {
124
+ return _this.attributes.public_key;
125
+ });
126
+ // string # either running or shutdown
127
+ (0, _defineProperty2.default)(this, "getStatus", function () {
128
+ return _this.attributes.status;
129
+ });
130
+ // string
131
+ (0, _defineProperty2.default)(this, "getServerHostKey", function () {
132
+ return _this.attributes.server_host_key;
133
+ });
134
+ // string # agent config version
135
+ (0, _defineProperty2.default)(this, "getConfigVersion", function () {
136
+ return _this.attributes.config_version;
137
+ });
110
138
  Object.entries(attributes).forEach(function (_ref) {
111
139
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
112
140
  key = _ref2[0],
@@ -0,0 +1,194 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
8
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
+ var _Api = _interopRequireDefault(require("../Api"));
14
+ var errors = _interopRequireWildcard(require("../Errors"));
15
+ var _utils = require("../utils");
16
+ var _SftpActionLog;
17
+ /* eslint-disable no-unused-vars */
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
+ /* eslint-enable no-unused-vars */
23
+ /**
24
+ * Class SftpActionLog
25
+ */
26
+ var SftpActionLog = /*#__PURE__*/(0, _createClass2.default)(function SftpActionLog() {
27
+ var _this = this;
28
+ var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
29
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
30
+ (0, _classCallCheck2.default)(this, SftpActionLog);
31
+ (0, _defineProperty2.default)(this, "attributes", {});
32
+ (0, _defineProperty2.default)(this, "options", {});
33
+ (0, _defineProperty2.default)(this, "isLoaded", function () {
34
+ return !!_this.attributes.id;
35
+ });
36
+ // date-time # Start Time of Action
37
+ (0, _defineProperty2.default)(this, "getTimestamp", function () {
38
+ return _this.attributes.timestamp;
39
+ });
40
+ // string # IP Address of SFTP Client
41
+ (0, _defineProperty2.default)(this, "getRemoteIp", function () {
42
+ return _this.attributes.remote_ip;
43
+ });
44
+ // string # Username
45
+ (0, _defineProperty2.default)(this, "getUser", function () {
46
+ return _this.attributes.user;
47
+ });
48
+ // string # Unique ID of the Session
49
+ (0, _defineProperty2.default)(this, "getSessionUid", function () {
50
+ return _this.attributes.session_uid;
51
+ });
52
+ // int64 # SFTP Sequence ID
53
+ (0, _defineProperty2.default)(this, "getSeqId", function () {
54
+ return _this.attributes.seq_id;
55
+ });
56
+ // string # Authentication Method
57
+ (0, _defineProperty2.default)(this, "getAuthMethod", function () {
58
+ return _this.attributes.auth_method;
59
+ });
60
+ // string # Authentication Ciphers
61
+ (0, _defineProperty2.default)(this, "getAuthCiphers", function () {
62
+ return _this.attributes.auth_ciphers;
63
+ });
64
+ // string # Action Type
65
+ (0, _defineProperty2.default)(this, "getActionType", function () {
66
+ return _this.attributes.action_type;
67
+ });
68
+ // string # Path as sent by the Client (may not match Files.com path due to user root folders for SFTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
69
+ (0, _defineProperty2.default)(this, "getPath", function () {
70
+ return _this.attributes.path;
71
+ });
72
+ // string # Path on Files.com
73
+ (0, _defineProperty2.default)(this, "getTruePath", function () {
74
+ return _this.attributes.true_path;
75
+ });
76
+ // string # Name of File
77
+ (0, _defineProperty2.default)(this, "getName", function () {
78
+ return _this.attributes.name;
79
+ });
80
+ // string # Log Message
81
+ (0, _defineProperty2.default)(this, "getMessage", function () {
82
+ return _this.attributes.message;
83
+ });
84
+ // string # Failure Reason Type
85
+ (0, _defineProperty2.default)(this, "getFailureReasonType", function () {
86
+ return _this.attributes.failure_reason_type;
87
+ });
88
+ // string # Failure Reason Message
89
+ (0, _defineProperty2.default)(this, "getFailureReasonMessage", function () {
90
+ return _this.attributes.failure_reason_message;
91
+ });
92
+ // string # MD5 Hash of the file. Not always available.
93
+ (0, _defineProperty2.default)(this, "getMd5", function () {
94
+ return _this.attributes.md5;
95
+ });
96
+ // string # SFTP Command Flags. Present for actions which involve flags.
97
+ (0, _defineProperty2.default)(this, "getFlags", function () {
98
+ return _this.attributes.flags;
99
+ });
100
+ // string # SFTP Command Handle. Present for actions which involve handles.
101
+ (0, _defineProperty2.default)(this, "getHandle", function () {
102
+ return _this.attributes.handle;
103
+ });
104
+ // string # SFTP Command Attrs. Present for action which involve attrs.
105
+ (0, _defineProperty2.default)(this, "getAttrs", function () {
106
+ return _this.attributes.attrs;
107
+ });
108
+ // string # Size. Present for action which involve size.
109
+ (0, _defineProperty2.default)(this, "getSize", function () {
110
+ return _this.attributes.size;
111
+ });
112
+ // string # Offset. Present for actions which involve offset.
113
+ (0, _defineProperty2.default)(this, "getOffset", function () {
114
+ return _this.attributes.offset;
115
+ });
116
+ // string # Length. Present for actions which involve length.
117
+ (0, _defineProperty2.default)(this, "getLength", function () {
118
+ return _this.attributes.length;
119
+ });
120
+ // string # Data Length in Bytes. Present for actions that transfer data.
121
+ (0, _defineProperty2.default)(this, "getDataLength", function () {
122
+ return _this.attributes.data_length;
123
+ });
124
+ // string # Whether SFTP Action was successful.
125
+ (0, _defineProperty2.default)(this, "getSuccess", function () {
126
+ return _this.attributes.success;
127
+ });
128
+ // int64 # Duration (in milliseconds)
129
+ (0, _defineProperty2.default)(this, "getDurationMs", function () {
130
+ return _this.attributes.duration_ms;
131
+ });
132
+ Object.entries(attributes).forEach(function (_ref) {
133
+ var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
134
+ key = _ref2[0],
135
+ value = _ref2[1];
136
+ var normalizedKey = key.replace('?', '');
137
+ _this.attributes[normalizedKey] = value;
138
+ Object.defineProperty(_this, normalizedKey, {
139
+ value: value,
140
+ writable: false
141
+ });
142
+ });
143
+ this.options = _objectSpread({}, options);
144
+ });
145
+ _SftpActionLog = SftpActionLog;
146
+ // Parameters:
147
+ // 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.
148
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
149
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `path`, `true_path`, `remote_ip`, `session_uuid`, `success`, `type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ session_uuid ]`, `[ success ]`, `[ type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, session_uuid ]`, `[ start_date, success ]`, `[ start_date, type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, session_uuid ]`, `[ end_date, success ]`, `[ end_date, type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, session_uuid ]`, `[ path, success ]`, `[ path, type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, session_uuid ]`, `[ true_path, success ]`, `[ true_path, type ]`, `[ true_path, username ]`, `[ remote_ip, session_uuid ]`, `[ remote_ip, success ]`, `[ remote_ip, type ]`, `[ remote_ip, username ]`, `[ session_uuid, success ]`, `[ session_uuid, type ]`, `[ session_uuid, username ]`, `[ success, type ]`, `[ success, username ]`, `[ type, username ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, true_path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, session_uuid ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, session_uuid ]`, `[ start_date, path, success ]`, `[ start_date, path, type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, session_uuid ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, session_uuid ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, session_uuid, success ]`, `[ start_date, session_uuid, type ]`, `[ start_date, session_uuid, username ]`, `[ start_date, success, type ]`, `[ start_date, success, username ]`, `[ start_date, type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, session_uuid ]`, `[ end_date, path, success ]`, `[ end_date, path, type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, session_uuid ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, session_uuid ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, session_uuid, success ]`, `[ end_date, session_uuid, type ]`, `[ end_date, session_uuid, username ]`, `[ end_date, success, type ]`, `[ end_date, success, username ]`, `[ end_date, type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, session_uuid ]`, `[ path, true_path, success ]`, `[ path, true_path, type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, session_uuid ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, type ]`, `[ path, remote_ip, username ]`, `[ path, session_uuid, success ]`, `[ path, session_uuid, type ]`, `[ path, session_uuid, username ]`, `[ path, success, type ]`, `[ path, success, username ]`, `[ path, type, username ]`, `[ true_path, remote_ip, session_uuid ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, session_uuid, success ]`, `[ true_path, session_uuid, type ]`, `[ true_path, session_uuid, username ]`, `[ true_path, success, type ]`, `[ true_path, success, username ]`, `[ true_path, type, username ]`, `[ remote_ip, session_uuid, success ]`, `[ remote_ip, session_uuid, type ]`, `[ remote_ip, session_uuid, username ]`, `[ remote_ip, success, type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, type, username ]`, `[ session_uuid, success, type ]`, `[ session_uuid, success, username ]`, `[ session_uuid, type, username ]`, `[ success, type, username ]`, `[ start_date, end_date, path, true_path ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, session_uuid ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, type ]`, `[ start_date, end_date, path, username ]`, `[ start_date, end_date, true_path, remote_ip ]`, `[ start_date, end_date, true_path, session_uuid ]`, `[ start_date, end_date, true_path, success ]`, `[ start_date, end_date, true_path, type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, session_uuid ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, session_uuid, success ]`, `[ start_date, end_date, session_uuid, type ]`, `[ start_date, end_date, session_uuid, username ]`, `[ start_date, end_date, success, type ]`, `[ start_date, end_date, success, username ]`, `[ start_date, end_date, type, username ]`, `[ start_date, path, true_path, remote_ip ]`, `[ start_date, path, true_path, session_uuid ]`, `[ start_date, path, true_path, success ]`, `[ start_date, path, true_path, type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, session_uuid ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, session_uuid, success ]`, `[ start_date, path, session_uuid, type ]`, `[ start_date, path, session_uuid, username ]`, `[ start_date, path, success, type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, session_uuid, success ]`, `[ start_date, true_path, session_uuid, type ]`, `[ start_date, true_path, session_uuid, username ]`, `[ start_date, true_path, success, type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, type, username ]`, `[ start_date, remote_ip, session_uuid, success ]`, `[ start_date, remote_ip, session_uuid, type ]`, `[ start_date, remote_ip, session_uuid, username ]`, `[ start_date, remote_ip, success, type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, type, username ]`, `[ start_date, session_uuid, success, type ]`, `[ start_date, session_uuid, success, username ]`, `[ start_date, session_uuid, type, username ]`, `[ start_date, success, type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, session_uuid ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, session_uuid ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, session_uuid, success ]`, `[ end_date, path, session_uuid, type ]`, `[ end_date, path, session_uuid, username ]`, `[ end_date, path, success, type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, session_uuid, success ]`, `[ end_date, true_path, session_uuid, type ]`, `[ end_date, true_path, session_uuid, username ]`, `[ end_date, true_path, success, type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, type, username ]`, `[ end_date, remote_ip, session_uuid, success ]`, `[ end_date, remote_ip, session_uuid, type ]`, `[ end_date, remote_ip, session_uuid, username ]`, `[ end_date, remote_ip, success, type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, type, username ]`, `[ end_date, session_uuid, success, type ]`, `[ end_date, session_uuid, success, username ]`, `[ end_date, session_uuid, type, username ]`, `[ end_date, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, session_uuid, success ]`, `[ path, true_path, session_uuid, type ]`, `[ path, true_path, session_uuid, username ]`, `[ path, true_path, success, type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, type, username ]`, `[ path, remote_ip, session_uuid, success ]`, `[ path, remote_ip, session_uuid, type ]`, `[ path, remote_ip, session_uuid, username ]`, `[ path, remote_ip, success, type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, type, username ]`, `[ path, session_uuid, success, type ]`, `[ path, session_uuid, success, username ]`, `[ path, session_uuid, type, username ]`, `[ path, success, type, username ]`, `[ true_path, remote_ip, session_uuid, success ]`, `[ true_path, remote_ip, session_uuid, type ]`, `[ true_path, remote_ip, session_uuid, username ]`, `[ true_path, remote_ip, success, type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, type, username ]`, `[ true_path, session_uuid, success, type ]`, `[ true_path, session_uuid, success, username ]`, `[ true_path, session_uuid, type, username ]`, `[ true_path, success, type, username ]`, `[ remote_ip, session_uuid, success, type ]`, `[ remote_ip, session_uuid, success, username ]`, `[ remote_ip, session_uuid, type, username ]`, `[ remote_ip, success, type, username ]`, `[ session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip ]`, `[ start_date, end_date, path, true_path, session_uuid ]`, `[ start_date, end_date, path, true_path, success ]`, `[ start_date, end_date, path, true_path, type ]`, `[ start_date, end_date, path, true_path, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, session_uuid, success ]`, `[ start_date, end_date, path, session_uuid, type ]`, `[ start_date, end_date, path, session_uuid, username ]`, `[ start_date, end_date, path, success, type ]`, `[ start_date, end_date, path, success, username ]`, `[ start_date, end_date, path, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid ]`, `[ start_date, end_date, true_path, remote_ip, success ]`, `[ start_date, end_date, true_path, remote_ip, type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, session_uuid, success ]`, `[ start_date, end_date, true_path, session_uuid, type ]`, `[ start_date, end_date, true_path, session_uuid, username ]`, `[ start_date, end_date, true_path, success, type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, type, username ]`, `[ start_date, end_date, remote_ip, session_uuid, success ]`, `[ start_date, end_date, remote_ip, session_uuid, type ]`, `[ start_date, end_date, remote_ip, session_uuid, username ]`, `[ start_date, end_date, remote_ip, success, type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, type, username ]`, `[ start_date, end_date, session_uuid, success, type ]`, `[ start_date, end_date, session_uuid, success, username ]`, `[ start_date, end_date, session_uuid, type, username ]`, `[ start_date, end_date, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, session_uuid, success ]`, `[ start_date, path, true_path, session_uuid, type ]`, `[ start_date, path, true_path, session_uuid, username ]`, `[ start_date, path, true_path, success, type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, type, username ]`, `[ start_date, path, remote_ip, session_uuid, success ]`, `[ start_date, path, remote_ip, session_uuid, type ]`, `[ start_date, path, remote_ip, session_uuid, username ]`, `[ start_date, path, remote_ip, success, type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, type, username ]`, `[ start_date, path, session_uuid, success, type ]`, `[ start_date, path, session_uuid, success, username ]`, `[ start_date, path, session_uuid, type, username ]`, `[ start_date, path, success, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid, success ]`, `[ start_date, true_path, remote_ip, session_uuid, type ]`, `[ start_date, true_path, remote_ip, session_uuid, username ]`, `[ start_date, true_path, remote_ip, success, type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, type, username ]`, `[ start_date, true_path, session_uuid, success, type ]`, `[ start_date, true_path, session_uuid, success, username ]`, `[ start_date, true_path, session_uuid, type, username ]`, `[ start_date, true_path, success, type, username ]`, `[ start_date, remote_ip, session_uuid, success, type ]`, `[ start_date, remote_ip, session_uuid, success, username ]`, `[ start_date, remote_ip, session_uuid, type, username ]`, `[ start_date, remote_ip, success, type, username ]`, `[ start_date, session_uuid, success, type, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, session_uuid, success ]`, `[ end_date, path, true_path, session_uuid, type ]`, `[ end_date, path, true_path, session_uuid, username ]`, `[ end_date, path, true_path, success, type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, type, username ]`, `[ end_date, path, remote_ip, session_uuid, success ]`, `[ end_date, path, remote_ip, session_uuid, type ]`, `[ end_date, path, remote_ip, session_uuid, username ]`, `[ end_date, path, remote_ip, success, type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, type, username ]`, `[ end_date, path, session_uuid, success, type ]`, `[ end_date, path, session_uuid, success, username ]`, `[ end_date, path, session_uuid, type, username ]`, `[ end_date, path, success, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid, success ]`, `[ end_date, true_path, remote_ip, session_uuid, type ]`, `[ end_date, true_path, remote_ip, session_uuid, username ]`, `[ end_date, true_path, remote_ip, success, type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, type, username ]`, `[ end_date, true_path, session_uuid, success, type ]`, `[ end_date, true_path, session_uuid, success, username ]`, `[ end_date, true_path, session_uuid, type, username ]`, `[ end_date, true_path, success, type, username ]`, `[ end_date, remote_ip, session_uuid, success, type ]`, `[ end_date, remote_ip, session_uuid, success, username ]`, `[ end_date, remote_ip, session_uuid, type, username ]`, `[ end_date, remote_ip, success, type, username ]`, `[ end_date, session_uuid, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid, success ]`, `[ path, true_path, remote_ip, session_uuid, type ]`, `[ path, true_path, remote_ip, session_uuid, username ]`, `[ path, true_path, remote_ip, success, type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, type, username ]`, `[ path, true_path, session_uuid, success, type ]`, `[ path, true_path, session_uuid, success, username ]`, `[ path, true_path, session_uuid, type, username ]`, `[ path, true_path, success, type, username ]`, `[ path, remote_ip, session_uuid, success, type ]`, `[ path, remote_ip, session_uuid, success, username ]`, `[ path, remote_ip, session_uuid, type, username ]`, `[ path, remote_ip, success, type, username ]`, `[ path, session_uuid, success, type, username ]`, `[ true_path, remote_ip, session_uuid, success, type ]`, `[ true_path, remote_ip, session_uuid, success, username ]`, `[ true_path, remote_ip, session_uuid, type, username ]`, `[ true_path, remote_ip, success, type, username ]`, `[ true_path, session_uuid, success, type, username ]`, `[ remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ start_date, end_date, path, true_path, remote_ip, type ]`, `[ start_date, end_date, path, true_path, remote_ip, username ]`, `[ start_date, end_date, path, true_path, session_uuid, success ]`, `[ start_date, end_date, path, true_path, session_uuid, type ]`, `[ start_date, end_date, path, true_path, session_uuid, username ]`, `[ start_date, end_date, path, true_path, success, type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, type, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success ]`, `[ start_date, end_date, path, remote_ip, session_uuid, type ]`, `[ start_date, end_date, path, remote_ip, session_uuid, username ]`, `[ start_date, end_date, path, remote_ip, success, type ]`, `[ start_date, end_date, path, remote_ip, success, username ]`, `[ start_date, end_date, path, remote_ip, type, username ]`, `[ start_date, end_date, path, session_uuid, success, type ]`, `[ start_date, end_date, path, session_uuid, success, username ]`, `[ start_date, end_date, path, session_uuid, type, username ]`, `[ start_date, end_date, path, success, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, type ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, username ]`, `[ start_date, end_date, true_path, remote_ip, success, type ]`, `[ start_date, end_date, true_path, remote_ip, success, username ]`, `[ start_date, end_date, true_path, remote_ip, type, username ]`, `[ start_date, end_date, true_path, session_uuid, success, type ]`, `[ start_date, end_date, true_path, session_uuid, success, username ]`, `[ start_date, end_date, true_path, session_uuid, type, username ]`, `[ start_date, end_date, true_path, success, type, username ]`, `[ start_date, end_date, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, remote_ip, success, type, username ]`, `[ start_date, end_date, session_uuid, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success ]`, `[ start_date, path, true_path, remote_ip, session_uuid, type ]`, `[ start_date, path, true_path, remote_ip, session_uuid, username ]`, `[ start_date, path, true_path, remote_ip, success, type ]`, `[ start_date, path, true_path, remote_ip, success, username ]`, `[ start_date, path, true_path, remote_ip, type, username ]`, `[ start_date, path, true_path, session_uuid, success, type ]`, `[ start_date, path, true_path, session_uuid, success, username ]`, `[ start_date, path, true_path, session_uuid, type, username ]`, `[ start_date, path, true_path, success, type, username ]`, `[ start_date, path, remote_ip, session_uuid, success, type ]`, `[ start_date, path, remote_ip, session_uuid, success, username ]`, `[ start_date, path, remote_ip, session_uuid, type, username ]`, `[ start_date, path, remote_ip, success, type, username ]`, `[ start_date, path, session_uuid, success, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, true_path, remote_ip, success, type, username ]`, `[ start_date, true_path, session_uuid, success, type, username ]`, `[ start_date, remote_ip, session_uuid, success, type, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid, success ]`, `[ end_date, path, true_path, remote_ip, session_uuid, type ]`, `[ end_date, path, true_path, remote_ip, session_uuid, username ]`, `[ end_date, path, true_path, remote_ip, success, type ]`, `[ end_date, path, true_path, remote_ip, success, username ]`, `[ end_date, path, true_path, remote_ip, type, username ]`, `[ end_date, path, true_path, session_uuid, success, type ]`, `[ end_date, path, true_path, session_uuid, success, username ]`, `[ end_date, path, true_path, session_uuid, type, username ]`, `[ end_date, path, true_path, success, type, username ]`, `[ end_date, path, remote_ip, session_uuid, success, type ]`, `[ end_date, path, remote_ip, session_uuid, success, username ]`, `[ end_date, path, remote_ip, session_uuid, type, username ]`, `[ end_date, path, remote_ip, success, type, username ]`, `[ end_date, path, session_uuid, success, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid, success, type ]`, `[ end_date, true_path, remote_ip, session_uuid, success, username ]`, `[ end_date, true_path, remote_ip, session_uuid, type, username ]`, `[ end_date, true_path, remote_ip, success, type, username ]`, `[ end_date, true_path, session_uuid, success, type, username ]`, `[ end_date, remote_ip, session_uuid, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid, success, type ]`, `[ path, true_path, remote_ip, session_uuid, success, username ]`, `[ path, true_path, remote_ip, session_uuid, type, username ]`, `[ path, true_path, remote_ip, success, type, username ]`, `[ path, true_path, session_uuid, success, type, username ]`, `[ path, remote_ip, session_uuid, success, type, username ]`, `[ true_path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, success ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, type ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, type, username ]`, `[ start_date, end_date, path, true_path, session_uuid, success, type ]`, `[ start_date, end_date, path, true_path, session_uuid, success, username ]`, `[ start_date, end_date, path, true_path, session_uuid, type, username ]`, `[ start_date, end_date, path, true_path, success, type, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, path, remote_ip, success, type, username ]`, `[ start_date, end_date, path, session_uuid, success, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, type, username ]`, `[ start_date, end_date, true_path, session_uuid, success, type, username ]`, `[ start_date, end_date, remote_ip, session_uuid, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, path, true_path, remote_ip, success, type, username ]`, `[ start_date, path, true_path, session_uuid, success, type, username ]`, `[ start_date, path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid, success, type, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid, success, type ]`, `[ end_date, path, true_path, remote_ip, session_uuid, success, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid, type, username ]`, `[ end_date, path, true_path, remote_ip, success, type, username ]`, `[ end_date, path, true_path, session_uuid, success, type, username ]`, `[ end_date, path, remote_ip, session_uuid, success, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, type, username ]`, `[ start_date, end_date, path, true_path, session_uuid, success, type, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success, type, username ]` or `[ end_date, path, true_path, remote_ip, session_uuid, success, type, username ]`.
150
+ // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`, `true_path` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ session_uuid ]`, `[ success ]`, `[ type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, session_uuid ]`, `[ start_date, success ]`, `[ start_date, type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, session_uuid ]`, `[ end_date, success ]`, `[ end_date, type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, session_uuid ]`, `[ path, success ]`, `[ path, type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, session_uuid ]`, `[ true_path, success ]`, `[ true_path, type ]`, `[ true_path, username ]`, `[ remote_ip, session_uuid ]`, `[ remote_ip, success ]`, `[ remote_ip, type ]`, `[ remote_ip, username ]`, `[ session_uuid, success ]`, `[ session_uuid, type ]`, `[ session_uuid, username ]`, `[ success, type ]`, `[ success, username ]`, `[ type, username ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, true_path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, session_uuid ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, session_uuid ]`, `[ start_date, path, success ]`, `[ start_date, path, type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, session_uuid ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, session_uuid ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, session_uuid, success ]`, `[ start_date, session_uuid, type ]`, `[ start_date, session_uuid, username ]`, `[ start_date, success, type ]`, `[ start_date, success, username ]`, `[ start_date, type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, session_uuid ]`, `[ end_date, path, success ]`, `[ end_date, path, type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, session_uuid ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, session_uuid ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, session_uuid, success ]`, `[ end_date, session_uuid, type ]`, `[ end_date, session_uuid, username ]`, `[ end_date, success, type ]`, `[ end_date, success, username ]`, `[ end_date, type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, session_uuid ]`, `[ path, true_path, success ]`, `[ path, true_path, type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, session_uuid ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, type ]`, `[ path, remote_ip, username ]`, `[ path, session_uuid, success ]`, `[ path, session_uuid, type ]`, `[ path, session_uuid, username ]`, `[ path, success, type ]`, `[ path, success, username ]`, `[ path, type, username ]`, `[ true_path, remote_ip, session_uuid ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, session_uuid, success ]`, `[ true_path, session_uuid, type ]`, `[ true_path, session_uuid, username ]`, `[ true_path, success, type ]`, `[ true_path, success, username ]`, `[ true_path, type, username ]`, `[ remote_ip, session_uuid, success ]`, `[ remote_ip, session_uuid, type ]`, `[ remote_ip, session_uuid, username ]`, `[ remote_ip, success, type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, type, username ]`, `[ session_uuid, success, type ]`, `[ session_uuid, success, username ]`, `[ session_uuid, type, username ]`, `[ success, type, username ]`, `[ start_date, end_date, path, true_path ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, session_uuid ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, type ]`, `[ start_date, end_date, path, username ]`, `[ start_date, end_date, true_path, remote_ip ]`, `[ start_date, end_date, true_path, session_uuid ]`, `[ start_date, end_date, true_path, success ]`, `[ start_date, end_date, true_path, type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, session_uuid ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, session_uuid, success ]`, `[ start_date, end_date, session_uuid, type ]`, `[ start_date, end_date, session_uuid, username ]`, `[ start_date, end_date, success, type ]`, `[ start_date, end_date, success, username ]`, `[ start_date, end_date, type, username ]`, `[ start_date, path, true_path, remote_ip ]`, `[ start_date, path, true_path, session_uuid ]`, `[ start_date, path, true_path, success ]`, `[ start_date, path, true_path, type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, session_uuid ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, session_uuid, success ]`, `[ start_date, path, session_uuid, type ]`, `[ start_date, path, session_uuid, username ]`, `[ start_date, path, success, type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, session_uuid, success ]`, `[ start_date, true_path, session_uuid, type ]`, `[ start_date, true_path, session_uuid, username ]`, `[ start_date, true_path, success, type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, type, username ]`, `[ start_date, remote_ip, session_uuid, success ]`, `[ start_date, remote_ip, session_uuid, type ]`, `[ start_date, remote_ip, session_uuid, username ]`, `[ start_date, remote_ip, success, type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, type, username ]`, `[ start_date, session_uuid, success, type ]`, `[ start_date, session_uuid, success, username ]`, `[ start_date, session_uuid, type, username ]`, `[ start_date, success, type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, session_uuid ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, session_uuid ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, session_uuid, success ]`, `[ end_date, path, session_uuid, type ]`, `[ end_date, path, session_uuid, username ]`, `[ end_date, path, success, type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, session_uuid, success ]`, `[ end_date, true_path, session_uuid, type ]`, `[ end_date, true_path, session_uuid, username ]`, `[ end_date, true_path, success, type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, type, username ]`, `[ end_date, remote_ip, session_uuid, success ]`, `[ end_date, remote_ip, session_uuid, type ]`, `[ end_date, remote_ip, session_uuid, username ]`, `[ end_date, remote_ip, success, type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, type, username ]`, `[ end_date, session_uuid, success, type ]`, `[ end_date, session_uuid, success, username ]`, `[ end_date, session_uuid, type, username ]`, `[ end_date, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, session_uuid, success ]`, `[ path, true_path, session_uuid, type ]`, `[ path, true_path, session_uuid, username ]`, `[ path, true_path, success, type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, type, username ]`, `[ path, remote_ip, session_uuid, success ]`, `[ path, remote_ip, session_uuid, type ]`, `[ path, remote_ip, session_uuid, username ]`, `[ path, remote_ip, success, type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, type, username ]`, `[ path, session_uuid, success, type ]`, `[ path, session_uuid, success, username ]`, `[ path, session_uuid, type, username ]`, `[ path, success, type, username ]`, `[ true_path, remote_ip, session_uuid, success ]`, `[ true_path, remote_ip, session_uuid, type ]`, `[ true_path, remote_ip, session_uuid, username ]`, `[ true_path, remote_ip, success, type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, type, username ]`, `[ true_path, session_uuid, success, type ]`, `[ true_path, session_uuid, success, username ]`, `[ true_path, session_uuid, type, username ]`, `[ true_path, success, type, username ]`, `[ remote_ip, session_uuid, success, type ]`, `[ remote_ip, session_uuid, success, username ]`, `[ remote_ip, session_uuid, type, username ]`, `[ remote_ip, success, type, username ]`, `[ session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip ]`, `[ start_date, end_date, path, true_path, session_uuid ]`, `[ start_date, end_date, path, true_path, success ]`, `[ start_date, end_date, path, true_path, type ]`, `[ start_date, end_date, path, true_path, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, session_uuid, success ]`, `[ start_date, end_date, path, session_uuid, type ]`, `[ start_date, end_date, path, session_uuid, username ]`, `[ start_date, end_date, path, success, type ]`, `[ start_date, end_date, path, success, username ]`, `[ start_date, end_date, path, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid ]`, `[ start_date, end_date, true_path, remote_ip, success ]`, `[ start_date, end_date, true_path, remote_ip, type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, session_uuid, success ]`, `[ start_date, end_date, true_path, session_uuid, type ]`, `[ start_date, end_date, true_path, session_uuid, username ]`, `[ start_date, end_date, true_path, success, type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, type, username ]`, `[ start_date, end_date, remote_ip, session_uuid, success ]`, `[ start_date, end_date, remote_ip, session_uuid, type ]`, `[ start_date, end_date, remote_ip, session_uuid, username ]`, `[ start_date, end_date, remote_ip, success, type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, type, username ]`, `[ start_date, end_date, session_uuid, success, type ]`, `[ start_date, end_date, session_uuid, success, username ]`, `[ start_date, end_date, session_uuid, type, username ]`, `[ start_date, end_date, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, session_uuid, success ]`, `[ start_date, path, true_path, session_uuid, type ]`, `[ start_date, path, true_path, session_uuid, username ]`, `[ start_date, path, true_path, success, type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, type, username ]`, `[ start_date, path, remote_ip, session_uuid, success ]`, `[ start_date, path, remote_ip, session_uuid, type ]`, `[ start_date, path, remote_ip, session_uuid, username ]`, `[ start_date, path, remote_ip, success, type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, type, username ]`, `[ start_date, path, session_uuid, success, type ]`, `[ start_date, path, session_uuid, success, username ]`, `[ start_date, path, session_uuid, type, username ]`, `[ start_date, path, success, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid, success ]`, `[ start_date, true_path, remote_ip, session_uuid, type ]`, `[ start_date, true_path, remote_ip, session_uuid, username ]`, `[ start_date, true_path, remote_ip, success, type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, type, username ]`, `[ start_date, true_path, session_uuid, success, type ]`, `[ start_date, true_path, session_uuid, success, username ]`, `[ start_date, true_path, session_uuid, type, username ]`, `[ start_date, true_path, success, type, username ]`, `[ start_date, remote_ip, session_uuid, success, type ]`, `[ start_date, remote_ip, session_uuid, success, username ]`, `[ start_date, remote_ip, session_uuid, type, username ]`, `[ start_date, remote_ip, success, type, username ]`, `[ start_date, session_uuid, success, type, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, session_uuid, success ]`, `[ end_date, path, true_path, session_uuid, type ]`, `[ end_date, path, true_path, session_uuid, username ]`, `[ end_date, path, true_path, success, type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, type, username ]`, `[ end_date, path, remote_ip, session_uuid, success ]`, `[ end_date, path, remote_ip, session_uuid, type ]`, `[ end_date, path, remote_ip, session_uuid, username ]`, `[ end_date, path, remote_ip, success, type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, type, username ]`, `[ end_date, path, session_uuid, success, type ]`, `[ end_date, path, session_uuid, success, username ]`, `[ end_date, path, session_uuid, type, username ]`, `[ end_date, path, success, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid, success ]`, `[ end_date, true_path, remote_ip, session_uuid, type ]`, `[ end_date, true_path, remote_ip, session_uuid, username ]`, `[ end_date, true_path, remote_ip, success, type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, type, username ]`, `[ end_date, true_path, session_uuid, success, type ]`, `[ end_date, true_path, session_uuid, success, username ]`, `[ end_date, true_path, session_uuid, type, username ]`, `[ end_date, true_path, success, type, username ]`, `[ end_date, remote_ip, session_uuid, success, type ]`, `[ end_date, remote_ip, session_uuid, success, username ]`, `[ end_date, remote_ip, session_uuid, type, username ]`, `[ end_date, remote_ip, success, type, username ]`, `[ end_date, session_uuid, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid, success ]`, `[ path, true_path, remote_ip, session_uuid, type ]`, `[ path, true_path, remote_ip, session_uuid, username ]`, `[ path, true_path, remote_ip, success, type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, type, username ]`, `[ path, true_path, session_uuid, success, type ]`, `[ path, true_path, session_uuid, success, username ]`, `[ path, true_path, session_uuid, type, username ]`, `[ path, true_path, success, type, username ]`, `[ path, remote_ip, session_uuid, success, type ]`, `[ path, remote_ip, session_uuid, success, username ]`, `[ path, remote_ip, session_uuid, type, username ]`, `[ path, remote_ip, success, type, username ]`, `[ path, session_uuid, success, type, username ]`, `[ true_path, remote_ip, session_uuid, success, type ]`, `[ true_path, remote_ip, session_uuid, success, username ]`, `[ true_path, remote_ip, session_uuid, type, username ]`, `[ true_path, remote_ip, success, type, username ]`, `[ true_path, session_uuid, success, type, username ]`, `[ remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ start_date, end_date, path, true_path, remote_ip, type ]`, `[ start_date, end_date, path, true_path, remote_ip, username ]`, `[ start_date, end_date, path, true_path, session_uuid, success ]`, `[ start_date, end_date, path, true_path, session_uuid, type ]`, `[ start_date, end_date, path, true_path, session_uuid, username ]`, `[ start_date, end_date, path, true_path, success, type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, type, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success ]`, `[ start_date, end_date, path, remote_ip, session_uuid, type ]`, `[ start_date, end_date, path, remote_ip, session_uuid, username ]`, `[ start_date, end_date, path, remote_ip, success, type ]`, `[ start_date, end_date, path, remote_ip, success, username ]`, `[ start_date, end_date, path, remote_ip, type, username ]`, `[ start_date, end_date, path, session_uuid, success, type ]`, `[ start_date, end_date, path, session_uuid, success, username ]`, `[ start_date, end_date, path, session_uuid, type, username ]`, `[ start_date, end_date, path, success, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, type ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, username ]`, `[ start_date, end_date, true_path, remote_ip, success, type ]`, `[ start_date, end_date, true_path, remote_ip, success, username ]`, `[ start_date, end_date, true_path, remote_ip, type, username ]`, `[ start_date, end_date, true_path, session_uuid, success, type ]`, `[ start_date, end_date, true_path, session_uuid, success, username ]`, `[ start_date, end_date, true_path, session_uuid, type, username ]`, `[ start_date, end_date, true_path, success, type, username ]`, `[ start_date, end_date, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, remote_ip, success, type, username ]`, `[ start_date, end_date, session_uuid, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success ]`, `[ start_date, path, true_path, remote_ip, session_uuid, type ]`, `[ start_date, path, true_path, remote_ip, session_uuid, username ]`, `[ start_date, path, true_path, remote_ip, success, type ]`, `[ start_date, path, true_path, remote_ip, success, username ]`, `[ start_date, path, true_path, remote_ip, type, username ]`, `[ start_date, path, true_path, session_uuid, success, type ]`, `[ start_date, path, true_path, session_uuid, success, username ]`, `[ start_date, path, true_path, session_uuid, type, username ]`, `[ start_date, path, true_path, success, type, username ]`, `[ start_date, path, remote_ip, session_uuid, success, type ]`, `[ start_date, path, remote_ip, session_uuid, success, username ]`, `[ start_date, path, remote_ip, session_uuid, type, username ]`, `[ start_date, path, remote_ip, success, type, username ]`, `[ start_date, path, session_uuid, success, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, true_path, remote_ip, success, type, username ]`, `[ start_date, true_path, session_uuid, success, type, username ]`, `[ start_date, remote_ip, session_uuid, success, type, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid, success ]`, `[ end_date, path, true_path, remote_ip, session_uuid, type ]`, `[ end_date, path, true_path, remote_ip, session_uuid, username ]`, `[ end_date, path, true_path, remote_ip, success, type ]`, `[ end_date, path, true_path, remote_ip, success, username ]`, `[ end_date, path, true_path, remote_ip, type, username ]`, `[ end_date, path, true_path, session_uuid, success, type ]`, `[ end_date, path, true_path, session_uuid, success, username ]`, `[ end_date, path, true_path, session_uuid, type, username ]`, `[ end_date, path, true_path, success, type, username ]`, `[ end_date, path, remote_ip, session_uuid, success, type ]`, `[ end_date, path, remote_ip, session_uuid, success, username ]`, `[ end_date, path, remote_ip, session_uuid, type, username ]`, `[ end_date, path, remote_ip, success, type, username ]`, `[ end_date, path, session_uuid, success, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid, success, type ]`, `[ end_date, true_path, remote_ip, session_uuid, success, username ]`, `[ end_date, true_path, remote_ip, session_uuid, type, username ]`, `[ end_date, true_path, remote_ip, success, type, username ]`, `[ end_date, true_path, session_uuid, success, type, username ]`, `[ end_date, remote_ip, session_uuid, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid, success, type ]`, `[ path, true_path, remote_ip, session_uuid, success, username ]`, `[ path, true_path, remote_ip, session_uuid, type, username ]`, `[ path, true_path, remote_ip, success, type, username ]`, `[ path, true_path, session_uuid, success, type, username ]`, `[ path, remote_ip, session_uuid, success, type, username ]`, `[ true_path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, success ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, type ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, type, username ]`, `[ start_date, end_date, path, true_path, session_uuid, success, type ]`, `[ start_date, end_date, path, true_path, session_uuid, success, username ]`, `[ start_date, end_date, path, true_path, session_uuid, type, username ]`, `[ start_date, end_date, path, true_path, success, type, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, path, remote_ip, success, type, username ]`, `[ start_date, end_date, path, session_uuid, success, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, type, username ]`, `[ start_date, end_date, true_path, session_uuid, success, type, username ]`, `[ start_date, end_date, remote_ip, session_uuid, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, path, true_path, remote_ip, success, type, username ]`, `[ start_date, path, true_path, session_uuid, success, type, username ]`, `[ start_date, path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, true_path, remote_ip, session_uuid, success, type, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid, success, type ]`, `[ end_date, path, true_path, remote_ip, session_uuid, success, username ]`, `[ end_date, path, true_path, remote_ip, session_uuid, type, username ]`, `[ end_date, path, true_path, remote_ip, success, type, username ]`, `[ end_date, path, true_path, session_uuid, success, type, username ]`, `[ end_date, path, remote_ip, session_uuid, success, type, username ]`, `[ end_date, true_path, remote_ip, session_uuid, success, type, username ]`, `[ path, true_path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, success, type ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, session_uuid, type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, type, username ]`, `[ start_date, end_date, path, true_path, session_uuid, success, type, username ]`, `[ start_date, end_date, path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, end_date, true_path, remote_ip, session_uuid, success, type, username ]`, `[ start_date, path, true_path, remote_ip, session_uuid, success, type, username ]` or `[ end_date, path, true_path, remote_ip, session_uuid, success, type, username ]`.
151
+ (0, _defineProperty2.default)(SftpActionLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
152
+ var _response$data;
153
+ var params,
154
+ options,
155
+ response,
156
+ _args = arguments;
157
+ return _regenerator.default.wrap(function _callee$(_context) {
158
+ while (1) switch (_context.prev = _context.next) {
159
+ case 0:
160
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
161
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
162
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
163
+ _context.next = 4;
164
+ break;
165
+ }
166
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
167
+ case 4:
168
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
169
+ _context.next = 6;
170
+ break;
171
+ }
172
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
173
+ case 6:
174
+ _context.next = 8;
175
+ return _Api.default.sendRequest('/sftp_action_logs', 'GET', params, options);
176
+ case 8:
177
+ response = _context.sent;
178
+ 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) {
179
+ return new _SftpActionLog(obj, options);
180
+ })) || []);
181
+ case 10:
182
+ case "end":
183
+ return _context.stop();
184
+ }
185
+ }, _callee);
186
+ })));
187
+ (0, _defineProperty2.default)(SftpActionLog, "all", function () {
188
+ var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
189
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
190
+ return _SftpActionLog.list(params, options);
191
+ });
192
+ var _default = exports.default = SftpActionLog;
193
+ module.exports = SftpActionLog;
194
+ module.exports.default = SftpActionLog;
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
8
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
+ var _Api = _interopRequireDefault(require("../Api"));
14
+ var errors = _interopRequireWildcard(require("../Errors"));
15
+ var _utils = require("../utils");
16
+ var _SyncLog;
17
+ /* eslint-disable no-unused-vars */
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
+ /* eslint-enable no-unused-vars */
23
+ /**
24
+ * Class SyncLog
25
+ */
26
+ var SyncLog = /*#__PURE__*/(0, _createClass2.default)(function SyncLog() {
27
+ var _this = this;
28
+ var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
29
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
30
+ (0, _classCallCheck2.default)(this, SyncLog);
31
+ (0, _defineProperty2.default)(this, "attributes", {});
32
+ (0, _defineProperty2.default)(this, "options", {});
33
+ (0, _defineProperty2.default)(this, "isLoaded", function () {
34
+ return !!_this.attributes.id;
35
+ });
36
+ // date-time # Start Time of Action
37
+ (0, _defineProperty2.default)(this, "getTimestamp", function () {
38
+ return _this.attributes.timestamp;
39
+ });
40
+ // int64 # Sync ID
41
+ (0, _defineProperty2.default)(this, "getSyncId", function () {
42
+ return _this.attributes.sync_id;
43
+ });
44
+ // int64 # External Event ID
45
+ (0, _defineProperty2.default)(this, "getExternalEventId", function () {
46
+ return _this.attributes.external_event_id;
47
+ });
48
+ // string # Error type, if applicable
49
+ (0, _defineProperty2.default)(this, "getErrorType", function () {
50
+ return _this.attributes.error_type;
51
+ });
52
+ // string # Message
53
+ (0, _defineProperty2.default)(this, "getMessage", function () {
54
+ return _this.attributes.message;
55
+ });
56
+ // string # Operation type
57
+ (0, _defineProperty2.default)(this, "getOperation", function () {
58
+ return _this.attributes.operation;
59
+ });
60
+ // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
61
+ (0, _defineProperty2.default)(this, "getPath", function () {
62
+ return _this.attributes.path;
63
+ });
64
+ // string # Status
65
+ (0, _defineProperty2.default)(this, "getStatus", function () {
66
+ return _this.attributes.status;
67
+ });
68
+ // string # Operation type
69
+ (0, _defineProperty2.default)(this, "getType", function () {
70
+ return _this.attributes.type;
71
+ });
72
+ Object.entries(attributes).forEach(function (_ref) {
73
+ var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
74
+ key = _ref2[0],
75
+ value = _ref2[1];
76
+ var normalizedKey = key.replace('?', '');
77
+ _this.attributes[normalizedKey] = value;
78
+ Object.defineProperty(_this, normalizedKey, {
79
+ value: value,
80
+ writable: false
81
+ });
82
+ });
83
+ this.options = _objectSpread({}, options);
84
+ });
85
+ _SyncLog = SyncLog;
86
+ // Parameters:
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
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
89
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `external_event_id`, `operation`, `status`, `sync_id` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ start_date, type ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ end_date, type ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ external_event_id, type ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ operation, type ]`, `[ status, sync_id ]`, `[ status, type ]`, `[ sync_id, type ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, end_date, type ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, external_event_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, operation, type ]`, `[ start_date, status, sync_id ]`, `[ start_date, status, type ]`, `[ start_date, sync_id, type ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, external_event_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, operation, type ]`, `[ end_date, status, sync_id ]`, `[ end_date, status, type ]`, `[ end_date, sync_id, type ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, operation, type ]`, `[ external_event_id, status, sync_id ]`, `[ external_event_id, status, type ]`, `[ external_event_id, sync_id, type ]`, `[ operation, status, sync_id ]`, `[ operation, status, type ]`, `[ operation, sync_id, type ]`, `[ status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, external_event_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, end_date, status, type ]`, `[ start_date, end_date, sync_id, type ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, operation, type ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, external_event_id, status, type ]`, `[ start_date, external_event_id, sync_id, type ]`, `[ start_date, operation, status, sync_id ]`, `[ start_date, operation, status, type ]`, `[ start_date, operation, sync_id, type ]`, `[ start_date, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, operation, type ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, external_event_id, status, type ]`, `[ end_date, external_event_id, sync_id, type ]`, `[ end_date, operation, status, sync_id ]`, `[ end_date, operation, status, type ]`, `[ end_date, operation, sync_id, type ]`, `[ end_date, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id ]`, `[ external_event_id, operation, status, type ]`, `[ external_event_id, operation, sync_id, type ]`, `[ external_event_id, status, sync_id, type ]`, `[ operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, operation, type ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, external_event_id, status, type ]`, `[ start_date, end_date, external_event_id, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, operation, sync_id, type ]`, `[ start_date, end_date, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, type ]`, `[ start_date, external_event_id, operation, sync_id, type ]`, `[ start_date, external_event_id, status, sync_id, type ]`, `[ start_date, operation, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status, type ]`, `[ end_date, external_event_id, operation, sync_id, type ]`, `[ end_date, external_event_id, status, sync_id, type ]`, `[ end_date, operation, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status, type ]`, `[ start_date, end_date, external_event_id, operation, sync_id, type ]`, `[ start_date, end_date, external_event_id, status, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id, type ]` or `[ end_date, external_event_id, operation, status, sync_id, type ]`.
90
+ // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `status` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ start_date, type ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ end_date, type ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ external_event_id, type ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ operation, type ]`, `[ status, sync_id ]`, `[ status, type ]`, `[ sync_id, type ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, end_date, type ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, external_event_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, operation, type ]`, `[ start_date, status, sync_id ]`, `[ start_date, status, type ]`, `[ start_date, sync_id, type ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, external_event_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, operation, type ]`, `[ end_date, status, sync_id ]`, `[ end_date, status, type ]`, `[ end_date, sync_id, type ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, operation, type ]`, `[ external_event_id, status, sync_id ]`, `[ external_event_id, status, type ]`, `[ external_event_id, sync_id, type ]`, `[ operation, status, sync_id ]`, `[ operation, status, type ]`, `[ operation, sync_id, type ]`, `[ status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, external_event_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, end_date, status, type ]`, `[ start_date, end_date, sync_id, type ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, operation, type ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, external_event_id, status, type ]`, `[ start_date, external_event_id, sync_id, type ]`, `[ start_date, operation, status, sync_id ]`, `[ start_date, operation, status, type ]`, `[ start_date, operation, sync_id, type ]`, `[ start_date, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, operation, type ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, external_event_id, status, type ]`, `[ end_date, external_event_id, sync_id, type ]`, `[ end_date, operation, status, sync_id ]`, `[ end_date, operation, status, type ]`, `[ end_date, operation, sync_id, type ]`, `[ end_date, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id ]`, `[ external_event_id, operation, status, type ]`, `[ external_event_id, operation, sync_id, type ]`, `[ external_event_id, status, sync_id, type ]`, `[ operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, operation, type ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, external_event_id, status, type ]`, `[ start_date, end_date, external_event_id, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, operation, sync_id, type ]`, `[ start_date, end_date, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, type ]`, `[ start_date, external_event_id, operation, sync_id, type ]`, `[ start_date, external_event_id, status, sync_id, type ]`, `[ start_date, operation, status, sync_id, type ]`, `[ end_date, external_event_id, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status, type ]`, `[ end_date, external_event_id, operation, sync_id, type ]`, `[ end_date, external_event_id, status, sync_id, type ]`, `[ end_date, operation, status, sync_id, type ]`, `[ external_event_id, operation, status, sync_id, type ]`, `[ start_date, end_date, external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status, type ]`, `[ start_date, end_date, external_event_id, operation, sync_id, type ]`, `[ start_date, end_date, external_event_id, status, sync_id, type ]`, `[ start_date, end_date, operation, status, sync_id, type ]`, `[ start_date, external_event_id, operation, status, sync_id, type ]` or `[ end_date, external_event_id, operation, status, sync_id, type ]`.
91
+ (0, _defineProperty2.default)(SyncLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
92
+ var _response$data;
93
+ var params,
94
+ options,
95
+ response,
96
+ _args = arguments;
97
+ return _regenerator.default.wrap(function _callee$(_context) {
98
+ while (1) switch (_context.prev = _context.next) {
99
+ case 0:
100
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
101
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
102
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
103
+ _context.next = 4;
104
+ break;
105
+ }
106
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
107
+ case 4:
108
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
109
+ _context.next = 6;
110
+ break;
111
+ }
112
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
113
+ case 6:
114
+ _context.next = 8;
115
+ return _Api.default.sendRequest('/sync_logs', 'GET', params, options);
116
+ case 8:
117
+ response = _context.sent;
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) {
119
+ return new _SyncLog(obj, options);
120
+ })) || []);
121
+ case 10:
122
+ case "end":
123
+ return _context.stop();
124
+ }
125
+ }, _callee);
126
+ })));
127
+ (0, _defineProperty2.default)(SyncLog, "all", function () {
128
+ var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
129
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
130
+ return _SyncLog.list(params, options);
131
+ });
132
+ var _default = exports.default = SyncLog;
133
+ module.exports = SyncLog;
134
+ module.exports.default = SyncLog;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",