files.com 1.2.85 → 1.2.87
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 +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/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/Site.md +4 -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/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/Site.js +5 -0
- 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/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/Site.js +4 -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
|
@@ -86,6 +86,8 @@ _BandwidthSnapshot = BandwidthSnapshot;
|
|
|
86
86
|
// Parameters:
|
|
87
87
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
88
88
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
89
|
+
// action - string
|
|
90
|
+
// page - int64
|
|
89
91
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[logged_at]=desc`). Valid fields are `logged_at`.
|
|
90
92
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
|
91
93
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
|
@@ -115,14 +117,26 @@ _BandwidthSnapshot = BandwidthSnapshot;
|
|
|
115
117
|
}
|
|
116
118
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
117
119
|
case 6:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
121
|
+
_context.next = 8;
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
120
125
|
case 8:
|
|
126
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
127
|
+
_context.next = 10;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
131
|
+
case 10:
|
|
132
|
+
_context.next = 12;
|
|
133
|
+
return _Api.default.sendRequest('/bandwidth_snapshots', 'GET', params, options);
|
|
134
|
+
case 12:
|
|
121
135
|
response = _context.sent;
|
|
122
136
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
123
137
|
return new _BandwidthSnapshot(obj, options);
|
|
124
138
|
})) || []);
|
|
125
|
-
case
|
|
139
|
+
case 14:
|
|
126
140
|
case "end":
|
|
127
141
|
return _context.stop();
|
|
128
142
|
}
|
package/lib/models/Behavior.js
CHANGED
|
@@ -96,14 +96,14 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
|
96
96
|
(0, _defineProperty2.default)(this, "setRecursive", function (value) {
|
|
97
97
|
_this.attributes.recursive = value;
|
|
98
98
|
});
|
|
99
|
-
// file # Certain behaviors may require a file, for instance, the
|
|
99
|
+
// file # Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
100
100
|
(0, _defineProperty2.default)(this, "getAttachmentFile", function () {
|
|
101
101
|
return _this.attributes.attachment_file;
|
|
102
102
|
});
|
|
103
103
|
(0, _defineProperty2.default)(this, "setAttachmentFile", function (value) {
|
|
104
104
|
_this.attributes.attachment_file = value;
|
|
105
105
|
});
|
|
106
|
-
// boolean # If true
|
|
106
|
+
// boolean # If `true`, delete the file stored in `attachment`.
|
|
107
107
|
(0, _defineProperty2.default)(this, "getAttachmentDelete", function () {
|
|
108
108
|
return _this.attributes.attachment_delete;
|
|
109
109
|
});
|
|
@@ -111,13 +111,13 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
|
111
111
|
_this.attributes.attachment_delete = value;
|
|
112
112
|
});
|
|
113
113
|
// Parameters:
|
|
114
|
-
// value - string -
|
|
115
|
-
// attachment_file - file - Certain behaviors may require a file, for instance, the
|
|
116
|
-
// disable_parent_folder_behavior - boolean - If true
|
|
117
|
-
// recursive - boolean -
|
|
114
|
+
// value - string - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
|
|
115
|
+
// attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
116
|
+
// disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
117
|
+
// recursive - boolean - If `true`, behavior is treated as recursive, meaning that it impacts child folders as well.
|
|
118
118
|
// name - string - Name for this behavior.
|
|
119
119
|
// description - string - Description for this behavior.
|
|
120
|
-
// attachment_delete - boolean - If true
|
|
120
|
+
// attachment_delete - boolean - If `true`, delete the file stored in `attachment`.
|
|
121
121
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
122
122
|
var params,
|
|
123
123
|
response,
|
|
@@ -285,6 +285,8 @@ _Behavior = Behavior;
|
|
|
285
285
|
// Parameters:
|
|
286
286
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
287
287
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
288
|
+
// action - string
|
|
289
|
+
// page - int64
|
|
288
290
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
|
|
289
291
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
290
292
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
@@ -311,14 +313,26 @@ _Behavior = Behavior;
|
|
|
311
313
|
}
|
|
312
314
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
313
315
|
case 6:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
317
|
+
_context4.next = 8;
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
316
321
|
case 8:
|
|
322
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
323
|
+
_context4.next = 10;
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
327
|
+
case 10:
|
|
328
|
+
_context4.next = 12;
|
|
329
|
+
return _Api.default.sendRequest('/behaviors', 'GET', params, options);
|
|
330
|
+
case 12:
|
|
317
331
|
response = _context4.sent;
|
|
318
332
|
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) {
|
|
319
333
|
return new _Behavior(obj, options);
|
|
320
334
|
})) || []);
|
|
321
|
-
case
|
|
335
|
+
case 14:
|
|
322
336
|
case "end":
|
|
323
337
|
return _context4.stop();
|
|
324
338
|
}
|
|
@@ -384,12 +398,14 @@ _Behavior = Behavior;
|
|
|
384
398
|
// Parameters:
|
|
385
399
|
// 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.
|
|
386
400
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
401
|
+
// action - string
|
|
402
|
+
// page - int64
|
|
387
403
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
|
|
388
404
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
389
405
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
390
406
|
// path (required) - string - Path to operate on.
|
|
391
|
-
// ancestor_behaviors -
|
|
392
|
-
// behavior - string
|
|
407
|
+
// ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
|
|
408
|
+
// behavior - string
|
|
393
409
|
(0, _defineProperty2.default)(Behavior, "listFor", /*#__PURE__*/function () {
|
|
394
410
|
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(path) {
|
|
395
411
|
var _response$data2;
|
|
@@ -427,32 +443,38 @@ _Behavior = Behavior;
|
|
|
427
443
|
}
|
|
428
444
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
429
445
|
case 11:
|
|
430
|
-
if (!(params.
|
|
446
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
431
447
|
_context6.next = 13;
|
|
432
448
|
break;
|
|
433
449
|
}
|
|
434
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
450
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
435
451
|
case 13:
|
|
436
|
-
if (!(params.
|
|
452
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
437
453
|
_context6.next = 15;
|
|
438
454
|
break;
|
|
439
455
|
}
|
|
440
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
456
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
441
457
|
case 15:
|
|
442
|
-
if (!(params.
|
|
458
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
|
443
459
|
_context6.next = 17;
|
|
444
460
|
break;
|
|
445
461
|
}
|
|
446
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
462
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
|
447
463
|
case 17:
|
|
448
|
-
|
|
449
|
-
|
|
464
|
+
if (!(params.behavior && !(0, _utils.isString)(params.behavior))) {
|
|
465
|
+
_context6.next = 19;
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(params.behavior)));
|
|
450
469
|
case 19:
|
|
470
|
+
_context6.next = 21;
|
|
471
|
+
return _Api.default.sendRequest("/behaviors/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
|
472
|
+
case 21:
|
|
451
473
|
response = _context6.sent;
|
|
452
474
|
return _context6.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
453
475
|
return new _Behavior(obj, options);
|
|
454
476
|
})) || []);
|
|
455
|
-
case
|
|
477
|
+
case 23:
|
|
456
478
|
case "end":
|
|
457
479
|
return _context6.stop();
|
|
458
480
|
}
|
|
@@ -463,13 +485,13 @@ _Behavior = Behavior;
|
|
|
463
485
|
};
|
|
464
486
|
}());
|
|
465
487
|
// Parameters:
|
|
466
|
-
// value - string -
|
|
467
|
-
// attachment_file - file - Certain behaviors may require a file, for instance, the
|
|
468
|
-
// disable_parent_folder_behavior - boolean - If true
|
|
469
|
-
// recursive - boolean -
|
|
488
|
+
// value - string - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
|
|
489
|
+
// attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
490
|
+
// disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
491
|
+
// recursive - boolean - If `true`, behavior is treated as recursive, meaning that it impacts child folders as well.
|
|
470
492
|
// name - string - Name for this behavior.
|
|
471
493
|
// description - string - Description for this behavior.
|
|
472
|
-
// path (required) - string -
|
|
494
|
+
// path (required) - string - Path where this behavior should apply.
|
|
473
495
|
// behavior (required) - string - Behavior type.
|
|
474
496
|
(0, _defineProperty2.default)(Behavior, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
475
497
|
var params,
|
|
@@ -536,11 +558,11 @@ _Behavior = Behavior;
|
|
|
536
558
|
})));
|
|
537
559
|
// Parameters:
|
|
538
560
|
// url (required) - string - URL for testing the webhook.
|
|
539
|
-
// method - string - HTTP method(GET or POST).
|
|
540
|
-
// encoding - string -
|
|
541
|
-
// headers - object - Additional request headers.
|
|
542
|
-
// body - object - Additional body parameters.
|
|
543
|
-
// action - string -
|
|
561
|
+
// method - string - HTTP request method (GET or POST).
|
|
562
|
+
// encoding - string - Encoding type for the webhook payload. Can be JSON, XML, or RAW (form data).
|
|
563
|
+
// headers - object - Additional request headers to send via HTTP.
|
|
564
|
+
// body - object - Additional body parameters to include in the webhook payload.
|
|
565
|
+
// action - string - Action for test body.
|
|
544
566
|
(0, _defineProperty2.default)(Behavior, "webhookTest", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
545
567
|
var params,
|
|
546
568
|
options,
|
package/lib/models/Bundle.js
CHANGED
|
@@ -110,7 +110,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
|
110
110
|
(0, _defineProperty2.default)(this, "setPermissions", function (value) {
|
|
111
111
|
_this.attributes.permissions = value;
|
|
112
112
|
});
|
|
113
|
-
// boolean
|
|
113
|
+
// boolean
|
|
114
114
|
(0, _defineProperty2.default)(this, "getPreviewOnly", function () {
|
|
115
115
|
return _this.attributes.preview_only;
|
|
116
116
|
});
|
|
@@ -434,7 +434,6 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
|
434
434
|
// path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
|
435
435
|
// path_template_time_zone - string - Timezone to use when rendering timestamps in path templates.
|
|
436
436
|
// permissions - string - Permissions that apply to Folders in this Share Link.
|
|
437
|
-
// preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
|
438
437
|
// require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
|
439
438
|
// require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
|
440
439
|
// send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
|
|
@@ -678,6 +677,8 @@ _Bundle = Bundle;
|
|
|
678
677
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
679
678
|
// 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.
|
|
680
679
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
680
|
+
// action - string
|
|
681
|
+
// page - int64
|
|
681
682
|
// 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` and `code`.
|
|
682
683
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
683
684
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
@@ -713,14 +714,26 @@ _Bundle = Bundle;
|
|
|
713
714
|
}
|
|
714
715
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
715
716
|
case 8:
|
|
716
|
-
|
|
717
|
-
|
|
717
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
718
|
+
_context5.next = 10;
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
718
722
|
case 10:
|
|
723
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
724
|
+
_context5.next = 12;
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
728
|
+
case 12:
|
|
729
|
+
_context5.next = 14;
|
|
730
|
+
return _Api.default.sendRequest('/bundles', 'GET', params, options);
|
|
731
|
+
case 14:
|
|
719
732
|
response = _context5.sent;
|
|
720
733
|
return _context5.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
721
734
|
return new _Bundle(obj, options);
|
|
722
735
|
})) || []);
|
|
723
|
-
case
|
|
736
|
+
case 16:
|
|
724
737
|
case "end":
|
|
725
738
|
return _context5.stop();
|
|
726
739
|
}
|
|
@@ -799,7 +812,6 @@ _Bundle = Bundle;
|
|
|
799
812
|
// path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
|
800
813
|
// path_template_time_zone - string - Timezone to use when rendering timestamps in path templates.
|
|
801
814
|
// permissions - string - Permissions that apply to Folders in this Share Link.
|
|
802
|
-
// preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
|
803
815
|
// require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
|
804
816
|
// clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
|
805
817
|
// inbox_id - int64 - ID of the associated inbox, if available.
|
|
@@ -74,6 +74,8 @@ _BundleAction = BundleAction;
|
|
|
74
74
|
// Parameters:
|
|
75
75
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
76
76
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
77
|
+
// action - string
|
|
78
|
+
// page - int64
|
|
77
79
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
|
|
78
80
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
79
81
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
@@ -105,26 +107,38 @@ _BundleAction = BundleAction;
|
|
|
105
107
|
}
|
|
106
108
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
107
109
|
case 6:
|
|
108
|
-
if (!(params.
|
|
110
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
109
111
|
_context.next = 8;
|
|
110
112
|
break;
|
|
111
113
|
}
|
|
112
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
114
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
113
115
|
case 8:
|
|
114
|
-
if (!(params.
|
|
116
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
115
117
|
_context.next = 10;
|
|
116
118
|
break;
|
|
117
119
|
}
|
|
118
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
120
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
119
121
|
case 10:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
|
123
|
+
_context.next = 12;
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
|
122
127
|
case 12:
|
|
128
|
+
if (!(params.bundle_registration_id && !(0, _utils.isInt)(params.bundle_registration_id))) {
|
|
129
|
+
_context.next = 14;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_registration_id)));
|
|
133
|
+
case 14:
|
|
134
|
+
_context.next = 16;
|
|
135
|
+
return _Api.default.sendRequest('/bundle_actions', 'GET', params, options);
|
|
136
|
+
case 16:
|
|
123
137
|
response = _context.sent;
|
|
124
138
|
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) {
|
|
125
139
|
return new _BundleAction(obj, options);
|
|
126
140
|
})) || []);
|
|
127
|
-
case
|
|
141
|
+
case 18:
|
|
128
142
|
case "end":
|
|
129
143
|
return _context.stop();
|
|
130
144
|
}
|
|
@@ -66,6 +66,8 @@ _BundleDownload = BundleDownload;
|
|
|
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
|
|
69
71
|
// 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`.
|
|
70
72
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
71
73
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
@@ -97,26 +99,38 @@ _BundleDownload = BundleDownload;
|
|
|
97
99
|
}
|
|
98
100
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
99
101
|
case 6:
|
|
100
|
-
if (!(params.
|
|
102
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
101
103
|
_context.next = 8;
|
|
102
104
|
break;
|
|
103
105
|
}
|
|
104
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
106
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
105
107
|
case 8:
|
|
106
|
-
if (!(params.
|
|
108
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
107
109
|
_context.next = 10;
|
|
108
110
|
break;
|
|
109
111
|
}
|
|
110
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
112
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
111
113
|
case 10:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
|
115
|
+
_context.next = 12;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
|
114
119
|
case 12:
|
|
120
|
+
if (!(params.bundle_registration_id && !(0, _utils.isInt)(params.bundle_registration_id))) {
|
|
121
|
+
_context.next = 14;
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_registration_id)));
|
|
125
|
+
case 14:
|
|
126
|
+
_context.next = 16;
|
|
127
|
+
return _Api.default.sendRequest('/bundle_downloads', 'GET', params, options);
|
|
128
|
+
case 16:
|
|
115
129
|
response = _context.sent;
|
|
116
130
|
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) {
|
|
117
131
|
return new _BundleDownload(obj, options);
|
|
118
132
|
})) || []);
|
|
119
|
-
case
|
|
133
|
+
case 18:
|
|
120
134
|
case "end":
|
|
121
135
|
return _context.stop();
|
|
122
136
|
}
|
|
@@ -220,6 +220,8 @@ _BundleNotification = BundleNotification;
|
|
|
220
220
|
// Parameters:
|
|
221
221
|
// 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.
|
|
222
222
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
223
|
+
// action - string
|
|
224
|
+
// page - int64
|
|
223
225
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
|
224
226
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
|
225
227
|
(0, _defineProperty2.default)(BundleNotification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
@@ -245,14 +247,26 @@ _BundleNotification = BundleNotification;
|
|
|
245
247
|
}
|
|
246
248
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
247
249
|
case 6:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
251
|
+
_context4.next = 8;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
250
255
|
case 8:
|
|
256
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
257
|
+
_context4.next = 10;
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
261
|
+
case 10:
|
|
262
|
+
_context4.next = 12;
|
|
263
|
+
return _Api.default.sendRequest('/bundle_notifications', 'GET', params, options);
|
|
264
|
+
case 12:
|
|
251
265
|
response = _context4.sent;
|
|
252
266
|
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) {
|
|
253
267
|
return new _BundleNotification(obj, options);
|
|
254
268
|
})) || []);
|
|
255
|
-
case
|
|
269
|
+
case 14:
|
|
256
270
|
case "end":
|
|
257
271
|
return _context4.stop();
|
|
258
272
|
}
|
|
@@ -122,6 +122,8 @@ _BundleRecipient = BundleRecipient;
|
|
|
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
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
|
@@ -154,20 +156,32 @@ _BundleRecipient = BundleRecipient;
|
|
|
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.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
|
172
|
+
_context2.next = 14;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
|
176
|
+
case 14:
|
|
177
|
+
_context2.next = 16;
|
|
178
|
+
return _Api.default.sendRequest('/bundle_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 _BundleRecipient(obj, options);
|
|
169
183
|
})) || []);
|
|
170
|
-
case
|
|
184
|
+
case 18:
|
|
171
185
|
case "end":
|
|
172
186
|
return _context2.stop();
|
|
173
187
|
}
|
|
@@ -102,6 +102,8 @@ _BundleRegistration = BundleRegistration;
|
|
|
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
|
// bundle_id - int64 - ID of the associated Bundle
|
|
106
108
|
(0, _defineProperty2.default)(BundleRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
107
109
|
var _response$data;
|
|
@@ -126,20 +128,32 @@ _BundleRegistration = BundleRegistration;
|
|
|
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
|
-
if (!(params.
|
|
131
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
130
132
|
_context.next = 8;
|
|
131
133
|
break;
|
|
132
134
|
}
|
|
133
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
135
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
134
136
|
case 8:
|
|
135
|
-
|
|
136
|
-
|
|
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)));
|
|
137
142
|
case 10:
|
|
143
|
+
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
|
144
|
+
_context.next = 12;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
|
148
|
+
case 12:
|
|
149
|
+
_context.next = 14;
|
|
150
|
+
return _Api.default.sendRequest('/bundle_registrations', 'GET', params, options);
|
|
151
|
+
case 14:
|
|
138
152
|
response = _context.sent;
|
|
139
153
|
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) {
|
|
140
154
|
return new _BundleRegistration(obj, options);
|
|
141
155
|
})) || []);
|
|
142
|
-
case
|
|
156
|
+
case 16:
|
|
143
157
|
case "end":
|
|
144
158
|
return _context.stop();
|
|
145
159
|
}
|
package/lib/models/Clickwrap.js
CHANGED
|
@@ -260,6 +260,8 @@ _Clickwrap = Clickwrap;
|
|
|
260
260
|
// Parameters:
|
|
261
261
|
// 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.
|
|
262
262
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
263
|
+
// action - string
|
|
264
|
+
// page - int64
|
|
263
265
|
(0, _defineProperty2.default)(Clickwrap, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
264
266
|
var _response$data;
|
|
265
267
|
var params,
|
|
@@ -283,14 +285,26 @@ _Clickwrap = Clickwrap;
|
|
|
283
285
|
}
|
|
284
286
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
285
287
|
case 6:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
289
|
+
_context4.next = 8;
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
288
293
|
case 8:
|
|
294
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
|
295
|
+
_context4.next = 10;
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
|
299
|
+
case 10:
|
|
300
|
+
_context4.next = 12;
|
|
301
|
+
return _Api.default.sendRequest('/clickwraps', 'GET', params, options);
|
|
302
|
+
case 12:
|
|
289
303
|
response = _context4.sent;
|
|
290
304
|
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) {
|
|
291
305
|
return new _Clickwrap(obj, options);
|
|
292
306
|
})) || []);
|
|
293
|
-
case
|
|
307
|
+
case 14:
|
|
294
308
|
case "end":
|
|
295
309
|
return _context4.stop();
|
|
296
310
|
}
|
package/lib/models/DnsRecord.js
CHANGED
|
@@ -66,6 +66,8 @@ _DnsRecord = DnsRecord;
|
|
|
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
|
|
69
71
|
(0, _defineProperty2.default)(DnsRecord, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
70
72
|
var _response$data;
|
|
71
73
|
var params,
|
|
@@ -89,14 +91,26 @@ _DnsRecord = DnsRecord;
|
|
|
89
91
|
}
|
|
90
92
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
91
93
|
case 6:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
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)));
|
|
94
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;
|
|
107
|
+
return _Api.default.sendRequest('/dns_records', 'GET', params, options);
|
|
108
|
+
case 12:
|
|
95
109
|
response = _context.sent;
|
|
96
110
|
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) {
|
|
97
111
|
return new _DnsRecord(obj, options);
|
|
98
112
|
})) || []);
|
|
99
|
-
case
|
|
113
|
+
case 14:
|
|
100
114
|
case "end":
|
|
101
115
|
return _context.stop();
|
|
102
116
|
}
|