files.com 1.2.35 → 1.2.37
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/ApiRequestLog.md +55 -0
- package/docs/models/AutomationLog.md +47 -0
- package/docs/models/EmailLog.md +39 -0
- package/docs/models/ExavaultApiRequestLog.md +47 -0
- package/docs/models/FileMigrationLog.md +45 -0
- package/docs/models/RemoteServer.md +24 -3
- package/docs/models/RemoteServerConfigurationFile.md +15 -1
- package/docs/models/SftpActionLog.md +75 -0
- package/docs/models/SyncLog.md +45 -0
- package/lib/Files.js +1 -1
- package/lib/models/ApiRequestLog.js +154 -0
- package/lib/models/AutomationLog.js +138 -0
- package/lib/models/EmailLog.js +122 -0
- package/lib/models/ExavaultApiRequestLog.js +138 -0
- package/lib/models/FileMigrationLog.js +134 -0
- package/lib/models/RemoteServer.js +65 -16
- package/lib/models/RemoteServerConfigurationFile.js +28 -0
- package/lib/models/SftpActionLog.js +194 -0
- package/lib/models/SyncLog.js +134 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ApiRequestLog.js +99 -0
- package/src/models/AutomationLog.js +87 -0
- package/src/models/EmailLog.js +75 -0
- package/src/models/ExavaultApiRequestLog.js +87 -0
- package/src/models/FileMigrationLog.js +84 -0
- package/src/models/RemoteServer.js +35 -0
- package/src/models/RemoteServerConfigurationFile.js +21 -0
- package/src/models/SftpActionLog.js +129 -0
- package/src/models/SyncLog.js +84 -0
@@ -0,0 +1,138 @@
|
|
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 _AutomationLog;
|
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 AutomationLog
|
25
|
+
*/
|
26
|
+
var AutomationLog = /*#__PURE__*/(0, _createClass2.default)(function AutomationLog() {
|
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, AutomationLog);
|
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 # Automation ID
|
41
|
+
(0, _defineProperty2.default)(this, "getAutomationId", function () {
|
42
|
+
return _this.attributes.automation_id;
|
43
|
+
});
|
44
|
+
// int64 # Automation Run ID
|
45
|
+
(0, _defineProperty2.default)(this, "getAutomationRunId", function () {
|
46
|
+
return _this.attributes.automation_run_id;
|
47
|
+
});
|
48
|
+
// string # Destination path, for moves and copies
|
49
|
+
(0, _defineProperty2.default)(this, "getDestPath", function () {
|
50
|
+
return _this.attributes.dest_path;
|
51
|
+
});
|
52
|
+
// string # Error type, if applicable
|
53
|
+
(0, _defineProperty2.default)(this, "getErrorType", function () {
|
54
|
+
return _this.attributes.error_type;
|
55
|
+
});
|
56
|
+
// string # Message
|
57
|
+
(0, _defineProperty2.default)(this, "getMessage", function () {
|
58
|
+
return _this.attributes.message;
|
59
|
+
});
|
60
|
+
// string # Operation type
|
61
|
+
(0, _defineProperty2.default)(this, "getOperation", function () {
|
62
|
+
return _this.attributes.operation;
|
63
|
+
});
|
64
|
+
// string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
65
|
+
(0, _defineProperty2.default)(this, "getPath", function () {
|
66
|
+
return _this.attributes.path;
|
67
|
+
});
|
68
|
+
// string # Status
|
69
|
+
(0, _defineProperty2.default)(this, "getStatus", function () {
|
70
|
+
return _this.attributes.status;
|
71
|
+
});
|
72
|
+
// string # Operation type
|
73
|
+
(0, _defineProperty2.default)(this, "getType", function () {
|
74
|
+
return _this.attributes.type;
|
75
|
+
});
|
76
|
+
Object.entries(attributes).forEach(function (_ref) {
|
77
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
78
|
+
key = _ref2[0],
|
79
|
+
value = _ref2[1];
|
80
|
+
var normalizedKey = key.replace('?', '');
|
81
|
+
_this.attributes[normalizedKey] = value;
|
82
|
+
Object.defineProperty(_this, normalizedKey, {
|
83
|
+
value: value,
|
84
|
+
writable: false
|
85
|
+
});
|
86
|
+
});
|
87
|
+
this.options = _objectSpread({}, options);
|
88
|
+
});
|
89
|
+
_AutomationLog = AutomationLog;
|
90
|
+
// Parameters:
|
91
|
+
// 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.
|
92
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
93
|
+
// 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`, `status` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, type ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, type ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, type ]`, `[ path, status ]`, `[ path, type ]`, `[ status, type ]`, `[ 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, end_date, type ]`, `[ 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_id, type ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, automation_run_id, type ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, path, status ]`, `[ start_date, path, type ]`, `[ start_date, status, type ]`, `[ 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_id, type ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, automation_run_id, type ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, path, status ]`, `[ end_date, path, type ]`, `[ end_date, status, type ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, type ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, type ]`, `[ automation_id, path, status ]`, `[ automation_id, path, type ]`, `[ automation_id, status, type ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, type ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, type ]`, `[ automation_run_id, status, type ]`, `[ operation, path, status ]`, `[ operation, path, type ]`, `[ operation, status, type ]`, `[ path, status, type ]`, `[ 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_id, type ]`, `[ 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, automation_run_id, type ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, path, status ]`, `[ start_date, end_date, path, type ]`, `[ start_date, end_date, status, type ]`, `[ 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, automation_run_id, type ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, operation, type ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_id, path, type ]`, `[ start_date, automation_id, status, type ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, operation, type ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, automation_run_id, path, type ]`, `[ start_date, automation_run_id, status, type ]`, `[ start_date, operation, path, status ]`, `[ start_date, operation, path, type ]`, `[ start_date, operation, status, type ]`, `[ start_date, path, status, type ]`, `[ 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, automation_run_id, type ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, operation, type ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_id, path, type ]`, `[ end_date, automation_id, status, type ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, operation, type ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, automation_run_id, path, type ]`, `[ end_date, automation_run_id, status, type ]`, `[ end_date, operation, path, status ]`, `[ end_date, operation, path, type ]`, `[ end_date, operation, status, type ]`, `[ end_date, path, status, type ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, type ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, type ]`, `[ automation_id, automation_run_id, status, type ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, type ]`, `[ automation_id, operation, status, type ]`, `[ automation_id, path, status, type ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, type ]`, `[ automation_run_id, operation, status, type ]`, `[ automation_run_id, path, status, type ]`, `[ operation, path, status, type ]`, `[ 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, automation_run_id, type ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, operation, type ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_id, path, type ]`, `[ start_date, end_date, automation_id, status, type ]`, `[ 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, operation, type ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, automation_run_id, path, type ]`, `[ start_date, end_date, automation_run_id, status, type ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, end_date, operation, path, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, path, status, type ]`, `[ 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, operation, type ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, automation_run_id, path, type ]`, `[ start_date, automation_id, automation_run_id, status, type ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_id, operation, path, type ]`, `[ start_date, automation_id, operation, status, type ]`, `[ start_date, automation_id, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, type ]`, `[ start_date, automation_run_id, operation, status, type ]`, `[ start_date, automation_run_id, path, status, type ]`, `[ start_date, operation, path, status, type ]`, `[ 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, operation, type ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, automation_run_id, path, type ]`, `[ end_date, automation_id, automation_run_id, status, type ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_id, operation, path, type ]`, `[ end_date, automation_id, operation, status, type ]`, `[ end_date, automation_id, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, type ]`, `[ end_date, automation_run_id, operation, status, type ]`, `[ end_date, automation_run_id, path, status, type ]`, `[ end_date, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, type ]`, `[ automation_id, automation_run_id, operation, status, type ]`, `[ automation_id, automation_run_id, path, status, type ]`, `[ automation_id, operation, path, status, type ]`, `[ automation_run_id, operation, path, status, type ]`, `[ 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, operation, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_id, operation, path, type ]`, `[ start_date, end_date, automation_id, operation, status, type ]`, `[ start_date, end_date, automation_id, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_run_id, path, status, type ]`, `[ start_date, end_date, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, automation_id, operation, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path, type ]`, `[ end_date, automation_id, automation_run_id, operation, status, type ]`, `[ end_date, automation_id, automation_run_id, path, status, type ]`, `[ end_date, automation_id, operation, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status, type ]` or `[ end_date, automation_id, automation_run_id, operation, path, status, type ]`.
|
94
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path`, `status` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, type ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, type ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, type ]`, `[ path, status ]`, `[ path, type ]`, `[ status, type ]`, `[ 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, end_date, type ]`, `[ 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_id, type ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, automation_run_id, type ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, path, status ]`, `[ start_date, path, type ]`, `[ start_date, status, type ]`, `[ 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_id, type ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, automation_run_id, type ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, path, status ]`, `[ end_date, path, type ]`, `[ end_date, status, type ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, type ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, type ]`, `[ automation_id, path, status ]`, `[ automation_id, path, type ]`, `[ automation_id, status, type ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, type ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, type ]`, `[ automation_run_id, status, type ]`, `[ operation, path, status ]`, `[ operation, path, type ]`, `[ operation, status, type ]`, `[ path, status, type ]`, `[ 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_id, type ]`, `[ 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, automation_run_id, type ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, path, status ]`, `[ start_date, end_date, path, type ]`, `[ start_date, end_date, status, type ]`, `[ 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, automation_run_id, type ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, operation, type ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_id, path, type ]`, `[ start_date, automation_id, status, type ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, operation, type ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, automation_run_id, path, type ]`, `[ start_date, automation_run_id, status, type ]`, `[ start_date, operation, path, status ]`, `[ start_date, operation, path, type ]`, `[ start_date, operation, status, type ]`, `[ start_date, path, status, type ]`, `[ 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, automation_run_id, type ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, operation, type ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_id, path, type ]`, `[ end_date, automation_id, status, type ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, operation, type ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, automation_run_id, path, type ]`, `[ end_date, automation_run_id, status, type ]`, `[ end_date, operation, path, status ]`, `[ end_date, operation, path, type ]`, `[ end_date, operation, status, type ]`, `[ end_date, path, status, type ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, type ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, type ]`, `[ automation_id, automation_run_id, status, type ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, type ]`, `[ automation_id, operation, status, type ]`, `[ automation_id, path, status, type ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, type ]`, `[ automation_run_id, operation, status, type ]`, `[ automation_run_id, path, status, type ]`, `[ operation, path, status, type ]`, `[ 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, automation_run_id, type ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, operation, type ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_id, path, type ]`, `[ start_date, end_date, automation_id, status, type ]`, `[ 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, operation, type ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, automation_run_id, path, type ]`, `[ start_date, end_date, automation_run_id, status, type ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, end_date, operation, path, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, end_date, path, status, type ]`, `[ 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, operation, type ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, automation_run_id, path, type ]`, `[ start_date, automation_id, automation_run_id, status, type ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_id, operation, path, type ]`, `[ start_date, automation_id, operation, status, type ]`, `[ start_date, automation_id, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, type ]`, `[ start_date, automation_run_id, operation, status, type ]`, `[ start_date, automation_run_id, path, status, type ]`, `[ start_date, operation, path, status, type ]`, `[ 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, operation, type ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, automation_run_id, path, type ]`, `[ end_date, automation_id, automation_run_id, status, type ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_id, operation, path, type ]`, `[ end_date, automation_id, operation, status, type ]`, `[ end_date, automation_id, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, type ]`, `[ end_date, automation_run_id, operation, status, type ]`, `[ end_date, automation_run_id, path, status, type ]`, `[ end_date, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, type ]`, `[ automation_id, automation_run_id, operation, status, type ]`, `[ automation_id, automation_run_id, path, status, type ]`, `[ automation_id, operation, path, status, type ]`, `[ automation_run_id, operation, path, status, type ]`, `[ 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, operation, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_id, operation, path, type ]`, `[ start_date, end_date, automation_id, operation, status, type ]`, `[ start_date, end_date, automation_id, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_run_id, path, status, type ]`, `[ start_date, end_date, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, automation_id, operation, path, status, type ]`, `[ start_date, automation_run_id, operation, path, status, type ]`, `[ end_date, automation_id, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path, type ]`, `[ end_date, automation_id, automation_run_id, operation, status, type ]`, `[ end_date, automation_id, automation_run_id, path, status, type ]`, `[ end_date, automation_id, operation, path, status, type ]`, `[ end_date, automation_run_id, operation, path, status, type ]`, `[ automation_id, automation_run_id, operation, path, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path, type ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status, type ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status, type ]`, `[ start_date, end_date, automation_id, operation, path, status, type ]`, `[ start_date, end_date, automation_run_id, operation, path, status, type ]`, `[ start_date, automation_id, automation_run_id, operation, path, status, type ]` or `[ end_date, automation_id, automation_run_id, operation, path, status, type ]`.
|
95
|
+
(0, _defineProperty2.default)(AutomationLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
96
|
+
var _response$data;
|
97
|
+
var params,
|
98
|
+
options,
|
99
|
+
response,
|
100
|
+
_args = arguments;
|
101
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
102
|
+
while (1) switch (_context.prev = _context.next) {
|
103
|
+
case 0:
|
104
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
105
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
106
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
107
|
+
_context.next = 4;
|
108
|
+
break;
|
109
|
+
}
|
110
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
111
|
+
case 4:
|
112
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
113
|
+
_context.next = 6;
|
114
|
+
break;
|
115
|
+
}
|
116
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
117
|
+
case 6:
|
118
|
+
_context.next = 8;
|
119
|
+
return _Api.default.sendRequest('/automation_logs', 'GET', params, options);
|
120
|
+
case 8:
|
121
|
+
response = _context.sent;
|
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) {
|
123
|
+
return new _AutomationLog(obj, options);
|
124
|
+
})) || []);
|
125
|
+
case 10:
|
126
|
+
case "end":
|
127
|
+
return _context.stop();
|
128
|
+
}
|
129
|
+
}, _callee);
|
130
|
+
})));
|
131
|
+
(0, _defineProperty2.default)(AutomationLog, "all", function () {
|
132
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
133
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
134
|
+
return _AutomationLog.list(params, options);
|
135
|
+
});
|
136
|
+
var _default = exports.default = AutomationLog;
|
137
|
+
module.exports = AutomationLog;
|
138
|
+
module.exports.default = AutomationLog;
|
@@ -0,0 +1,122 @@
|
|
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 _EmailLog;
|
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 EmailLog
|
25
|
+
*/
|
26
|
+
var EmailLog = /*#__PURE__*/(0, _createClass2.default)(function EmailLog() {
|
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, EmailLog);
|
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 # Log Message
|
41
|
+
(0, _defineProperty2.default)(this, "getMessage", function () {
|
42
|
+
return _this.attributes.message;
|
43
|
+
});
|
44
|
+
// string # Status of E-Mail delivery
|
45
|
+
(0, _defineProperty2.default)(this, "getStatus", function () {
|
46
|
+
return _this.attributes.status;
|
47
|
+
});
|
48
|
+
// string # Subject line of E-Mail
|
49
|
+
(0, _defineProperty2.default)(this, "getSubject", function () {
|
50
|
+
return _this.attributes.subject;
|
51
|
+
});
|
52
|
+
// string # To field of E-Mail
|
53
|
+
(0, _defineProperty2.default)(this, "getTo", function () {
|
54
|
+
return _this.attributes.to;
|
55
|
+
});
|
56
|
+
// string # CC field of E-Mail
|
57
|
+
(0, _defineProperty2.default)(this, "getCc", function () {
|
58
|
+
return _this.attributes.cc;
|
59
|
+
});
|
60
|
+
Object.entries(attributes).forEach(function (_ref) {
|
61
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
62
|
+
key = _ref2[0],
|
63
|
+
value = _ref2[1];
|
64
|
+
var normalizedKey = key.replace('?', '');
|
65
|
+
_this.attributes[normalizedKey] = value;
|
66
|
+
Object.defineProperty(_this, normalizedKey, {
|
67
|
+
value: value,
|
68
|
+
writable: false
|
69
|
+
});
|
70
|
+
});
|
71
|
+
this.options = _objectSpread({}, options);
|
72
|
+
});
|
73
|
+
_EmailLog = EmailLog;
|
74
|
+
// Parameters:
|
75
|
+
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
76
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
77
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
78
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
79
|
+
(0, _defineProperty2.default)(EmailLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
80
|
+
var _response$data;
|
81
|
+
var params,
|
82
|
+
options,
|
83
|
+
response,
|
84
|
+
_args = arguments;
|
85
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
86
|
+
while (1) switch (_context.prev = _context.next) {
|
87
|
+
case 0:
|
88
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
89
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
90
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
91
|
+
_context.next = 4;
|
92
|
+
break;
|
93
|
+
}
|
94
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
95
|
+
case 4:
|
96
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
97
|
+
_context.next = 6;
|
98
|
+
break;
|
99
|
+
}
|
100
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
101
|
+
case 6:
|
102
|
+
_context.next = 8;
|
103
|
+
return _Api.default.sendRequest('/email_logs', 'GET', params, options);
|
104
|
+
case 8:
|
105
|
+
response = _context.sent;
|
106
|
+
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) {
|
107
|
+
return new _EmailLog(obj, options);
|
108
|
+
})) || []);
|
109
|
+
case 10:
|
110
|
+
case "end":
|
111
|
+
return _context.stop();
|
112
|
+
}
|
113
|
+
}, _callee);
|
114
|
+
})));
|
115
|
+
(0, _defineProperty2.default)(EmailLog, "all", function () {
|
116
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
117
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
118
|
+
return _EmailLog.list(params, options);
|
119
|
+
});
|
120
|
+
var _default = exports.default = EmailLog;
|
121
|
+
module.exports = EmailLog;
|
122
|
+
module.exports.default = EmailLog;
|
@@ -0,0 +1,138 @@
|
|
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 _ExavaultApiRequestLog;
|
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 ExavaultApiRequestLog
|
25
|
+
*/
|
26
|
+
var ExavaultApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function ExavaultApiRequestLog() {
|
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, ExavaultApiRequestLog);
|
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 # Name of API Endpoint
|
41
|
+
(0, _defineProperty2.default)(this, "getEndpoint", function () {
|
42
|
+
return _this.attributes.endpoint;
|
43
|
+
});
|
44
|
+
// string # Exavault API Version
|
45
|
+
(0, _defineProperty2.default)(this, "getVersion", function () {
|
46
|
+
return _this.attributes.version;
|
47
|
+
});
|
48
|
+
// string # IP of requesting client
|
49
|
+
(0, _defineProperty2.default)(this, "getRequestIp", function () {
|
50
|
+
return _this.attributes.request_ip;
|
51
|
+
});
|
52
|
+
// string # HTTP Method
|
53
|
+
(0, _defineProperty2.default)(this, "getRequestMethod", function () {
|
54
|
+
return _this.attributes.request_method;
|
55
|
+
});
|
56
|
+
// string # Error type, if applicable
|
57
|
+
(0, _defineProperty2.default)(this, "getErrorType", function () {
|
58
|
+
return _this.attributes.error_type;
|
59
|
+
});
|
60
|
+
// string # Error message, if applicable
|
61
|
+
(0, _defineProperty2.default)(this, "getErrorMessage", function () {
|
62
|
+
return _this.attributes.error_message;
|
63
|
+
});
|
64
|
+
// string # User-Agent
|
65
|
+
(0, _defineProperty2.default)(this, "getUserAgent", function () {
|
66
|
+
return _this.attributes.user_agent;
|
67
|
+
});
|
68
|
+
// int64 # HTTP Response Code
|
69
|
+
(0, _defineProperty2.default)(this, "getResponseCode", function () {
|
70
|
+
return _this.attributes.response_code;
|
71
|
+
});
|
72
|
+
// int64 # Duration (in milliseconds)
|
73
|
+
(0, _defineProperty2.default)(this, "getDurationMs", function () {
|
74
|
+
return _this.attributes.duration_ms;
|
75
|
+
});
|
76
|
+
Object.entries(attributes).forEach(function (_ref) {
|
77
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
78
|
+
key = _ref2[0],
|
79
|
+
value = _ref2[1];
|
80
|
+
var normalizedKey = key.replace('?', '');
|
81
|
+
_this.attributes[normalizedKey] = value;
|
82
|
+
Object.defineProperty(_this, normalizedKey, {
|
83
|
+
value: value,
|
84
|
+
writable: false
|
85
|
+
});
|
86
|
+
});
|
87
|
+
this.options = _objectSpread({}, options);
|
88
|
+
});
|
89
|
+
_ExavaultApiRequestLog = ExavaultApiRequestLog;
|
90
|
+
// Parameters:
|
91
|
+
// 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.
|
92
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
93
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `request_ip`, `request_method` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
94
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `request_ip` and `request_method`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
95
|
+
(0, _defineProperty2.default)(ExavaultApiRequestLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
96
|
+
var _response$data;
|
97
|
+
var params,
|
98
|
+
options,
|
99
|
+
response,
|
100
|
+
_args = arguments;
|
101
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
102
|
+
while (1) switch (_context.prev = _context.next) {
|
103
|
+
case 0:
|
104
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
105
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
106
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
107
|
+
_context.next = 4;
|
108
|
+
break;
|
109
|
+
}
|
110
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
111
|
+
case 4:
|
112
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
113
|
+
_context.next = 6;
|
114
|
+
break;
|
115
|
+
}
|
116
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
117
|
+
case 6:
|
118
|
+
_context.next = 8;
|
119
|
+
return _Api.default.sendRequest('/exavault_api_request_logs', 'GET', params, options);
|
120
|
+
case 8:
|
121
|
+
response = _context.sent;
|
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) {
|
123
|
+
return new _ExavaultApiRequestLog(obj, options);
|
124
|
+
})) || []);
|
125
|
+
case 10:
|
126
|
+
case "end":
|
127
|
+
return _context.stop();
|
128
|
+
}
|
129
|
+
}, _callee);
|
130
|
+
})));
|
131
|
+
(0, _defineProperty2.default)(ExavaultApiRequestLog, "all", function () {
|
132
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
133
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
134
|
+
return _ExavaultApiRequestLog.list(params, options);
|
135
|
+
});
|
136
|
+
var _default = exports.default = ExavaultApiRequestLog;
|
137
|
+
module.exports = ExavaultApiRequestLog;
|
138
|
+
module.exports.default = ExavaultApiRequestLog;
|
@@ -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 _FileMigrationLog;
|
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 FileMigrationLog
|
25
|
+
*/
|
26
|
+
var FileMigrationLog = /*#__PURE__*/(0, _createClass2.default)(function FileMigrationLog() {
|
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, FileMigrationLog);
|
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 # File Migration ID
|
41
|
+
(0, _defineProperty2.default)(this, "getFileMigrationId", function () {
|
42
|
+
return _this.attributes.file_migration_id;
|
43
|
+
});
|
44
|
+
// string # Destination path, for moves and copies
|
45
|
+
(0, _defineProperty2.default)(this, "getDestPath", function () {
|
46
|
+
return _this.attributes.dest_path;
|
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
|
+
_FileMigrationLog = FileMigrationLog;
|
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`, `file_migration_id`, `operation`, `status` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, file_migration_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, file_migration_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ operation, status ]`, `[ operation, type ]`, `[ status, type ]`, `[ start_date, end_date, file_migration_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, type ]`, `[ start_date, file_migration_id, operation ]`, `[ start_date, file_migration_id, status ]`, `[ start_date, file_migration_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, status, type ]`, `[ end_date, file_migration_id, operation ]`, `[ end_date, file_migration_id, status ]`, `[ end_date, file_migration_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, status, type ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, status, type ]`, `[ operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation ]`, `[ start_date, end_date, file_migration_id, status ]`, `[ start_date, end_date, file_migration_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, type ]`, `[ start_date, file_migration_id, operation, status ]`, `[ start_date, file_migration_id, operation, type ]`, `[ start_date, file_migration_id, status, type ]`, `[ start_date, operation, status, type ]`, `[ end_date, file_migration_id, operation, status ]`, `[ end_date, file_migration_id, operation, type ]`, `[ end_date, file_migration_id, status, type ]`, `[ end_date, operation, status, type ]`, `[ file_migration_id, operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation, status ]`, `[ start_date, end_date, file_migration_id, operation, type ]`, `[ start_date, end_date, file_migration_id, status, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, file_migration_id, operation, status, type ]` or `[ end_date, file_migration_id, operation, status, 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 ]`, `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, file_migration_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, file_migration_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ operation, status ]`, `[ operation, type ]`, `[ status, type ]`, `[ start_date, end_date, file_migration_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, type ]`, `[ start_date, file_migration_id, operation ]`, `[ start_date, file_migration_id, status ]`, `[ start_date, file_migration_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, status, type ]`, `[ end_date, file_migration_id, operation ]`, `[ end_date, file_migration_id, status ]`, `[ end_date, file_migration_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, status, type ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, status, type ]`, `[ operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation ]`, `[ start_date, end_date, file_migration_id, status ]`, `[ start_date, end_date, file_migration_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, type ]`, `[ start_date, file_migration_id, operation, status ]`, `[ start_date, file_migration_id, operation, type ]`, `[ start_date, file_migration_id, status, type ]`, `[ start_date, operation, status, type ]`, `[ end_date, file_migration_id, operation, status ]`, `[ end_date, file_migration_id, operation, type ]`, `[ end_date, file_migration_id, status, type ]`, `[ end_date, operation, status, type ]`, `[ file_migration_id, operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation, status ]`, `[ start_date, end_date, file_migration_id, operation, type ]`, `[ start_date, end_date, file_migration_id, status, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, file_migration_id, operation, status, type ]` or `[ end_date, file_migration_id, operation, status, type ]`.
|
91
|
+
(0, _defineProperty2.default)(FileMigrationLog, "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('/file_migration_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 _FileMigrationLog(obj, options);
|
120
|
+
})) || []);
|
121
|
+
case 10:
|
122
|
+
case "end":
|
123
|
+
return _context.stop();
|
124
|
+
}
|
125
|
+
}, _callee);
|
126
|
+
})));
|
127
|
+
(0, _defineProperty2.default)(FileMigrationLog, "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 _FileMigrationLog.list(params, options);
|
131
|
+
});
|
132
|
+
var _default = exports.default = FileMigrationLog;
|
133
|
+
module.exports = FileMigrationLog;
|
134
|
+
module.exports.default = FileMigrationLog;
|