files.com 1.2.86 → 1.2.88
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/ActionNotificationExportResult.md +3 -0
- package/docs/models/ApiKey.md +6 -0
- package/docs/models/ApiRequestLog.md +3 -0
- package/docs/models/App.md +3 -0
- package/docs/models/As2IncomingMessage.md +3 -0
- package/docs/models/As2OutgoingMessage.md +3 -0
- package/docs/models/As2Partner.md +42 -29
- package/docs/models/As2Station.md +3 -0
- package/docs/models/Automation.md +17 -3
- package/docs/models/AutomationLog.md +3 -0
- package/docs/models/AutomationRun.md +3 -0
- package/docs/models/BandwidthSnapshot.md +3 -0
- package/docs/models/Behavior.md +26 -19
- package/docs/models/Bundle.md +4 -5
- package/docs/models/BundleAction.md +4 -0
- package/docs/models/BundleDownload.md +3 -0
- package/docs/models/BundleNotification.md +3 -0
- package/docs/models/BundleRecipient.md +3 -0
- package/docs/models/BundleRegistration.md +3 -0
- package/docs/models/Clickwrap.md +3 -0
- package/docs/models/DnsRecord.md +3 -0
- package/docs/models/EmailIncomingMessage.md +3 -0
- package/docs/models/EmailLog.md +3 -0
- package/docs/models/ExavaultApiRequestLog.md +3 -0
- package/docs/models/ExternalEvent.md +3 -0
- package/docs/models/FileComment.md +3 -0
- package/docs/models/FileMigration.md +1 -1
- package/docs/models/FileMigrationLog.md +3 -0
- package/docs/models/Folder.md +2 -0
- package/docs/models/FormFieldSet.md +3 -0
- package/docs/models/FtpActionLog.md +3 -0
- package/docs/models/GpgKey.md +3 -0
- package/docs/models/Group.md +3 -0
- package/docs/models/GroupUser.md +3 -0
- package/docs/models/History.md +20 -0
- package/docs/models/HistoryExportResult.md +4 -0
- package/docs/models/InboxRecipient.md +3 -0
- package/docs/models/InboxRegistration.md +3 -0
- package/docs/models/InboxUpload.md +3 -0
- package/docs/models/Invoice.md +3 -0
- package/docs/models/IpAddress.md +12 -0
- package/docs/models/Lock.md +6 -3
- package/docs/models/Message.md +3 -0
- package/docs/models/MessageComment.md +3 -0
- package/docs/models/MessageCommentReaction.md +3 -0
- package/docs/models/MessageReaction.md +3 -0
- package/docs/models/Notification.md +4 -1
- package/docs/models/OutboundConnectionLog.md +56 -0
- package/docs/models/Payment.md +3 -0
- package/docs/models/Permission.md +3 -0
- package/docs/models/Priority.md +3 -0
- package/docs/models/Project.md +3 -0
- package/docs/models/PublicHostingRequestLog.md +3 -0
- package/docs/models/PublicKey.md +3 -0
- package/docs/models/RemoteBandwidthSnapshot.md +3 -0
- package/docs/models/RemoteServer.md +3 -0
- package/docs/models/Request.md +6 -0
- package/docs/models/SettingsChange.md +3 -0
- package/docs/models/SftpActionLog.md +3 -0
- package/docs/models/SftpHostKey.md +3 -0
- package/docs/models/ShareGroup.md +3 -0
- package/docs/models/Snapshot.md +3 -0
- package/docs/models/SsoStrategy.md +4 -1
- package/docs/models/SyncLog.md +3 -0
- package/docs/models/UsageDailySnapshot.md +3 -0
- package/docs/models/UsageSnapshot.md +3 -0
- package/docs/models/User.md +6 -3
- package/docs/models/UserCipherUse.md +3 -0
- package/docs/models/UserRequest.md +3 -0
- package/docs/models/WebDavActionLog.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +19 -5
- package/lib/models/ApiKey.js +34 -6
- package/lib/models/ApiRequestLog.js +17 -3
- package/lib/models/App.js +17 -3
- package/lib/models/As2IncomingMessage.js +19 -5
- package/lib/models/As2OutgoingMessage.js +19 -5
- package/lib/models/As2Partner.js +120 -64
- package/lib/models/As2Station.js +17 -3
- package/lib/models/Automation.js +31 -6
- package/lib/models/AutomationLog.js +17 -3
- package/lib/models/AutomationRun.js +19 -5
- package/lib/models/BandwidthSnapshot.js +17 -3
- package/lib/models/Behavior.js +53 -31
- package/lib/models/Bundle.js +18 -6
- package/lib/models/BundleAction.js +21 -7
- package/lib/models/BundleDownload.js +21 -7
- package/lib/models/BundleNotification.js +17 -3
- package/lib/models/BundleRecipient.js +19 -5
- package/lib/models/BundleRegistration.js +19 -5
- package/lib/models/Clickwrap.js +17 -3
- package/lib/models/DnsRecord.js +17 -3
- package/lib/models/EmailIncomingMessage.js +17 -3
- package/lib/models/EmailLog.js +17 -3
- package/lib/models/ExavaultApiRequestLog.js +17 -3
- package/lib/models/ExternalEvent.js +17 -3
- package/lib/models/FileComment.js +19 -5
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/FileMigrationLog.js +17 -3
- package/lib/models/Folder.js +18 -11
- package/lib/models/FormFieldSet.js +17 -3
- package/lib/models/FtpActionLog.js +17 -3
- package/lib/models/GpgKey.js +17 -3
- package/lib/models/Group.js +19 -5
- package/lib/models/GroupUser.js +19 -5
- package/lib/models/History.js +91 -21
- package/lib/models/HistoryExportResult.js +19 -5
- package/lib/models/InboxRecipient.js +19 -5
- package/lib/models/InboxRegistration.js +19 -5
- package/lib/models/InboxUpload.js +21 -7
- package/lib/models/Invoice.js +17 -3
- package/lib/models/IpAddress.js +68 -12
- package/lib/models/Lock.js +22 -8
- package/lib/models/Message.js +19 -5
- package/lib/models/MessageComment.js +19 -5
- package/lib/models/MessageCommentReaction.js +19 -5
- package/lib/models/MessageReaction.js +19 -5
- package/lib/models/Notification.js +22 -8
- package/lib/models/OutboundConnectionLog.js +164 -0
- package/lib/models/Payment.js +17 -3
- package/lib/models/Permission.js +23 -9
- package/lib/models/Priority.js +19 -5
- package/lib/models/Project.js +17 -3
- package/lib/models/PublicHostingRequestLog.js +17 -3
- package/lib/models/PublicKey.js +17 -3
- package/lib/models/RemoteBandwidthSnapshot.js +17 -3
- package/lib/models/RemoteServer.js +17 -3
- package/lib/models/Request.js +38 -10
- package/lib/models/SettingsChange.js +17 -3
- package/lib/models/SftpActionLog.js +17 -3
- package/lib/models/SftpHostKey.js +17 -3
- package/lib/models/ShareGroup.js +17 -3
- package/lib/models/Snapshot.js +17 -3
- package/lib/models/SsoStrategy.js +18 -4
- package/lib/models/SyncLog.js +17 -3
- package/lib/models/UsageDailySnapshot.js +17 -3
- package/lib/models/UsageSnapshot.js +17 -3
- package/lib/models/User.js +24 -10
- package/lib/models/UserCipherUse.js +17 -3
- package/lib/models/UserRequest.js +17 -3
- package/lib/models/WebDavActionLog.js +17 -3
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +10 -0
- package/src/models/ApiKey.js +22 -0
- package/src/models/ApiRequestLog.js +10 -0
- package/src/models/App.js +10 -0
- package/src/models/As2IncomingMessage.js +10 -0
- package/src/models/As2OutgoingMessage.js +10 -0
- package/src/models/As2Partner.js +82 -38
- package/src/models/As2Station.js +10 -0
- package/src/models/Automation.js +24 -3
- package/src/models/AutomationLog.js +10 -0
- package/src/models/AutomationRun.js +10 -0
- package/src/models/BandwidthSnapshot.js +10 -0
- package/src/models/Behavior.js +39 -23
- package/src/models/Bundle.js +11 -3
- package/src/models/BundleAction.js +10 -0
- package/src/models/BundleDownload.js +10 -0
- package/src/models/BundleNotification.js +10 -0
- package/src/models/BundleRecipient.js +10 -0
- package/src/models/BundleRegistration.js +10 -0
- package/src/models/Clickwrap.js +10 -0
- package/src/models/DnsRecord.js +10 -0
- package/src/models/EmailIncomingMessage.js +10 -0
- package/src/models/EmailLog.js +10 -0
- package/src/models/ExavaultApiRequestLog.js +10 -0
- package/src/models/ExternalEvent.js +10 -0
- package/src/models/FileComment.js +10 -0
- package/src/models/FileMigration.js +1 -1
- package/src/models/FileMigrationLog.js +10 -0
- package/src/models/Folder.js +5 -0
- package/src/models/FormFieldSet.js +10 -0
- package/src/models/FtpActionLog.js +10 -0
- package/src/models/GpgKey.js +10 -0
- package/src/models/Group.js +10 -0
- package/src/models/GroupUser.js +10 -0
- package/src/models/History.js +50 -0
- package/src/models/HistoryExportResult.js +10 -0
- package/src/models/InboxRecipient.js +10 -0
- package/src/models/InboxRegistration.js +10 -0
- package/src/models/InboxUpload.js +10 -0
- package/src/models/Invoice.js +10 -0
- package/src/models/IpAddress.js +40 -0
- package/src/models/Lock.js +13 -3
- package/src/models/Message.js +10 -0
- package/src/models/MessageComment.js +10 -0
- package/src/models/MessageCommentReaction.js +10 -0
- package/src/models/MessageReaction.js +10 -0
- package/src/models/Notification.js +11 -1
- package/src/models/OutboundConnectionLog.js +106 -0
- package/src/models/Payment.js +10 -0
- package/src/models/Permission.js +10 -0
- package/src/models/Priority.js +10 -0
- package/src/models/Project.js +10 -0
- package/src/models/PublicHostingRequestLog.js +10 -0
- package/src/models/PublicKey.js +10 -0
- package/src/models/RemoteBandwidthSnapshot.js +10 -0
- package/src/models/RemoteServer.js +10 -0
- package/src/models/Request.js +20 -0
- package/src/models/SettingsChange.js +10 -0
- package/src/models/SftpActionLog.js +10 -0
- package/src/models/SftpHostKey.js +10 -0
- package/src/models/ShareGroup.js +10 -0
- package/src/models/Snapshot.js +10 -0
- package/src/models/SsoStrategy.js +11 -1
- package/src/models/SyncLog.js +10 -0
- package/src/models/UsageDailySnapshot.js +10 -0
- package/src/models/UsageSnapshot.js +10 -0
- package/src/models/User.js +13 -3
- package/src/models/UserCipherUse.js +10 -0
- package/src/models/UserRequest.js +10 -0
- package/src/models/WebDavActionLog.js +10 -0
package/lib/models/Group.js
CHANGED
@@ -299,6 +299,8 @@ _Group = Group;
|
|
299
299
|
// Parameters:
|
300
300
|
// 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.
|
301
301
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
302
|
+
// action - string
|
303
|
+
// page - int64
|
302
304
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name`.
|
303
305
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
304
306
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
@@ -326,20 +328,32 @@ _Group = Group;
|
|
326
328
|
}
|
327
329
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
328
330
|
case 6:
|
329
|
-
if (!(params.
|
331
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
330
332
|
_context4.next = 8;
|
331
333
|
break;
|
332
334
|
}
|
333
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
335
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
334
336
|
case 8:
|
335
|
-
|
336
|
-
|
337
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
338
|
+
_context4.next = 10;
|
339
|
+
break;
|
340
|
+
}
|
341
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
337
342
|
case 10:
|
343
|
+
if (!(params.ids && !(0, _utils.isString)(params.ids))) {
|
344
|
+
_context4.next = 12;
|
345
|
+
break;
|
346
|
+
}
|
347
|
+
throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
|
348
|
+
case 12:
|
349
|
+
_context4.next = 14;
|
350
|
+
return _Api.default.sendRequest('/groups', 'GET', params, options);
|
351
|
+
case 14:
|
338
352
|
response = _context4.sent;
|
339
353
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
340
354
|
return new _Group(obj, options);
|
341
355
|
})) || []);
|
342
|
-
case
|
356
|
+
case 16:
|
343
357
|
case "end":
|
344
358
|
return _context4.stop();
|
345
359
|
}
|
package/lib/models/GroupUser.js
CHANGED
@@ -312,6 +312,8 @@ _GroupUser = GroupUser;
|
|
312
312
|
// user_id - int64 - User ID. If provided, will return group_users of this user.
|
313
313
|
// 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.
|
314
314
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
315
|
+
// action - string
|
316
|
+
// page - int64
|
315
317
|
// group_id - int64 - Group ID. If provided, will return group_users of this group.
|
316
318
|
(0, _defineProperty2.default)(GroupUser, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
317
319
|
var _response$data;
|
@@ -342,20 +344,32 @@ _GroupUser = GroupUser;
|
|
342
344
|
}
|
343
345
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
344
346
|
case 8:
|
345
|
-
if (!(params.
|
347
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
346
348
|
_context4.next = 10;
|
347
349
|
break;
|
348
350
|
}
|
349
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
351
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
350
352
|
case 10:
|
351
|
-
|
352
|
-
|
353
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
354
|
+
_context4.next = 12;
|
355
|
+
break;
|
356
|
+
}
|
357
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
353
358
|
case 12:
|
359
|
+
if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
|
360
|
+
_context4.next = 14;
|
361
|
+
break;
|
362
|
+
}
|
363
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
|
364
|
+
case 14:
|
365
|
+
_context4.next = 16;
|
366
|
+
return _Api.default.sendRequest('/group_users', 'GET', params, options);
|
367
|
+
case 16:
|
354
368
|
response = _context4.sent;
|
355
369
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
356
370
|
return new _GroupUser(obj, options);
|
357
371
|
})) || []);
|
358
|
-
case
|
372
|
+
case 18:
|
359
373
|
case "end":
|
360
374
|
return _context4.stop();
|
361
375
|
}
|
package/lib/models/History.js
CHANGED
@@ -105,6 +105,8 @@ _History = History;
|
|
105
105
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
106
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.
|
107
107
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
108
|
+
// action - string
|
109
|
+
// page - int64
|
108
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`.
|
109
111
|
// path (required) - string - Path to operate on.
|
110
112
|
(0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
|
@@ -163,21 +165,33 @@ _History = History;
|
|
163
165
|
}
|
164
166
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
165
167
|
case 17:
|
166
|
-
if (!(params.
|
168
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
167
169
|
_context.next = 19;
|
168
170
|
break;
|
169
171
|
}
|
170
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
172
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
171
173
|
case 19:
|
172
|
-
|
173
|
-
|
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)));
|
174
179
|
case 21:
|
180
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
181
|
+
_context.next = 23;
|
182
|
+
break;
|
183
|
+
}
|
184
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
185
|
+
case 23:
|
186
|
+
_context.next = 25;
|
187
|
+
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
188
|
+
case 25:
|
175
189
|
response = _context.sent;
|
176
190
|
Action = require('./Action.js').default;
|
177
191
|
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) {
|
178
192
|
return new Action(obj, options);
|
179
193
|
})) || []);
|
180
|
-
case
|
194
|
+
case 28:
|
181
195
|
case "end":
|
182
196
|
return _context.stop();
|
183
197
|
}
|
@@ -193,6 +207,8 @@ _History = History;
|
|
193
207
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
194
208
|
// 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.
|
195
209
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
210
|
+
// action - string
|
211
|
+
// page - int64
|
196
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`.
|
197
213
|
// path (required) - string - Path to operate on.
|
198
214
|
(0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
|
@@ -251,21 +267,33 @@ _History = History;
|
|
251
267
|
}
|
252
268
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
253
269
|
case 17:
|
254
|
-
if (!(params.
|
270
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
255
271
|
_context2.next = 19;
|
256
272
|
break;
|
257
273
|
}
|
258
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
274
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
259
275
|
case 19:
|
260
|
-
|
261
|
-
|
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)));
|
262
281
|
case 21:
|
282
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
283
|
+
_context2.next = 23;
|
284
|
+
break;
|
285
|
+
}
|
286
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
287
|
+
case 23:
|
288
|
+
_context2.next = 25;
|
289
|
+
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
290
|
+
case 25:
|
263
291
|
response = _context2.sent;
|
264
292
|
Action = require('./Action.js').default;
|
265
293
|
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) {
|
266
294
|
return new Action(obj, options);
|
267
295
|
})) || []);
|
268
|
-
case
|
296
|
+
case 28:
|
269
297
|
case "end":
|
270
298
|
return _context2.stop();
|
271
299
|
}
|
@@ -281,6 +309,8 @@ _History = History;
|
|
281
309
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
282
310
|
// 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.
|
283
311
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
312
|
+
// action - string
|
313
|
+
// page - int64
|
284
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`.
|
285
315
|
// user_id (required) - int64 - User ID.
|
286
316
|
(0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
|
@@ -339,21 +369,33 @@ _History = History;
|
|
339
369
|
}
|
340
370
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
341
371
|
case 17:
|
342
|
-
if (!(params.
|
372
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
343
373
|
_context3.next = 19;
|
344
374
|
break;
|
345
375
|
}
|
346
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
376
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
347
377
|
case 19:
|
348
|
-
|
349
|
-
|
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)));
|
350
383
|
case 21:
|
384
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
385
|
+
_context3.next = 23;
|
386
|
+
break;
|
387
|
+
}
|
388
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
389
|
+
case 23:
|
390
|
+
_context3.next = 25;
|
391
|
+
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
|
392
|
+
case 25:
|
351
393
|
response = _context3.sent;
|
352
394
|
Action = require('./Action.js').default;
|
353
395
|
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) {
|
354
396
|
return new Action(obj, options);
|
355
397
|
})) || []);
|
356
|
-
case
|
398
|
+
case 28:
|
357
399
|
case "end":
|
358
400
|
return _context3.stop();
|
359
401
|
}
|
@@ -369,6 +411,8 @@ _History = History;
|
|
369
411
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
370
412
|
// 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.
|
371
413
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
414
|
+
// action - string
|
415
|
+
// page - int64
|
372
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`.
|
373
417
|
(0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
374
418
|
var _response$data4;
|
@@ -412,15 +456,27 @@ _History = History;
|
|
412
456
|
}
|
413
457
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
414
458
|
case 12:
|
415
|
-
|
416
|
-
|
459
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
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)));
|
417
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;
|
472
|
+
return _Api.default.sendRequest('/history/login', 'GET', params, options);
|
473
|
+
case 18:
|
418
474
|
response = _context4.sent;
|
419
475
|
Action = require('./Action.js').default;
|
420
476
|
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) {
|
421
477
|
return new Action(obj, options);
|
422
478
|
})) || []);
|
423
|
-
case
|
479
|
+
case 21:
|
424
480
|
case "end":
|
425
481
|
return _context4.stop();
|
426
482
|
}
|
@@ -432,6 +488,8 @@ _History = History;
|
|
432
488
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
433
489
|
// 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.
|
434
490
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
491
|
+
// action - string
|
492
|
+
// page - int64
|
435
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`.
|
436
494
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
437
495
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
@@ -477,15 +535,27 @@ _History = History;
|
|
477
535
|
}
|
478
536
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
479
537
|
case 12:
|
480
|
-
|
481
|
-
|
538
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
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)));
|
482
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;
|
551
|
+
return _Api.default.sendRequest('/history', 'GET', params, options);
|
552
|
+
case 18:
|
483
553
|
response = _context5.sent;
|
484
554
|
Action = require('./Action.js').default;
|
485
555
|
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) {
|
486
556
|
return new Action(obj, options);
|
487
557
|
})) || []);
|
488
|
-
case
|
558
|
+
case 21:
|
489
559
|
case "end":
|
490
560
|
return _context5.stop();
|
491
561
|
}
|
@@ -151,6 +151,8 @@ _HistoryExportResult = HistoryExportResult;
|
|
151
151
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
152
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.
|
153
153
|
// 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
|
154
156
|
// history_export_id (required) - int64 - ID of the associated history export.
|
155
157
|
(0, _defineProperty2.default)(HistoryExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
156
158
|
var _response$data;
|
@@ -187,20 +189,32 @@ _HistoryExportResult = HistoryExportResult;
|
|
187
189
|
}
|
188
190
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
189
191
|
case 10:
|
190
|
-
if (!(params.
|
192
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
191
193
|
_context.next = 12;
|
192
194
|
break;
|
193
195
|
}
|
194
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
196
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
195
197
|
case 12:
|
196
|
-
|
197
|
-
|
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)));
|
198
203
|
case 14:
|
204
|
+
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
205
|
+
_context.next = 16;
|
206
|
+
break;
|
207
|
+
}
|
208
|
+
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 16:
|
210
|
+
_context.next = 18;
|
211
|
+
return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
|
212
|
+
case 18:
|
199
213
|
response = _context.sent;
|
200
214
|
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) {
|
201
215
|
return new _HistoryExportResult(obj, options);
|
202
216
|
})) || []);
|
203
|
-
case
|
217
|
+
case 20:
|
204
218
|
case "end":
|
205
219
|
return _context.stop();
|
206
220
|
}
|
@@ -122,6 +122,8 @@ _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
|
+
// action - string
|
126
|
+
// page - int64
|
125
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`.
|
126
128
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
127
129
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
@@ -154,20 +156,32 @@ _InboxRecipient = InboxRecipient;
|
|
154
156
|
}
|
155
157
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
156
158
|
case 8:
|
157
|
-
if (!(params.
|
159
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
158
160
|
_context2.next = 10;
|
159
161
|
break;
|
160
162
|
}
|
161
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
163
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
162
164
|
case 10:
|
163
|
-
|
164
|
-
|
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)));
|
165
170
|
case 12:
|
171
|
+
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
172
|
+
_context2.next = 14;
|
173
|
+
break;
|
174
|
+
}
|
175
|
+
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
176
|
+
case 14:
|
177
|
+
_context2.next = 16;
|
178
|
+
return _Api.default.sendRequest('/inbox_recipients', 'GET', params, options);
|
179
|
+
case 16:
|
166
180
|
response = _context2.sent;
|
167
181
|
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) {
|
168
182
|
return new _InboxRecipient(obj, options);
|
169
183
|
})) || []);
|
170
|
-
case
|
184
|
+
case 18:
|
171
185
|
case "end":
|
172
186
|
return _context2.stop();
|
173
187
|
}
|
@@ -98,6 +98,8 @@ _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
|
101
103
|
// folder_behavior_id - int64 - ID of the associated Inbox.
|
102
104
|
(0, _defineProperty2.default)(InboxRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
103
105
|
var _response$data;
|
@@ -122,20 +124,32 @@ _InboxRegistration = InboxRegistration;
|
|
122
124
|
}
|
123
125
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
124
126
|
case 6:
|
125
|
-
if (!(params.
|
127
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
126
128
|
_context.next = 8;
|
127
129
|
break;
|
128
130
|
}
|
129
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
131
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
130
132
|
case 8:
|
131
|
-
|
132
|
-
|
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)));
|
133
138
|
case 10:
|
139
|
+
if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
|
140
|
+
_context.next = 12;
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
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 12:
|
145
|
+
_context.next = 14;
|
146
|
+
return _Api.default.sendRequest('/inbox_registrations', 'GET', params, options);
|
147
|
+
case 14:
|
134
148
|
response = _context.sent;
|
135
149
|
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) {
|
136
150
|
return new _InboxRegistration(obj, options);
|
137
151
|
})) || []);
|
138
|
-
case
|
152
|
+
case 16:
|
139
153
|
case "end":
|
140
154
|
return _context.stop();
|
141
155
|
}
|
@@ -62,6 +62,8 @@ _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
|
+
// action - string
|
66
|
+
// page - int64
|
65
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`.
|
66
68
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
67
69
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
@@ -93,26 +95,38 @@ _InboxUpload = InboxUpload;
|
|
93
95
|
}
|
94
96
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
95
97
|
case 6:
|
96
|
-
if (!(params.
|
98
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
97
99
|
_context.next = 8;
|
98
100
|
break;
|
99
101
|
}
|
100
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
102
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
101
103
|
case 8:
|
102
|
-
if (!(params.
|
104
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
103
105
|
_context.next = 10;
|
104
106
|
break;
|
105
107
|
}
|
106
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
108
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
107
109
|
case 10:
|
108
|
-
|
109
|
-
|
110
|
+
if (!(params.inbox_registration_id && !(0, _utils.isInt)(params.inbox_registration_id))) {
|
111
|
+
_context.next = 12;
|
112
|
+
break;
|
113
|
+
}
|
114
|
+
throw new errors.InvalidParameterError("Bad parameter: inbox_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_registration_id)));
|
110
115
|
case 12:
|
116
|
+
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
117
|
+
_context.next = 14;
|
118
|
+
break;
|
119
|
+
}
|
120
|
+
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
121
|
+
case 14:
|
122
|
+
_context.next = 16;
|
123
|
+
return _Api.default.sendRequest('/inbox_uploads', 'GET', params, options);
|
124
|
+
case 16:
|
111
125
|
response = _context.sent;
|
112
126
|
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) {
|
113
127
|
return new _InboxUpload(obj, options);
|
114
128
|
})) || []);
|
115
|
-
case
|
129
|
+
case 18:
|
116
130
|
case "end":
|
117
131
|
return _context.stop();
|
118
132
|
}
|
package/lib/models/Invoice.js
CHANGED
@@ -102,6 +102,8 @@ _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
|
105
107
|
(0, _defineProperty2.default)(Invoice, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
106
108
|
var _response$data;
|
107
109
|
var params,
|
@@ -126,15 +128,27 @@ _Invoice = Invoice;
|
|
126
128
|
}
|
127
129
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
128
130
|
case 6:
|
129
|
-
|
130
|
-
|
131
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
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)));
|
131
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;
|
144
|
+
return _Api.default.sendRequest('/invoices', 'GET', params, options);
|
145
|
+
case 12:
|
132
146
|
response = _context.sent;
|
133
147
|
AccountLineItem = require('./AccountLineItem.js').default;
|
134
148
|
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) {
|
135
149
|
return new AccountLineItem(obj, options);
|
136
150
|
})) || []);
|
137
|
-
case
|
151
|
+
case 15:
|
138
152
|
case "end":
|
139
153
|
return _context.stop();
|
140
154
|
}
|