files.com 1.2.101 → 1.2.103
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +2 -0
- package/docs/models/Action.md +2 -0
- package/docs/models/ActionNotificationExportResult.md +0 -2
- package/docs/models/ApiKey.md +1 -3
- package/docs/models/ApiRequestLog.md +2 -2
- package/docs/models/App.md +1 -3
- package/docs/models/As2IncomingMessage.md +1 -3
- package/docs/models/As2OutgoingMessage.md +1 -3
- package/docs/models/As2Partner.md +0 -2
- package/docs/models/As2Station.md +0 -2
- package/docs/models/Automation.md +1 -10
- package/docs/models/AutomationLog.md +0 -2
- package/docs/models/AutomationRun.md +1 -3
- package/docs/models/BandwidthSnapshot.md +1 -3
- package/docs/models/Behavior.md +2 -8
- package/docs/models/Bundle.md +1 -3
- package/docs/models/BundleAction.md +1 -3
- package/docs/models/BundleDownload.md +1 -3
- package/docs/models/BundleNotification.md +1 -3
- package/docs/models/BundleRecipient.md +1 -3
- package/docs/models/BundleRegistration.md +0 -2
- package/docs/models/Clickwrap.md +0 -2
- package/docs/models/DnsRecord.md +0 -2
- package/docs/models/EmailIncomingMessage.md +1 -3
- package/docs/models/EmailLog.md +0 -2
- package/docs/models/ExavaultApiRequestLog.md +0 -2
- package/docs/models/ExternalEvent.md +1 -3
- package/docs/models/FileComment.md +0 -2
- package/docs/models/FileMigrationLog.md +0 -2
- package/docs/models/Folder.md +0 -1
- package/docs/models/FormFieldSet.md +0 -2
- package/docs/models/FtpActionLog.md +0 -2
- package/docs/models/GpgKey.md +1 -3
- package/docs/models/Group.md +1 -3
- package/docs/models/GroupUser.md +0 -2
- package/docs/models/History.md +7 -15
- package/docs/models/HistoryExportResult.md +2 -2
- package/docs/models/InboxRecipient.md +1 -3
- package/docs/models/InboxRegistration.md +0 -2
- package/docs/models/InboxUpload.md +1 -3
- package/docs/models/Invoice.md +0 -2
- package/docs/models/IpAddress.md +0 -8
- package/docs/models/Lock.md +0 -2
- package/docs/models/Message.md +0 -2
- package/docs/models/MessageComment.md +0 -2
- package/docs/models/MessageCommentReaction.md +0 -2
- package/docs/models/MessageReaction.md +0 -2
- package/docs/models/Notification.md +1 -5
- package/docs/models/OutboundConnectionLog.md +0 -2
- package/docs/models/Payment.md +0 -2
- package/docs/models/Permission.md +1 -3
- package/docs/models/Priority.md +0 -2
- package/docs/models/Project.md +0 -2
- package/docs/models/PublicHostingRequestLog.md +0 -2
- package/docs/models/PublicKey.md +0 -2
- package/docs/models/RemoteBandwidthSnapshot.md +1 -3
- package/docs/models/RemoteServer.md +0 -2
- package/docs/models/Request.md +2 -6
- package/docs/models/SettingsChange.md +3 -3
- package/docs/models/SftpActionLog.md +0 -2
- package/docs/models/SftpHostKey.md +0 -2
- package/docs/models/ShareGroup.md +0 -2
- package/docs/models/Site.md +2 -1
- package/docs/models/Snapshot.md +0 -2
- package/docs/models/SsoStrategy.md +0 -2
- package/docs/models/SyncLog.md +0 -2
- package/docs/models/UsageDailySnapshot.md +1 -3
- package/docs/models/UsageSnapshot.md +0 -2
- package/docs/models/User.md +1 -3
- package/docs/models/UserCipherUse.md +0 -2
- package/docs/models/UserRequest.md +0 -2
- package/docs/models/WebDavActionLog.md +0 -2
- package/lib/Errors.js +546 -522
- package/lib/Files.js +1 -1
- package/lib/models/Action.js +4 -0
- package/lib/models/ActionNotificationExportResult.js +5 -19
- package/lib/models/ApiKey.js +4 -18
- package/lib/models/ApiRequestLog.js +7 -17
- package/lib/models/App.js +4 -18
- package/lib/models/As2IncomingMessage.js +6 -20
- package/lib/models/As2OutgoingMessage.js +6 -20
- package/lib/models/As2Partner.js +3 -17
- package/lib/models/As2Station.js +3 -17
- package/lib/models/Automation.js +87 -124
- package/lib/models/AutomationLog.js +3 -17
- package/lib/models/AutomationRun.js +6 -20
- package/lib/models/BandwidthSnapshot.js +4 -18
- package/lib/models/Behavior.js +10 -45
- package/lib/models/Bundle.js +4 -18
- package/lib/models/BundleAction.js +8 -22
- package/lib/models/BundleDownload.js +8 -22
- package/lib/models/BundleNotification.js +4 -18
- package/lib/models/BundleRecipient.js +6 -20
- package/lib/models/BundleRegistration.js +5 -19
- package/lib/models/Clickwrap.js +3 -17
- package/lib/models/DnsRecord.js +3 -17
- package/lib/models/EmailIncomingMessage.js +4 -18
- package/lib/models/EmailLog.js +3 -17
- package/lib/models/ExavaultApiRequestLog.js +3 -17
- package/lib/models/ExternalEvent.js +4 -18
- package/lib/models/FileComment.js +5 -19
- package/lib/models/FileMigrationLog.js +3 -17
- package/lib/models/Folder.js +13 -20
- package/lib/models/FormFieldSet.js +3 -17
- package/lib/models/FtpActionLog.js +3 -17
- package/lib/models/GpgKey.js +4 -18
- package/lib/models/Group.js +6 -20
- package/lib/models/GroupUser.js +5 -19
- package/lib/models/History.js +30 -96
- package/lib/models/HistoryExportResult.js +9 -19
- package/lib/models/InboxRecipient.js +6 -20
- package/lib/models/InboxRegistration.js +5 -19
- package/lib/models/InboxUpload.js +8 -22
- package/lib/models/Invoice.js +3 -17
- package/lib/models/IpAddress.js +12 -68
- package/lib/models/Lock.js +5 -19
- package/lib/models/Message.js +5 -19
- package/lib/models/MessageComment.js +5 -19
- package/lib/models/MessageCommentReaction.js +5 -19
- package/lib/models/MessageReaction.js +5 -19
- package/lib/models/Notification.js +12 -33
- package/lib/models/OutboundConnectionLog.js +3 -17
- package/lib/models/Payment.js +3 -17
- package/lib/models/Permission.js +10 -24
- package/lib/models/Priority.js +5 -19
- package/lib/models/Project.js +3 -17
- package/lib/models/PublicHostingRequestLog.js +3 -17
- package/lib/models/PublicKey.js +3 -17
- package/lib/models/RemoteBandwidthSnapshot.js +4 -18
- package/lib/models/RemoteServer.js +3 -17
- package/lib/models/Request.js +12 -40
- package/lib/models/SettingsChange.js +8 -18
- package/lib/models/SftpActionLog.js +3 -17
- package/lib/models/SftpHostKey.js +3 -17
- package/lib/models/ShareGroup.js +3 -17
- package/lib/models/Snapshot.js +3 -17
- package/lib/models/SsoStrategy.js +3 -17
- package/lib/models/SyncLog.js +3 -17
- package/lib/models/UsageDailySnapshot.js +4 -18
- package/lib/models/UsageSnapshot.js +3 -17
- package/lib/models/User.js +8 -22
- package/lib/models/UserCipherUse.js +3 -17
- package/lib/models/UserRequest.js +3 -17
- package/lib/models/WebDavActionLog.js +3 -17
- package/package.json +1 -1
- package/src/Errors.js +2 -0
- package/src/Files.js +1 -1
- package/src/models/Action.js +3 -0
- package/src/models/ActionNotificationExportResult.js +0 -10
- package/src/models/ApiKey.js +1 -11
- package/src/models/ApiRequestLog.js +3 -10
- package/src/models/App.js +1 -11
- package/src/models/As2IncomingMessage.js +1 -11
- package/src/models/As2OutgoingMessage.js +1 -11
- package/src/models/As2Partner.js +0 -10
- package/src/models/As2Station.js +0 -10
- package/src/models/Automation.js +1 -30
- package/src/models/AutomationLog.js +0 -10
- package/src/models/AutomationRun.js +1 -11
- package/src/models/BandwidthSnapshot.js +1 -11
- package/src/models/Behavior.js +2 -27
- package/src/models/Bundle.js +1 -11
- package/src/models/BundleAction.js +1 -11
- package/src/models/BundleDownload.js +1 -11
- package/src/models/BundleNotification.js +1 -11
- package/src/models/BundleRecipient.js +1 -11
- package/src/models/BundleRegistration.js +0 -10
- package/src/models/Clickwrap.js +0 -10
- package/src/models/DnsRecord.js +0 -10
- package/src/models/EmailIncomingMessage.js +1 -11
- package/src/models/EmailLog.js +0 -10
- package/src/models/ExavaultApiRequestLog.js +0 -10
- package/src/models/ExternalEvent.js +1 -11
- package/src/models/FileComment.js +0 -10
- package/src/models/FileMigrationLog.js +0 -10
- package/src/models/Folder.js +0 -5
- package/src/models/FormFieldSet.js +0 -10
- package/src/models/FtpActionLog.js +0 -10
- package/src/models/GpgKey.js +1 -11
- package/src/models/Group.js +1 -11
- package/src/models/GroupUser.js +0 -10
- package/src/models/History.js +8 -55
- package/src/models/HistoryExportResult.js +3 -10
- package/src/models/InboxRecipient.js +1 -11
- package/src/models/InboxRegistration.js +0 -10
- package/src/models/InboxUpload.js +1 -11
- package/src/models/Invoice.js +0 -10
- package/src/models/IpAddress.js +0 -40
- package/src/models/Lock.js +0 -10
- package/src/models/Message.js +0 -10
- package/src/models/MessageComment.js +0 -10
- package/src/models/MessageCommentReaction.js +0 -10
- package/src/models/MessageReaction.js +0 -10
- package/src/models/Notification.js +1 -16
- package/src/models/OutboundConnectionLog.js +0 -10
- package/src/models/Payment.js +0 -10
- package/src/models/Permission.js +1 -11
- package/src/models/Priority.js +0 -10
- package/src/models/Project.js +0 -10
- package/src/models/PublicHostingRequestLog.js +0 -10
- package/src/models/PublicKey.js +0 -10
- package/src/models/RemoteBandwidthSnapshot.js +1 -11
- package/src/models/RemoteServer.js +0 -10
- package/src/models/Request.js +2 -22
- package/src/models/SettingsChange.js +4 -11
- package/src/models/SftpActionLog.js +0 -10
- package/src/models/SftpHostKey.js +0 -10
- package/src/models/ShareGroup.js +0 -10
- package/src/models/Snapshot.js +0 -10
- package/src/models/SsoStrategy.js +0 -10
- package/src/models/SyncLog.js +0 -10
- package/src/models/UsageDailySnapshot.js +1 -11
- package/src/models/UsageSnapshot.js +0 -10
- package/src/models/User.js +1 -11
- package/src/models/UserCipherUse.js +0 -10
- package/src/models/UserRequest.js +0 -10
- package/src/models/WebDavActionLog.js +0 -10
package/lib/models/History.js
CHANGED
@@ -73,6 +73,10 @@ var History = /*#__PURE__*/(0, _createClass2.default)(function History() {
|
|
73
73
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
74
74
|
return _this.attributes.username;
|
75
75
|
});
|
76
|
+
// boolean # true if this change was performed by a user on a parent site.
|
77
|
+
(0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
|
78
|
+
return _this.attributes.user_is_from_parent_site;
|
79
|
+
});
|
76
80
|
// string # Type of action
|
77
81
|
(0, _defineProperty2.default)(this, "getAction", function () {
|
78
82
|
return _this.attributes.action;
|
@@ -105,9 +109,7 @@ _History = History;
|
|
105
109
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
106
110
|
// 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.
|
107
111
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
108
|
-
//
|
109
|
-
// page - int64
|
110
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
112
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
111
113
|
// path (required) - string - Path to operate on.
|
112
114
|
(0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
|
113
115
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(path) {
|
@@ -165,33 +167,21 @@ _History = History;
|
|
165
167
|
}
|
166
168
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
167
169
|
case 17:
|
168
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
169
|
-
_context.next = 19;
|
170
|
-
break;
|
171
|
-
}
|
172
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
173
|
-
case 19:
|
174
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
175
|
-
_context.next = 21;
|
176
|
-
break;
|
177
|
-
}
|
178
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
179
|
-
case 21:
|
180
170
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
181
|
-
_context.next =
|
171
|
+
_context.next = 19;
|
182
172
|
break;
|
183
173
|
}
|
184
174
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
185
|
-
case
|
186
|
-
_context.next =
|
175
|
+
case 19:
|
176
|
+
_context.next = 21;
|
187
177
|
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
188
|
-
case
|
178
|
+
case 21:
|
189
179
|
response = _context.sent;
|
190
180
|
Action = require('./Action.js').default;
|
191
181
|
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) {
|
192
182
|
return new Action(obj, options);
|
193
183
|
})) || []);
|
194
|
-
case
|
184
|
+
case 24:
|
195
185
|
case "end":
|
196
186
|
return _context.stop();
|
197
187
|
}
|
@@ -207,9 +197,7 @@ _History = History;
|
|
207
197
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
208
198
|
// 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.
|
209
199
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
210
|
-
//
|
211
|
-
// page - int64
|
212
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
200
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
213
201
|
// path (required) - string - Path to operate on.
|
214
202
|
(0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
|
215
203
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
|
@@ -267,33 +255,21 @@ _History = History;
|
|
267
255
|
}
|
268
256
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
269
257
|
case 17:
|
270
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
271
|
-
_context2.next = 19;
|
272
|
-
break;
|
273
|
-
}
|
274
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
275
|
-
case 19:
|
276
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
277
|
-
_context2.next = 21;
|
278
|
-
break;
|
279
|
-
}
|
280
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
281
|
-
case 21:
|
282
258
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
283
|
-
_context2.next =
|
259
|
+
_context2.next = 19;
|
284
260
|
break;
|
285
261
|
}
|
286
262
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
287
|
-
case
|
288
|
-
_context2.next =
|
263
|
+
case 19:
|
264
|
+
_context2.next = 21;
|
289
265
|
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
290
|
-
case
|
266
|
+
case 21:
|
291
267
|
response = _context2.sent;
|
292
268
|
Action = require('./Action.js').default;
|
293
269
|
return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
294
270
|
return new Action(obj, options);
|
295
271
|
})) || []);
|
296
|
-
case
|
272
|
+
case 24:
|
297
273
|
case "end":
|
298
274
|
return _context2.stop();
|
299
275
|
}
|
@@ -309,9 +285,7 @@ _History = History;
|
|
309
285
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
310
286
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
311
287
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
312
|
-
//
|
313
|
-
// page - int64
|
314
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
288
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
315
289
|
// user_id (required) - int64 - User ID.
|
316
290
|
(0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
|
317
291
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(userId) {
|
@@ -369,33 +343,21 @@ _History = History;
|
|
369
343
|
}
|
370
344
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
371
345
|
case 17:
|
372
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
373
|
-
_context3.next = 19;
|
374
|
-
break;
|
375
|
-
}
|
376
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
377
|
-
case 19:
|
378
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
379
|
-
_context3.next = 21;
|
380
|
-
break;
|
381
|
-
}
|
382
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
383
|
-
case 21:
|
384
346
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
385
|
-
_context3.next =
|
347
|
+
_context3.next = 19;
|
386
348
|
break;
|
387
349
|
}
|
388
350
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
389
|
-
case
|
390
|
-
_context3.next =
|
351
|
+
case 19:
|
352
|
+
_context3.next = 21;
|
391
353
|
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
|
392
|
-
case
|
354
|
+
case 21:
|
393
355
|
response = _context3.sent;
|
394
356
|
Action = require('./Action.js').default;
|
395
357
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
|
396
358
|
return new Action(obj, options);
|
397
359
|
})) || []);
|
398
|
-
case
|
360
|
+
case 24:
|
399
361
|
case "end":
|
400
362
|
return _context3.stop();
|
401
363
|
}
|
@@ -411,9 +373,7 @@ _History = History;
|
|
411
373
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
412
374
|
// 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.
|
413
375
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
414
|
-
//
|
415
|
-
// page - int64
|
416
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
376
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
417
377
|
(0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
418
378
|
var _response$data4;
|
419
379
|
var params,
|
@@ -456,27 +416,15 @@ _History = History;
|
|
456
416
|
}
|
457
417
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
458
418
|
case 12:
|
459
|
-
|
460
|
-
_context4.next = 14;
|
461
|
-
break;
|
462
|
-
}
|
463
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
464
|
-
case 14:
|
465
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
466
|
-
_context4.next = 16;
|
467
|
-
break;
|
468
|
-
}
|
469
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
470
|
-
case 16:
|
471
|
-
_context4.next = 18;
|
419
|
+
_context4.next = 14;
|
472
420
|
return _Api.default.sendRequest('/history/login', 'GET', params, options);
|
473
|
-
case
|
421
|
+
case 14:
|
474
422
|
response = _context4.sent;
|
475
423
|
Action = require('./Action.js').default;
|
476
424
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.map(function (obj) {
|
477
425
|
return new Action(obj, options);
|
478
426
|
})) || []);
|
479
|
-
case
|
427
|
+
case 17:
|
480
428
|
case "end":
|
481
429
|
return _context4.stop();
|
482
430
|
}
|
@@ -488,9 +436,7 @@ _History = History;
|
|
488
436
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
489
437
|
// 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.
|
490
438
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
491
|
-
//
|
492
|
-
// page - int64
|
493
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `folder`, `user_id` or `created_at`.
|
439
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `folder`, `user_id` or `created_at`.
|
494
440
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
495
441
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
496
442
|
(0, _defineProperty2.default)(History, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
@@ -535,27 +481,15 @@ _History = History;
|
|
535
481
|
}
|
536
482
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
537
483
|
case 12:
|
538
|
-
|
539
|
-
_context5.next = 14;
|
540
|
-
break;
|
541
|
-
}
|
542
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
543
|
-
case 14:
|
544
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
545
|
-
_context5.next = 16;
|
546
|
-
break;
|
547
|
-
}
|
548
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
549
|
-
case 16:
|
550
|
-
_context5.next = 18;
|
484
|
+
_context5.next = 14;
|
551
485
|
return _Api.default.sendRequest('/history', 'GET', params, options);
|
552
|
-
case
|
486
|
+
case 14:
|
553
487
|
response = _context5.sent;
|
554
488
|
Action = require('./Action.js').default;
|
555
489
|
return _context5.abrupt("return", (response === null || response === void 0 || (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : _response$data5.map(function (obj) {
|
556
490
|
return new Action(obj, options);
|
557
491
|
})) || []);
|
558
|
-
case
|
492
|
+
case 17:
|
559
493
|
case "end":
|
560
494
|
return _context5.stop();
|
561
495
|
}
|
@@ -81,6 +81,10 @@ var HistoryExportResult = /*#__PURE__*/(0, _createClass2.default)(function Histo
|
|
81
81
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
82
82
|
return _this.attributes.username;
|
83
83
|
});
|
84
|
+
// boolean # true if this change was performed by a user on a parent site.
|
85
|
+
(0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
|
86
|
+
return _this.attributes.user_is_from_parent_site;
|
87
|
+
});
|
84
88
|
// string # What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
|
85
89
|
(0, _defineProperty2.default)(this, "getAction", function () {
|
86
90
|
return _this.attributes.action;
|
@@ -151,8 +155,6 @@ _HistoryExportResult = HistoryExportResult;
|
|
151
155
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
152
156
|
// 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.
|
153
157
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
154
|
-
// action - string
|
155
|
-
// page - int64
|
156
158
|
// history_export_id (required) - int64 - ID of the associated history export.
|
157
159
|
(0, _defineProperty2.default)(HistoryExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
158
160
|
var _response$data;
|
@@ -189,32 +191,20 @@ _HistoryExportResult = HistoryExportResult;
|
|
189
191
|
}
|
190
192
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
191
193
|
case 10:
|
192
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
193
|
-
_context.next = 12;
|
194
|
-
break;
|
195
|
-
}
|
196
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
197
|
-
case 12:
|
198
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
199
|
-
_context.next = 14;
|
200
|
-
break;
|
201
|
-
}
|
202
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
203
|
-
case 14:
|
204
194
|
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
205
|
-
_context.next =
|
195
|
+
_context.next = 12;
|
206
196
|
break;
|
207
197
|
}
|
208
198
|
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
|
209
|
-
case
|
210
|
-
_context.next =
|
199
|
+
case 12:
|
200
|
+
_context.next = 14;
|
211
201
|
return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
|
212
|
-
case
|
202
|
+
case 14:
|
213
203
|
response = _context.sent;
|
214
204
|
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) {
|
215
205
|
return new _HistoryExportResult(obj, options);
|
216
206
|
})) || []);
|
217
|
-
case
|
207
|
+
case 16:
|
218
208
|
case "end":
|
219
209
|
return _context.stop();
|
220
210
|
}
|
@@ -122,9 +122,7 @@ _InboxRecipient = InboxRecipient;
|
|
122
122
|
// Parameters:
|
123
123
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
124
124
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
125
|
-
//
|
126
|
-
// page - int64
|
127
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
125
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `has_registrations`.
|
128
126
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
129
127
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
130
128
|
(0, _defineProperty2.default)(InboxRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
@@ -156,32 +154,20 @@ _InboxRecipient = InboxRecipient;
|
|
156
154
|
}
|
157
155
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
158
156
|
case 8:
|
159
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
160
|
-
_context2.next = 10;
|
161
|
-
break;
|
162
|
-
}
|
163
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
164
|
-
case 10:
|
165
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
166
|
-
_context2.next = 12;
|
167
|
-
break;
|
168
|
-
}
|
169
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
170
|
-
case 12:
|
171
157
|
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
172
|
-
_context2.next =
|
158
|
+
_context2.next = 10;
|
173
159
|
break;
|
174
160
|
}
|
175
161
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
176
|
-
case
|
177
|
-
_context2.next =
|
162
|
+
case 10:
|
163
|
+
_context2.next = 12;
|
178
164
|
return _Api.default.sendRequest('/inbox_recipients', 'GET', params, options);
|
179
|
-
case
|
165
|
+
case 12:
|
180
166
|
response = _context2.sent;
|
181
167
|
return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
182
168
|
return new _InboxRecipient(obj, options);
|
183
169
|
})) || []);
|
184
|
-
case
|
170
|
+
case 14:
|
185
171
|
case "end":
|
186
172
|
return _context2.stop();
|
187
173
|
}
|
@@ -98,8 +98,6 @@ _InboxRegistration = InboxRegistration;
|
|
98
98
|
// Parameters:
|
99
99
|
// 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.
|
100
100
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
101
|
-
// action - string
|
102
|
-
// page - int64
|
103
101
|
// folder_behavior_id - int64 - ID of the associated Inbox.
|
104
102
|
(0, _defineProperty2.default)(InboxRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
105
103
|
var _response$data;
|
@@ -124,32 +122,20 @@ _InboxRegistration = InboxRegistration;
|
|
124
122
|
}
|
125
123
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
126
124
|
case 6:
|
127
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
128
|
-
_context.next = 8;
|
129
|
-
break;
|
130
|
-
}
|
131
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
132
|
-
case 8:
|
133
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
134
|
-
_context.next = 10;
|
135
|
-
break;
|
136
|
-
}
|
137
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
138
|
-
case 10:
|
139
125
|
if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
|
140
|
-
_context.next =
|
126
|
+
_context.next = 8;
|
141
127
|
break;
|
142
128
|
}
|
143
129
|
throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
|
144
|
-
case
|
145
|
-
_context.next =
|
130
|
+
case 8:
|
131
|
+
_context.next = 10;
|
146
132
|
return _Api.default.sendRequest('/inbox_registrations', 'GET', params, options);
|
147
|
-
case
|
133
|
+
case 10:
|
148
134
|
response = _context.sent;
|
149
135
|
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) {
|
150
136
|
return new _InboxRegistration(obj, options);
|
151
137
|
})) || []);
|
152
|
-
case
|
138
|
+
case 12:
|
153
139
|
case "end":
|
154
140
|
return _context.stop();
|
155
141
|
}
|
@@ -62,9 +62,7 @@ _InboxUpload = InboxUpload;
|
|
62
62
|
// Parameters:
|
63
63
|
// 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.
|
64
64
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
65
|
-
//
|
66
|
-
// page - int64
|
67
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`.
|
65
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
68
66
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
69
67
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
70
68
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -95,38 +93,26 @@ _InboxUpload = InboxUpload;
|
|
95
93
|
}
|
96
94
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
97
95
|
case 6:
|
98
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
99
|
-
_context.next = 8;
|
100
|
-
break;
|
101
|
-
}
|
102
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
103
|
-
case 8:
|
104
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
105
|
-
_context.next = 10;
|
106
|
-
break;
|
107
|
-
}
|
108
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
109
|
-
case 10:
|
110
96
|
if (!(params.inbox_registration_id && !(0, _utils.isInt)(params.inbox_registration_id))) {
|
111
|
-
_context.next =
|
97
|
+
_context.next = 8;
|
112
98
|
break;
|
113
99
|
}
|
114
100
|
throw new errors.InvalidParameterError("Bad parameter: inbox_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_registration_id)));
|
115
|
-
case
|
101
|
+
case 8:
|
116
102
|
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
117
|
-
_context.next =
|
103
|
+
_context.next = 10;
|
118
104
|
break;
|
119
105
|
}
|
120
106
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
121
|
-
case
|
122
|
-
_context.next =
|
107
|
+
case 10:
|
108
|
+
_context.next = 12;
|
123
109
|
return _Api.default.sendRequest('/inbox_uploads', 'GET', params, options);
|
124
|
-
case
|
110
|
+
case 12:
|
125
111
|
response = _context.sent;
|
126
112
|
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) {
|
127
113
|
return new _InboxUpload(obj, options);
|
128
114
|
})) || []);
|
129
|
-
case
|
115
|
+
case 14:
|
130
116
|
case "end":
|
131
117
|
return _context.stop();
|
132
118
|
}
|
package/lib/models/Invoice.js
CHANGED
@@ -102,8 +102,6 @@ _Invoice = Invoice;
|
|
102
102
|
// Parameters:
|
103
103
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
104
104
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
105
|
-
// action - string
|
106
|
-
// page - int64
|
107
105
|
(0, _defineProperty2.default)(Invoice, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
108
106
|
var _response$data;
|
109
107
|
var params,
|
@@ -128,27 +126,15 @@ _Invoice = Invoice;
|
|
128
126
|
}
|
129
127
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
130
128
|
case 6:
|
131
|
-
|
132
|
-
_context.next = 8;
|
133
|
-
break;
|
134
|
-
}
|
135
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
136
|
-
case 8:
|
137
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
138
|
-
_context.next = 10;
|
139
|
-
break;
|
140
|
-
}
|
141
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
142
|
-
case 10:
|
143
|
-
_context.next = 12;
|
129
|
+
_context.next = 8;
|
144
130
|
return _Api.default.sendRequest('/invoices', 'GET', params, options);
|
145
|
-
case
|
131
|
+
case 8:
|
146
132
|
response = _context.sent;
|
147
133
|
AccountLineItem = require('./AccountLineItem.js').default;
|
148
134
|
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) {
|
149
135
|
return new AccountLineItem(obj, options);
|
150
136
|
})) || []);
|
151
|
-
case
|
137
|
+
case 11:
|
152
138
|
case "end":
|
153
139
|
return _context.stop();
|
154
140
|
}
|