files.com 1.2.100 → 1.2.102
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 +0 -2
- package/docs/models/Action.md +0 -2
- package/docs/models/ActionNotificationExportResult.md +0 -2
- package/docs/models/ApiKey.md +1 -3
- package/docs/models/ApiRequestLog.md +0 -4
- package/docs/models/App.md +1 -3
- package/docs/models/As2IncomingMessage.md +1 -3
- package/docs/models/As2OutgoingMessage.md +1 -3
- package/docs/models/As2Partner.md +0 -2
- package/docs/models/As2Station.md +0 -2
- package/docs/models/Automation.md +1 -10
- package/docs/models/AutomationLog.md +0 -2
- package/docs/models/AutomationRun.md +1 -3
- package/docs/models/BandwidthSnapshot.md +1 -3
- package/docs/models/Behavior.md +2 -8
- package/docs/models/Bundle.md +1 -3
- package/docs/models/BundleAction.md +1 -3
- package/docs/models/BundleDownload.md +1 -3
- package/docs/models/BundleNotification.md +1 -3
- package/docs/models/BundleRecipient.md +1 -3
- package/docs/models/BundleRegistration.md +0 -2
- package/docs/models/Clickwrap.md +0 -2
- package/docs/models/DnsRecord.md +0 -2
- package/docs/models/EmailIncomingMessage.md +1 -3
- package/docs/models/EmailLog.md +0 -2
- package/docs/models/ExavaultApiRequestLog.md +0 -2
- package/docs/models/ExternalEvent.md +1 -3
- package/docs/models/FileComment.md +0 -2
- package/docs/models/FileMigrationLog.md +0 -2
- package/docs/models/Folder.md +0 -1
- package/docs/models/FormFieldSet.md +0 -2
- package/docs/models/FtpActionLog.md +0 -2
- package/docs/models/GpgKey.md +1 -3
- package/docs/models/Group.md +1 -3
- package/docs/models/GroupUser.md +0 -2
- package/docs/models/History.md +5 -17
- package/docs/models/HistoryExportResult.md +0 -4
- package/docs/models/InboxRecipient.md +1 -3
- package/docs/models/InboxRegistration.md +0 -2
- package/docs/models/InboxUpload.md +1 -3
- package/docs/models/Invoice.md +0 -2
- package/docs/models/IpAddress.md +0 -8
- package/docs/models/Lock.md +0 -2
- package/docs/models/Message.md +0 -2
- package/docs/models/MessageComment.md +0 -2
- package/docs/models/MessageCommentReaction.md +0 -2
- package/docs/models/MessageReaction.md +0 -2
- package/docs/models/Notification.md +1 -5
- package/docs/models/OutboundConnectionLog.md +0 -2
- package/docs/models/Payment.md +0 -2
- package/docs/models/Permission.md +1 -3
- package/docs/models/Priority.md +0 -2
- package/docs/models/Project.md +0 -2
- package/docs/models/PublicHostingRequestLog.md +0 -2
- package/docs/models/PublicKey.md +0 -2
- package/docs/models/RemoteBandwidthSnapshot.md +1 -3
- package/docs/models/RemoteServer.md +0 -2
- package/docs/models/Request.md +2 -6
- package/docs/models/SettingsChange.md +1 -5
- 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 +1 -2
- package/docs/models/Snapshot.md +0 -2
- package/docs/models/SsoStrategy.md +0 -2
- package/docs/models/SyncLog.md +0 -2
- package/docs/models/UsageDailySnapshot.md +1 -3
- package/docs/models/UsageSnapshot.md +0 -2
- package/docs/models/User.md +1 -3
- package/docs/models/UserCipherUse.md +0 -2
- package/docs/models/UserRequest.md +0 -2
- package/docs/models/WebDavActionLog.md +0 -2
- package/lib/Errors.js +522 -546
- package/lib/Files.js +1 -1
- package/lib/models/Action.js +0 -4
- package/lib/models/ActionNotificationExportResult.js +5 -19
- package/lib/models/ApiKey.js +4 -18
- package/lib/models/ApiRequestLog.js +3 -21
- package/lib/models/App.js +4 -18
- package/lib/models/As2IncomingMessage.js +6 -20
- package/lib/models/As2OutgoingMessage.js +6 -20
- package/lib/models/As2Partner.js +3 -17
- package/lib/models/As2Station.js +3 -17
- package/lib/models/Automation.js +87 -124
- package/lib/models/AutomationLog.js +3 -17
- package/lib/models/AutomationRun.js +6 -20
- package/lib/models/BandwidthSnapshot.js +4 -18
- package/lib/models/Behavior.js +10 -45
- package/lib/models/Bundle.js +4 -18
- package/lib/models/BundleAction.js +8 -22
- package/lib/models/BundleDownload.js +8 -22
- package/lib/models/BundleNotification.js +4 -18
- package/lib/models/BundleRecipient.js +6 -20
- package/lib/models/BundleRegistration.js +5 -19
- package/lib/models/Clickwrap.js +3 -17
- package/lib/models/DnsRecord.js +3 -17
- package/lib/models/EmailIncomingMessage.js +4 -18
- package/lib/models/EmailLog.js +3 -17
- package/lib/models/ExavaultApiRequestLog.js +3 -17
- package/lib/models/ExternalEvent.js +4 -18
- package/lib/models/FileComment.js +5 -19
- package/lib/models/FileMigrationLog.js +3 -17
- package/lib/models/Folder.js +13 -20
- package/lib/models/FormFieldSet.js +3 -17
- package/lib/models/FtpActionLog.js +3 -17
- package/lib/models/GpgKey.js +4 -18
- package/lib/models/Group.js +6 -20
- package/lib/models/GroupUser.js +5 -19
- package/lib/models/History.js +26 -100
- package/lib/models/HistoryExportResult.js +5 -23
- package/lib/models/InboxRecipient.js +6 -20
- package/lib/models/InboxRegistration.js +5 -19
- package/lib/models/InboxUpload.js +8 -22
- package/lib/models/Invoice.js +3 -17
- package/lib/models/IpAddress.js +12 -68
- package/lib/models/Lock.js +5 -19
- package/lib/models/Message.js +5 -19
- package/lib/models/MessageComment.js +5 -19
- package/lib/models/MessageCommentReaction.js +5 -19
- package/lib/models/MessageReaction.js +5 -19
- package/lib/models/Notification.js +12 -33
- package/lib/models/OutboundConnectionLog.js +3 -17
- package/lib/models/Payment.js +3 -17
- package/lib/models/Permission.js +10 -24
- package/lib/models/Priority.js +5 -19
- package/lib/models/Project.js +3 -17
- package/lib/models/PublicHostingRequestLog.js +3 -17
- package/lib/models/PublicKey.js +3 -17
- package/lib/models/RemoteBandwidthSnapshot.js +4 -18
- package/lib/models/RemoteServer.js +3 -17
- package/lib/models/Request.js +12 -40
- package/lib/models/SettingsChange.js +4 -22
- 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 +0 -2
- package/src/Files.js +1 -1
- package/src/models/Action.js +0 -3
- package/src/models/ActionNotificationExportResult.js +0 -10
- package/src/models/ApiKey.js +1 -11
- package/src/models/ApiRequestLog.js +0 -13
- package/src/models/App.js +1 -11
- package/src/models/As2IncomingMessage.js +1 -11
- package/src/models/As2OutgoingMessage.js +1 -11
- package/src/models/As2Partner.js +0 -10
- package/src/models/As2Station.js +0 -10
- package/src/models/Automation.js +1 -30
- package/src/models/AutomationLog.js +0 -10
- package/src/models/AutomationRun.js +1 -11
- package/src/models/BandwidthSnapshot.js +1 -11
- package/src/models/Behavior.js +2 -27
- package/src/models/Bundle.js +1 -11
- package/src/models/BundleAction.js +1 -11
- package/src/models/BundleDownload.js +1 -11
- package/src/models/BundleNotification.js +1 -11
- package/src/models/BundleRecipient.js +1 -11
- package/src/models/BundleRegistration.js +0 -10
- package/src/models/Clickwrap.js +0 -10
- package/src/models/DnsRecord.js +0 -10
- package/src/models/EmailIncomingMessage.js +1 -11
- package/src/models/EmailLog.js +0 -10
- package/src/models/ExavaultApiRequestLog.js +0 -10
- package/src/models/ExternalEvent.js +1 -11
- package/src/models/FileComment.js +0 -10
- package/src/models/FileMigrationLog.js +0 -10
- package/src/models/Folder.js +0 -5
- package/src/models/FormFieldSet.js +0 -10
- package/src/models/FtpActionLog.js +0 -10
- package/src/models/GpgKey.js +1 -11
- package/src/models/Group.js +1 -11
- package/src/models/GroupUser.js +0 -10
- package/src/models/History.js +5 -58
- package/src/models/HistoryExportResult.js +0 -13
- package/src/models/InboxRecipient.js +1 -11
- package/src/models/InboxRegistration.js +0 -10
- package/src/models/InboxUpload.js +1 -11
- package/src/models/Invoice.js +0 -10
- package/src/models/IpAddress.js +0 -40
- package/src/models/Lock.js +0 -10
- package/src/models/Message.js +0 -10
- package/src/models/MessageComment.js +0 -10
- package/src/models/MessageCommentReaction.js +0 -10
- package/src/models/MessageReaction.js +0 -10
- package/src/models/Notification.js +1 -16
- package/src/models/OutboundConnectionLog.js +0 -10
- package/src/models/Payment.js +0 -10
- package/src/models/Permission.js +1 -11
- package/src/models/Priority.js +0 -10
- package/src/models/Project.js +0 -10
- package/src/models/PublicHostingRequestLog.js +0 -10
- package/src/models/PublicKey.js +0 -10
- package/src/models/RemoteBandwidthSnapshot.js +1 -11
- package/src/models/RemoteServer.js +0 -10
- package/src/models/Request.js +2 -22
- package/src/models/SettingsChange.js +1 -14
- 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,10 +73,6 @@ 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
|
-
});
|
80
76
|
// string # Type of action
|
81
77
|
(0, _defineProperty2.default)(this, "getAction", function () {
|
82
78
|
return _this.attributes.action;
|
@@ -109,9 +105,7 @@ _History = History;
|
|
109
105
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
110
106
|
// 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.
|
111
107
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
112
|
-
//
|
113
|
-
// page - int64
|
114
|
-
// 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`.
|
108
|
+
// 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`.
|
115
109
|
// path (required) - string - Path to operate on.
|
116
110
|
(0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
|
117
111
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(path) {
|
@@ -169,33 +163,21 @@ _History = History;
|
|
169
163
|
}
|
170
164
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
171
165
|
case 17:
|
172
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
173
|
-
_context.next = 19;
|
174
|
-
break;
|
175
|
-
}
|
176
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
177
|
-
case 19:
|
178
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
179
|
-
_context.next = 21;
|
180
|
-
break;
|
181
|
-
}
|
182
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
183
|
-
case 21:
|
184
166
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
185
|
-
_context.next =
|
167
|
+
_context.next = 19;
|
186
168
|
break;
|
187
169
|
}
|
188
170
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
189
|
-
case
|
190
|
-
_context.next =
|
171
|
+
case 19:
|
172
|
+
_context.next = 21;
|
191
173
|
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
192
|
-
case
|
174
|
+
case 21:
|
193
175
|
response = _context.sent;
|
194
176
|
Action = require('./Action.js').default;
|
195
177
|
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) {
|
196
178
|
return new Action(obj, options);
|
197
179
|
})) || []);
|
198
|
-
case
|
180
|
+
case 24:
|
199
181
|
case "end":
|
200
182
|
return _context.stop();
|
201
183
|
}
|
@@ -211,9 +193,7 @@ _History = History;
|
|
211
193
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
212
194
|
// 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.
|
213
195
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
214
|
-
//
|
215
|
-
// page - int64
|
216
|
-
// 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`.
|
196
|
+
// 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`.
|
217
197
|
// path (required) - string - Path to operate on.
|
218
198
|
(0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
|
219
199
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
|
@@ -271,33 +251,21 @@ _History = History;
|
|
271
251
|
}
|
272
252
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
273
253
|
case 17:
|
274
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
275
|
-
_context2.next = 19;
|
276
|
-
break;
|
277
|
-
}
|
278
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
279
|
-
case 19:
|
280
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
281
|
-
_context2.next = 21;
|
282
|
-
break;
|
283
|
-
}
|
284
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
285
|
-
case 21:
|
286
254
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
287
|
-
_context2.next =
|
255
|
+
_context2.next = 19;
|
288
256
|
break;
|
289
257
|
}
|
290
258
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
291
|
-
case
|
292
|
-
_context2.next =
|
259
|
+
case 19:
|
260
|
+
_context2.next = 21;
|
293
261
|
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
294
|
-
case
|
262
|
+
case 21:
|
295
263
|
response = _context2.sent;
|
296
264
|
Action = require('./Action.js').default;
|
297
265
|
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) {
|
298
266
|
return new Action(obj, options);
|
299
267
|
})) || []);
|
300
|
-
case
|
268
|
+
case 24:
|
301
269
|
case "end":
|
302
270
|
return _context2.stop();
|
303
271
|
}
|
@@ -313,9 +281,7 @@ _History = History;
|
|
313
281
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
314
282
|
// 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.
|
315
283
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
316
|
-
//
|
317
|
-
// page - int64
|
318
|
-
// 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`.
|
284
|
+
// 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`.
|
319
285
|
// user_id (required) - int64 - User ID.
|
320
286
|
(0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
|
321
287
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(userId) {
|
@@ -373,33 +339,21 @@ _History = History;
|
|
373
339
|
}
|
374
340
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
375
341
|
case 17:
|
376
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
377
|
-
_context3.next = 19;
|
378
|
-
break;
|
379
|
-
}
|
380
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
381
|
-
case 19:
|
382
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
383
|
-
_context3.next = 21;
|
384
|
-
break;
|
385
|
-
}
|
386
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
387
|
-
case 21:
|
388
342
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
389
|
-
_context3.next =
|
343
|
+
_context3.next = 19;
|
390
344
|
break;
|
391
345
|
}
|
392
346
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
393
|
-
case
|
394
|
-
_context3.next =
|
347
|
+
case 19:
|
348
|
+
_context3.next = 21;
|
395
349
|
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
|
396
|
-
case
|
350
|
+
case 21:
|
397
351
|
response = _context3.sent;
|
398
352
|
Action = require('./Action.js').default;
|
399
353
|
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) {
|
400
354
|
return new Action(obj, options);
|
401
355
|
})) || []);
|
402
|
-
case
|
356
|
+
case 24:
|
403
357
|
case "end":
|
404
358
|
return _context3.stop();
|
405
359
|
}
|
@@ -415,9 +369,7 @@ _History = History;
|
|
415
369
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
416
370
|
// 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.
|
417
371
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
418
|
-
//
|
419
|
-
// page - int64
|
420
|
-
// 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`.
|
372
|
+
// 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`.
|
421
373
|
(0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
422
374
|
var _response$data4;
|
423
375
|
var params,
|
@@ -460,27 +412,15 @@ _History = History;
|
|
460
412
|
}
|
461
413
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
462
414
|
case 12:
|
463
|
-
|
464
|
-
_context4.next = 14;
|
465
|
-
break;
|
466
|
-
}
|
467
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
468
|
-
case 14:
|
469
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
470
|
-
_context4.next = 16;
|
471
|
-
break;
|
472
|
-
}
|
473
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
474
|
-
case 16:
|
475
|
-
_context4.next = 18;
|
415
|
+
_context4.next = 14;
|
476
416
|
return _Api.default.sendRequest('/history/login', 'GET', params, options);
|
477
|
-
case
|
417
|
+
case 14:
|
478
418
|
response = _context4.sent;
|
479
419
|
Action = require('./Action.js').default;
|
480
420
|
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) {
|
481
421
|
return new Action(obj, options);
|
482
422
|
})) || []);
|
483
|
-
case
|
423
|
+
case 17:
|
484
424
|
case "end":
|
485
425
|
return _context4.stop();
|
486
426
|
}
|
@@ -492,9 +432,7 @@ _History = History;
|
|
492
432
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
493
433
|
// 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.
|
494
434
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
495
|
-
//
|
496
|
-
// page - int64
|
497
|
-
// 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`.
|
435
|
+
// 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`.
|
498
436
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
499
437
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
500
438
|
(0, _defineProperty2.default)(History, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
@@ -539,27 +477,15 @@ _History = History;
|
|
539
477
|
}
|
540
478
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
541
479
|
case 12:
|
542
|
-
|
543
|
-
_context5.next = 14;
|
544
|
-
break;
|
545
|
-
}
|
546
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
547
|
-
case 14:
|
548
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
549
|
-
_context5.next = 16;
|
550
|
-
break;
|
551
|
-
}
|
552
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
553
|
-
case 16:
|
554
|
-
_context5.next = 18;
|
480
|
+
_context5.next = 14;
|
555
481
|
return _Api.default.sendRequest('/history', 'GET', params, options);
|
556
|
-
case
|
482
|
+
case 14:
|
557
483
|
response = _context5.sent;
|
558
484
|
Action = require('./Action.js').default;
|
559
485
|
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) {
|
560
486
|
return new Action(obj, options);
|
561
487
|
})) || []);
|
562
|
-
case
|
488
|
+
case 17:
|
563
489
|
case "end":
|
564
490
|
return _context5.stop();
|
565
491
|
}
|
@@ -81,10 +81,6 @@ 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
|
-
});
|
88
84
|
// 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`
|
89
85
|
(0, _defineProperty2.default)(this, "getAction", function () {
|
90
86
|
return _this.attributes.action;
|
@@ -155,8 +151,6 @@ _HistoryExportResult = HistoryExportResult;
|
|
155
151
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
156
152
|
// 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.
|
157
153
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
158
|
-
// action - string
|
159
|
-
// page - int64
|
160
154
|
// history_export_id (required) - int64 - ID of the associated history export.
|
161
155
|
(0, _defineProperty2.default)(HistoryExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
162
156
|
var _response$data;
|
@@ -193,32 +187,20 @@ _HistoryExportResult = HistoryExportResult;
|
|
193
187
|
}
|
194
188
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
195
189
|
case 10:
|
196
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
197
|
-
_context.next = 12;
|
198
|
-
break;
|
199
|
-
}
|
200
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
201
|
-
case 12:
|
202
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
203
|
-
_context.next = 14;
|
204
|
-
break;
|
205
|
-
}
|
206
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
207
|
-
case 14:
|
208
190
|
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
209
|
-
_context.next =
|
191
|
+
_context.next = 12;
|
210
192
|
break;
|
211
193
|
}
|
212
194
|
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
|
213
|
-
case
|
214
|
-
_context.next =
|
195
|
+
case 12:
|
196
|
+
_context.next = 14;
|
215
197
|
return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
|
216
|
-
case
|
198
|
+
case 14:
|
217
199
|
response = _context.sent;
|
218
200
|
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) {
|
219
201
|
return new _HistoryExportResult(obj, options);
|
220
202
|
})) || []);
|
221
|
-
case
|
203
|
+
case 16:
|
222
204
|
case "end":
|
223
205
|
return _context.stop();
|
224
206
|
}
|
@@ -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
|
}
|