files.com 1.2.101 → 1.2.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_VERSION +1 -1
- package/docs/models/ActionNotificationExportResult.md +0 -2
- package/docs/models/ApiKey.md +1 -3
- package/docs/models/ApiRequestLog.md +0 -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 +5 -15
- package/docs/models/HistoryExportResult.md +0 -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 +1 -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/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/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +5 -19
- package/lib/models/ApiKey.js +4 -18
- package/lib/models/ApiRequestLog.js +3 -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 +26 -96
- package/lib/models/HistoryExportResult.js +5 -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 +4 -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/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +0 -10
- package/src/models/ApiKey.js +1 -11
- package/src/models/ApiRequestLog.js +0 -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 +5 -55
- package/src/models/HistoryExportResult.js +0 -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 +1 -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
@@ -105,9 +105,7 @@ _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
|
-
//
|
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`.
|
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`.
|
111
109
|
// path (required) - string - Path to operate on.
|
112
110
|
(0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
|
113
111
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(path) {
|
@@ -165,33 +163,21 @@ _History = History;
|
|
165
163
|
}
|
166
164
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
167
165
|
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
166
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
181
|
-
_context.next =
|
167
|
+
_context.next = 19;
|
182
168
|
break;
|
183
169
|
}
|
184
170
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
185
|
-
case
|
186
|
-
_context.next =
|
171
|
+
case 19:
|
172
|
+
_context.next = 21;
|
187
173
|
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
188
|
-
case
|
174
|
+
case 21:
|
189
175
|
response = _context.sent;
|
190
176
|
Action = require('./Action.js').default;
|
191
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) {
|
192
178
|
return new Action(obj, options);
|
193
179
|
})) || []);
|
194
|
-
case
|
180
|
+
case 24:
|
195
181
|
case "end":
|
196
182
|
return _context.stop();
|
197
183
|
}
|
@@ -207,9 +193,7 @@ _History = History;
|
|
207
193
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
208
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.
|
209
195
|
// 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`.
|
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`.
|
213
197
|
// path (required) - string - Path to operate on.
|
214
198
|
(0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
|
215
199
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
|
@@ -267,33 +251,21 @@ _History = History;
|
|
267
251
|
}
|
268
252
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
269
253
|
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
254
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
283
|
-
_context2.next =
|
255
|
+
_context2.next = 19;
|
284
256
|
break;
|
285
257
|
}
|
286
258
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
287
|
-
case
|
288
|
-
_context2.next =
|
259
|
+
case 19:
|
260
|
+
_context2.next = 21;
|
289
261
|
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
290
|
-
case
|
262
|
+
case 21:
|
291
263
|
response = _context2.sent;
|
292
264
|
Action = require('./Action.js').default;
|
293
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) {
|
294
266
|
return new Action(obj, options);
|
295
267
|
})) || []);
|
296
|
-
case
|
268
|
+
case 24:
|
297
269
|
case "end":
|
298
270
|
return _context2.stop();
|
299
271
|
}
|
@@ -309,9 +281,7 @@ _History = History;
|
|
309
281
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
310
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.
|
311
283
|
// 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`.
|
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`.
|
315
285
|
// user_id (required) - int64 - User ID.
|
316
286
|
(0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
|
317
287
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(userId) {
|
@@ -369,33 +339,21 @@ _History = History;
|
|
369
339
|
}
|
370
340
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
371
341
|
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
342
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
385
|
-
_context3.next =
|
343
|
+
_context3.next = 19;
|
386
344
|
break;
|
387
345
|
}
|
388
346
|
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 =
|
347
|
+
case 19:
|
348
|
+
_context3.next = 21;
|
391
349
|
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
|
392
|
-
case
|
350
|
+
case 21:
|
393
351
|
response = _context3.sent;
|
394
352
|
Action = require('./Action.js').default;
|
395
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) {
|
396
354
|
return new Action(obj, options);
|
397
355
|
})) || []);
|
398
|
-
case
|
356
|
+
case 24:
|
399
357
|
case "end":
|
400
358
|
return _context3.stop();
|
401
359
|
}
|
@@ -411,9 +369,7 @@ _History = History;
|
|
411
369
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
412
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.
|
413
371
|
// 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`.
|
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`.
|
417
373
|
(0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
418
374
|
var _response$data4;
|
419
375
|
var params,
|
@@ -456,27 +412,15 @@ _History = History;
|
|
456
412
|
}
|
457
413
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
458
414
|
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;
|
415
|
+
_context4.next = 14;
|
472
416
|
return _Api.default.sendRequest('/history/login', 'GET', params, options);
|
473
|
-
case
|
417
|
+
case 14:
|
474
418
|
response = _context4.sent;
|
475
419
|
Action = require('./Action.js').default;
|
476
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) {
|
477
421
|
return new Action(obj, options);
|
478
422
|
})) || []);
|
479
|
-
case
|
423
|
+
case 17:
|
480
424
|
case "end":
|
481
425
|
return _context4.stop();
|
482
426
|
}
|
@@ -488,9 +432,7 @@ _History = History;
|
|
488
432
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
489
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.
|
490
434
|
// 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`.
|
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`.
|
494
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`.
|
495
437
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
496
438
|
(0, _defineProperty2.default)(History, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
@@ -535,27 +477,15 @@ _History = History;
|
|
535
477
|
}
|
536
478
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
537
479
|
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;
|
480
|
+
_context5.next = 14;
|
551
481
|
return _Api.default.sendRequest('/history', 'GET', params, options);
|
552
|
-
case
|
482
|
+
case 14:
|
553
483
|
response = _context5.sent;
|
554
484
|
Action = require('./Action.js').default;
|
555
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) {
|
556
486
|
return new Action(obj, options);
|
557
487
|
})) || []);
|
558
|
-
case
|
488
|
+
case 17:
|
559
489
|
case "end":
|
560
490
|
return _context5.stop();
|
561
491
|
}
|
@@ -151,8 +151,6 @@ _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
|
156
154
|
// history_export_id (required) - int64 - ID of the associated history export.
|
157
155
|
(0, _defineProperty2.default)(HistoryExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
158
156
|
var _response$data;
|
@@ -189,32 +187,20 @@ _HistoryExportResult = HistoryExportResult;
|
|
189
187
|
}
|
190
188
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
191
189
|
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
190
|
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
205
|
-
_context.next =
|
191
|
+
_context.next = 12;
|
206
192
|
break;
|
207
193
|
}
|
208
194
|
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 =
|
195
|
+
case 12:
|
196
|
+
_context.next = 14;
|
211
197
|
return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
|
212
|
-
case
|
198
|
+
case 14:
|
213
199
|
response = _context.sent;
|
214
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) {
|
215
201
|
return new _HistoryExportResult(obj, options);
|
216
202
|
})) || []);
|
217
|
-
case
|
203
|
+
case 16:
|
218
204
|
case "end":
|
219
205
|
return _context.stop();
|
220
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
|
}
|
package/lib/models/IpAddress.js
CHANGED
@@ -66,8 +66,6 @@ _IpAddress = IpAddress;
|
|
66
66
|
// Parameters:
|
67
67
|
// 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.
|
68
68
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
69
|
-
// action - string
|
70
|
-
// page - int64
|
71
69
|
(0, _defineProperty2.default)(IpAddress, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
72
70
|
var _response$data;
|
73
71
|
var params,
|
@@ -91,26 +89,14 @@ _IpAddress = IpAddress;
|
|
91
89
|
}
|
92
90
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
93
91
|
case 6:
|
94
|
-
|
95
|
-
_context.next = 8;
|
96
|
-
break;
|
97
|
-
}
|
98
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
99
|
-
case 8:
|
100
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
101
|
-
_context.next = 10;
|
102
|
-
break;
|
103
|
-
}
|
104
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
105
|
-
case 10:
|
106
|
-
_context.next = 12;
|
92
|
+
_context.next = 8;
|
107
93
|
return _Api.default.sendRequest('/ip_addresses', 'GET', params, options);
|
108
|
-
case
|
94
|
+
case 8:
|
109
95
|
response = _context.sent;
|
110
96
|
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) {
|
111
97
|
return new _IpAddress(obj, options);
|
112
98
|
})) || []);
|
113
|
-
case
|
99
|
+
case 10:
|
114
100
|
case "end":
|
115
101
|
return _context.stop();
|
116
102
|
}
|
@@ -124,8 +110,6 @@ _IpAddress = IpAddress;
|
|
124
110
|
// Parameters:
|
125
111
|
// 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.
|
126
112
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
127
|
-
// action - string
|
128
|
-
// page - int64
|
129
113
|
(0, _defineProperty2.default)(IpAddress, "getSmartfileReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
130
114
|
var _response$data2;
|
131
115
|
var params,
|
@@ -150,27 +134,15 @@ _IpAddress = IpAddress;
|
|
150
134
|
}
|
151
135
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
152
136
|
case 6:
|
153
|
-
|
154
|
-
_context2.next = 8;
|
155
|
-
break;
|
156
|
-
}
|
157
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
158
|
-
case 8:
|
159
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
160
|
-
_context2.next = 10;
|
161
|
-
break;
|
162
|
-
}
|
163
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
164
|
-
case 10:
|
165
|
-
_context2.next = 12;
|
137
|
+
_context2.next = 8;
|
166
138
|
return _Api.default.sendRequest('/ip_addresses/smartfile-reserved', 'GET', params, options);
|
167
|
-
case
|
139
|
+
case 8:
|
168
140
|
response = _context2.sent;
|
169
141
|
PublicIpAddress = require('./PublicIpAddress.js').default;
|
170
142
|
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) {
|
171
143
|
return new PublicIpAddress(obj, options);
|
172
144
|
})) || []);
|
173
|
-
case
|
145
|
+
case 11:
|
174
146
|
case "end":
|
175
147
|
return _context2.stop();
|
176
148
|
}
|
@@ -179,8 +151,6 @@ _IpAddress = IpAddress;
|
|
179
151
|
// Parameters:
|
180
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.
|
181
153
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
182
|
-
// action - string
|
183
|
-
// page - int64
|
184
154
|
(0, _defineProperty2.default)(IpAddress, "getExavaultReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
185
155
|
var _response$data3;
|
186
156
|
var params,
|
@@ -205,27 +175,15 @@ _IpAddress = IpAddress;
|
|
205
175
|
}
|
206
176
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
207
177
|
case 6:
|
208
|
-
|
209
|
-
_context3.next = 8;
|
210
|
-
break;
|
211
|
-
}
|
212
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
213
|
-
case 8:
|
214
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
215
|
-
_context3.next = 10;
|
216
|
-
break;
|
217
|
-
}
|
218
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
219
|
-
case 10:
|
220
|
-
_context3.next = 12;
|
178
|
+
_context3.next = 8;
|
221
179
|
return _Api.default.sendRequest('/ip_addresses/exavault-reserved', 'GET', params, options);
|
222
|
-
case
|
180
|
+
case 8:
|
223
181
|
response = _context3.sent;
|
224
182
|
PublicIpAddress = require('./PublicIpAddress.js').default;
|
225
183
|
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) {
|
226
184
|
return new PublicIpAddress(obj, options);
|
227
185
|
})) || []);
|
228
|
-
case
|
186
|
+
case 11:
|
229
187
|
case "end":
|
230
188
|
return _context3.stop();
|
231
189
|
}
|
@@ -234,8 +192,6 @@ _IpAddress = IpAddress;
|
|
234
192
|
// Parameters:
|
235
193
|
// 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.
|
236
194
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
237
|
-
// action - string
|
238
|
-
// page - int64
|
239
195
|
(0, _defineProperty2.default)(IpAddress, "getReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
240
196
|
var _response$data4;
|
241
197
|
var params,
|
@@ -260,27 +216,15 @@ _IpAddress = IpAddress;
|
|
260
216
|
}
|
261
217
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
262
218
|
case 6:
|
263
|
-
|
264
|
-
_context4.next = 8;
|
265
|
-
break;
|
266
|
-
}
|
267
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
268
|
-
case 8:
|
269
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
270
|
-
_context4.next = 10;
|
271
|
-
break;
|
272
|
-
}
|
273
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
274
|
-
case 10:
|
275
|
-
_context4.next = 12;
|
219
|
+
_context4.next = 8;
|
276
220
|
return _Api.default.sendRequest('/ip_addresses/reserved', 'GET', params, options);
|
277
|
-
case
|
221
|
+
case 8:
|
278
222
|
response = _context4.sent;
|
279
223
|
PublicIpAddress = require('./PublicIpAddress.js').default;
|
280
224
|
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) {
|
281
225
|
return new PublicIpAddress(obj, options);
|
282
226
|
})) || []);
|
283
|
-
case
|
227
|
+
case 11:
|
284
228
|
case "end":
|
285
229
|
return _context4.stop();
|
286
230
|
}
|