files.com 1.2.117 → 1.2.118
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/lib/Api.js +4 -4
- package/lib/Errors.js +1 -1
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +3 -3
- package/lib/models/ActionNotificationExport.js +3 -3
- package/lib/models/ActionNotificationExportResult.js +1 -1
- package/lib/models/ApiKey.js +9 -9
- package/lib/models/ApiRequestLog.js +1 -1
- package/lib/models/App.js +1 -1
- package/lib/models/As2IncomingMessage.js +1 -1
- package/lib/models/As2OutgoingMessage.js +1 -1
- package/lib/models/As2Partner.js +6 -6
- package/lib/models/As2Station.js +6 -6
- package/lib/models/Automation.js +7 -7
- package/lib/models/AutomationLog.js +1 -1
- package/lib/models/AutomationRun.js +2 -2
- package/lib/models/BandwidthSnapshot.js +1 -1
- package/lib/models/Behavior.js +8 -8
- package/lib/models/Bundle.js +7 -7
- package/lib/models/BundleAction.js +1 -1
- package/lib/models/BundleDownload.js +1 -1
- package/lib/models/BundleNotification.js +6 -6
- package/lib/models/BundleRecipient.js +3 -3
- package/lib/models/BundleRegistration.js +1 -1
- package/lib/models/Clickwrap.js +6 -6
- package/lib/models/DnsRecord.js +1 -1
- package/lib/models/EmailIncomingMessage.js +1 -1
- package/lib/models/EmailLog.js +1 -1
- package/lib/models/ExavaultApiRequestLog.js +1 -1
- package/lib/models/ExternalEvent.js +4 -4
- package/lib/models/File.js +22 -22
- package/lib/models/FileComment.js +5 -5
- package/lib/models/FileCommentReaction.js +3 -3
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/FileMigrationLog.js +1 -1
- package/lib/models/Folder.js +3 -3
- package/lib/models/FormFieldSet.js +6 -6
- package/lib/models/FtpActionLog.js +1 -1
- package/lib/models/GpgKey.js +6 -6
- package/lib/models/Group.js +6 -6
- package/lib/models/GroupUser.js +5 -5
- package/lib/models/History.js +5 -5
- package/lib/models/HistoryExport.js +3 -3
- package/lib/models/HistoryExportResult.js +1 -1
- package/lib/models/InboxRecipient.js +3 -3
- package/lib/models/InboxRegistration.js +1 -1
- package/lib/models/InboxUpload.js +1 -1
- package/lib/models/Invoice.js +2 -2
- package/lib/models/IpAddress.js +4 -4
- package/lib/models/Lock.js +4 -4
- package/lib/models/Message.js +6 -6
- package/lib/models/MessageComment.js +6 -6
- package/lib/models/MessageCommentReaction.js +5 -5
- package/lib/models/MessageReaction.js +5 -5
- package/lib/models/Notification.js +6 -6
- package/lib/models/OutboundConnectionLog.js +1 -1
- package/lib/models/Payment.js +2 -2
- package/lib/models/Permission.js +4 -4
- package/lib/models/Priority.js +1 -1
- package/lib/models/Project.js +6 -6
- package/lib/models/PublicHostingRequestLog.js +1 -1
- package/lib/models/PublicKey.js +6 -6
- package/lib/models/RemoteBandwidthSnapshot.js +1 -1
- package/lib/models/RemoteServer.js +8 -8
- package/lib/models/Request.js +5 -5
- package/lib/models/Session.js +3 -3
- package/lib/models/SettingsChange.js +1 -1
- package/lib/models/SftpActionLog.js +1 -1
- package/lib/models/SftpHostKey.js +6 -6
- package/lib/models/ShareGroup.js +6 -6
- package/lib/models/Site.js +3 -3
- package/lib/models/Snapshot.js +7 -7
- package/lib/models/SsoStrategy.js +3 -3
- package/lib/models/Style.js +4 -4
- package/lib/models/SyncLog.js +1 -1
- package/lib/models/UsageDailySnapshot.js +1 -1
- package/lib/models/UsageSnapshot.js +1 -1
- package/lib/models/User.js +9 -9
- package/lib/models/UserCipherUse.js +1 -1
- package/lib/models/UserRequest.js +5 -5
- package/lib/models/WebDavActionLog.js +1 -1
- package/lib/models/WebhookTest.js +2 -2
- package/package.json +1 -1
- package/src/Files.js +1 -1
@@ -89,7 +89,7 @@ _AutomationRun = AutomationRun;
|
|
89
89
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
90
90
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ status, automation_id ]`.
|
91
91
|
// automation_id (required) - int64 - ID of the associated Automation.
|
92
|
-
(0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
92
|
+
(0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
93
93
|
var _response$data;
|
94
94
|
var params,
|
95
95
|
options,
|
@@ -145,7 +145,7 @@ _AutomationRun = AutomationRun;
|
|
145
145
|
// Parameters:
|
146
146
|
// id (required) - int64 - Automation Run ID.
|
147
147
|
(0, _defineProperty2.default)(AutomationRun, "find", /*#__PURE__*/function () {
|
148
|
-
var _ref4 = (0, _asyncToGenerator2.default)(
|
148
|
+
var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(id) {
|
149
149
|
var params,
|
150
150
|
options,
|
151
151
|
response,
|
@@ -92,7 +92,7 @@ _BandwidthSnapshot = BandwidthSnapshot;
|
|
92
92
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
93
93
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
94
94
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
95
|
-
(0, _defineProperty2.default)(BandwidthSnapshot, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
95
|
+
(0, _defineProperty2.default)(BandwidthSnapshot, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
96
96
|
var _response$data;
|
97
97
|
var params,
|
98
98
|
options,
|
package/lib/models/Behavior.js
CHANGED
@@ -118,7 +118,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
118
118
|
// name - string - Name for this behavior.
|
119
119
|
// description - string - Description for this behavior.
|
120
120
|
// attachment_delete - boolean - If `true`, delete the file stored in `attachment`.
|
121
|
-
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
121
|
+
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
122
122
|
var params,
|
123
123
|
response,
|
124
124
|
_args = arguments;
|
@@ -188,7 +188,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
188
188
|
}
|
189
189
|
}, _callee);
|
190
190
|
})));
|
191
|
-
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
191
|
+
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
192
192
|
var params,
|
193
193
|
_args2 = arguments;
|
194
194
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
@@ -240,7 +240,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
240
240
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
241
241
|
return _this.delete(params);
|
242
242
|
});
|
243
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
243
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
244
244
|
var _newObject, newObject;
|
245
245
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
246
246
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -288,7 +288,7 @@ _Behavior = Behavior;
|
|
288
288
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior` and `impacts_ui`.
|
289
289
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
290
290
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
291
|
-
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
291
|
+
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
292
292
|
var _response$data;
|
293
293
|
var params,
|
294
294
|
options,
|
@@ -332,7 +332,7 @@ _Behavior = Behavior;
|
|
332
332
|
// Parameters:
|
333
333
|
// id (required) - int64 - Behavior ID.
|
334
334
|
(0, _defineProperty2.default)(Behavior, "find", /*#__PURE__*/function () {
|
335
|
-
var _ref7 = (0, _asyncToGenerator2.default)(
|
335
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(id) {
|
336
336
|
var params,
|
337
337
|
options,
|
338
338
|
response,
|
@@ -390,7 +390,7 @@ _Behavior = Behavior;
|
|
390
390
|
// path (required) - string - Path to operate on.
|
391
391
|
// ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
|
392
392
|
(0, _defineProperty2.default)(Behavior, "listFor", /*#__PURE__*/function () {
|
393
|
-
var _ref8 = (0, _asyncToGenerator2.default)(
|
393
|
+
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6(path) {
|
394
394
|
var _response$data2;
|
395
395
|
var params,
|
396
396
|
options,
|
@@ -458,7 +458,7 @@ _Behavior = Behavior;
|
|
458
458
|
// description - string - Description for this behavior.
|
459
459
|
// path (required) - string - Path where this behavior should apply.
|
460
460
|
// behavior (required) - string - Behavior type.
|
461
|
-
(0, _defineProperty2.default)(Behavior, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
461
|
+
(0, _defineProperty2.default)(Behavior, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
462
462
|
var params,
|
463
463
|
options,
|
464
464
|
response,
|
@@ -528,7 +528,7 @@ _Behavior = Behavior;
|
|
528
528
|
// headers - object - Additional request headers to send via HTTP.
|
529
529
|
// body - object - Additional body parameters to include in the webhook payload.
|
530
530
|
// action - string - Action for test body.
|
531
|
-
(0, _defineProperty2.default)(Behavior, "webhookTest", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
531
|
+
(0, _defineProperty2.default)(Behavior, "webhookTest", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
532
532
|
var params,
|
533
533
|
options,
|
534
534
|
_args8 = arguments;
|
package/lib/models/Bundle.js
CHANGED
@@ -351,7 +351,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
351
351
|
// to - array(string) - A list of email addresses to share this bundle with. Required unless `recipients` is used.
|
352
352
|
// note - string - Note to include in email.
|
353
353
|
// recipients - array(object) - A list of recipients to share this bundle with. Required unless `to` is used.
|
354
|
-
(0, _defineProperty2.default)(this, "share", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
354
|
+
(0, _defineProperty2.default)(this, "share", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
355
355
|
var params,
|
356
356
|
_args = arguments;
|
357
357
|
return _regenerator.default.wrap(function _callee$(_context) {
|
@@ -443,7 +443,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
443
443
|
// skip_name - boolean - BundleRegistrations can be saved without providing name?
|
444
444
|
// watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
445
445
|
// watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
446
|
-
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
446
|
+
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
447
447
|
var params,
|
448
448
|
response,
|
449
449
|
_args2 = arguments;
|
@@ -579,7 +579,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
579
579
|
}
|
580
580
|
}, _callee2);
|
581
581
|
})));
|
582
|
-
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
582
|
+
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
583
583
|
var params,
|
584
584
|
_args3 = arguments;
|
585
585
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
@@ -631,7 +631,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
631
631
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
632
632
|
return _this.delete(params);
|
633
633
|
});
|
634
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
634
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
635
635
|
var _newObject, newObject;
|
636
636
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
637
637
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -683,7 +683,7 @@ _Bundle = Bundle;
|
|
683
683
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
684
684
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
685
685
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
686
|
-
(0, _defineProperty2.default)(Bundle, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
686
|
+
(0, _defineProperty2.default)(Bundle, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
687
687
|
var _response$data;
|
688
688
|
var params,
|
689
689
|
options,
|
@@ -733,7 +733,7 @@ _Bundle = Bundle;
|
|
733
733
|
// Parameters:
|
734
734
|
// id (required) - int64 - Bundle ID.
|
735
735
|
(0, _defineProperty2.default)(Bundle, "find", /*#__PURE__*/function () {
|
736
|
-
var _ref8 = (0, _asyncToGenerator2.default)(
|
736
|
+
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6(id) {
|
737
737
|
var params,
|
738
738
|
options,
|
739
739
|
response,
|
@@ -809,7 +809,7 @@ _Bundle = Bundle;
|
|
809
809
|
// start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
|
810
810
|
// snapshot_id - int64 - ID of the snapshot containing this bundle's contents.
|
811
811
|
// watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
812
|
-
(0, _defineProperty2.default)(Bundle, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
812
|
+
(0, _defineProperty2.default)(Bundle, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
813
813
|
var params,
|
814
814
|
options,
|
815
815
|
response,
|
@@ -82,7 +82,7 @@ _BundleAction = BundleAction;
|
|
82
82
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
83
83
|
// bundle_id - int64 - Bundle ID
|
84
84
|
// bundle_registration_id - int64 - BundleRegistration ID
|
85
|
-
(0, _defineProperty2.default)(BundleAction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
85
|
+
(0, _defineProperty2.default)(BundleAction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
86
86
|
var _response$data;
|
87
87
|
var params,
|
88
88
|
options,
|
@@ -74,7 +74,7 @@ _BundleDownload = BundleDownload;
|
|
74
74
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
75
75
|
// bundle_id - int64 - Bundle ID
|
76
76
|
// bundle_registration_id - int64 - BundleRegistration ID
|
77
|
-
(0, _defineProperty2.default)(BundleDownload, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
77
|
+
(0, _defineProperty2.default)(BundleDownload, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
78
78
|
var _response$data;
|
79
79
|
var params,
|
80
80
|
options,
|
@@ -71,7 +71,7 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
71
71
|
// Parameters:
|
72
72
|
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
73
73
|
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
74
|
-
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
74
|
+
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
75
75
|
var params,
|
76
76
|
response,
|
77
77
|
_args = arguments;
|
@@ -123,7 +123,7 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
123
123
|
}
|
124
124
|
}, _callee);
|
125
125
|
})));
|
126
|
-
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
126
|
+
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
127
127
|
var params,
|
128
128
|
_args2 = arguments;
|
129
129
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
@@ -175,7 +175,7 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
175
175
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
176
176
|
return _this.delete(params);
|
177
177
|
});
|
178
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
178
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
179
179
|
var _newObject, newObject;
|
180
180
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
181
181
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -222,7 +222,7 @@ _BundleNotification = BundleNotification;
|
|
222
222
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
223
223
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
224
224
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
225
|
-
(0, _defineProperty2.default)(BundleNotification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
225
|
+
(0, _defineProperty2.default)(BundleNotification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
226
226
|
var _response$data;
|
227
227
|
var params,
|
228
228
|
options,
|
@@ -266,7 +266,7 @@ _BundleNotification = BundleNotification;
|
|
266
266
|
// Parameters:
|
267
267
|
// id (required) - int64 - Bundle Notification ID.
|
268
268
|
(0, _defineProperty2.default)(BundleNotification, "find", /*#__PURE__*/function () {
|
269
|
-
var _ref7 = (0, _asyncToGenerator2.default)(
|
269
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(id) {
|
270
270
|
var params,
|
271
271
|
options,
|
272
272
|
response,
|
@@ -320,7 +320,7 @@ _BundleNotification = BundleNotification;
|
|
320
320
|
// user_id - int64 - The id of the user to notify.
|
321
321
|
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
322
322
|
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
323
|
-
(0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
323
|
+
(0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
324
324
|
var params,
|
325
325
|
options,
|
326
326
|
response,
|
@@ -82,7 +82,7 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
|
|
82
82
|
(0, _defineProperty2.default)(this, "setShareAfterCreate", function (value) {
|
83
83
|
_this.attributes.share_after_create = value;
|
84
84
|
});
|
85
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
85
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
86
86
|
var newObject;
|
87
87
|
return _regenerator.default.wrap(function _callee$(_context) {
|
88
88
|
while (1) switch (_context.prev = _context.next) {
|
@@ -125,7 +125,7 @@ _BundleRecipient = BundleRecipient;
|
|
125
125
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `has_registrations`.
|
126
126
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
127
127
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
128
|
-
(0, _defineProperty2.default)(BundleRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
128
|
+
(0, _defineProperty2.default)(BundleRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
129
129
|
var _response$data;
|
130
130
|
var params,
|
131
131
|
options,
|
@@ -185,7 +185,7 @@ _BundleRecipient = BundleRecipient;
|
|
185
185
|
// company - string - Company of recipient.
|
186
186
|
// note - string - Note to include in email.
|
187
187
|
// share_after_create - boolean - Set to true to share the link with the recipient upon creation.
|
188
|
-
(0, _defineProperty2.default)(BundleRecipient, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
188
|
+
(0, _defineProperty2.default)(BundleRecipient, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
189
189
|
var params,
|
190
190
|
options,
|
191
191
|
response,
|
@@ -103,7 +103,7 @@ _BundleRegistration = BundleRegistration;
|
|
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
105
|
// bundle_id - int64 - ID of the associated Bundle
|
106
|
-
(0, _defineProperty2.default)(BundleRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
106
|
+
(0, _defineProperty2.default)(BundleRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
107
107
|
var _response$data;
|
108
108
|
var params,
|
109
109
|
options,
|
package/lib/models/Clickwrap.js
CHANGED
@@ -81,7 +81,7 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
|
|
81
81
|
// use_with_bundles - string - Use this Clickwrap for Bundles?
|
82
82
|
// use_with_inboxes - string - Use this Clickwrap for Inboxes?
|
83
83
|
// use_with_users - string - Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
84
|
-
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
84
|
+
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
85
85
|
var params,
|
86
86
|
response,
|
87
87
|
_args = arguments;
|
@@ -163,7 +163,7 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
|
|
163
163
|
}
|
164
164
|
}, _callee);
|
165
165
|
})));
|
166
|
-
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
166
|
+
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
167
167
|
var params,
|
168
168
|
_args2 = arguments;
|
169
169
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
@@ -215,7 +215,7 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
|
|
215
215
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
216
216
|
return _this.delete(params);
|
217
217
|
});
|
218
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
218
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
219
219
|
var _newObject, newObject;
|
220
220
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
221
221
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -260,7 +260,7 @@ _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
|
-
(0, _defineProperty2.default)(Clickwrap, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
263
|
+
(0, _defineProperty2.default)(Clickwrap, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
264
264
|
var _response$data;
|
265
265
|
var params,
|
266
266
|
options,
|
@@ -304,7 +304,7 @@ _Clickwrap = Clickwrap;
|
|
304
304
|
// Parameters:
|
305
305
|
// id (required) - int64 - Clickwrap ID.
|
306
306
|
(0, _defineProperty2.default)(Clickwrap, "find", /*#__PURE__*/function () {
|
307
|
-
var _ref7 = (0, _asyncToGenerator2.default)(
|
307
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(id) {
|
308
308
|
var params,
|
309
309
|
options,
|
310
310
|
response,
|
@@ -359,7 +359,7 @@ _Clickwrap = Clickwrap;
|
|
359
359
|
// use_with_bundles - string - Use this Clickwrap for Bundles?
|
360
360
|
// use_with_inboxes - string - Use this Clickwrap for Inboxes?
|
361
361
|
// use_with_users - string - Use this Clickwrap for User Registrations? Note: This only applies to User Registrations where the User is invited to your Files.com site using an E-Mail invitation process where they then set their own password.
|
362
|
-
(0, _defineProperty2.default)(Clickwrap, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
362
|
+
(0, _defineProperty2.default)(Clickwrap, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
363
363
|
var params,
|
364
364
|
options,
|
365
365
|
response,
|
package/lib/models/DnsRecord.js
CHANGED
@@ -66,7 +66,7 @@ _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
|
-
(0, _defineProperty2.default)(DnsRecord, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
69
|
+
(0, _defineProperty2.default)(DnsRecord, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
70
70
|
var _response$data;
|
71
71
|
var params,
|
72
72
|
options,
|
@@ -93,7 +93,7 @@ _EmailIncomingMessage = EmailIncomingMessage;
|
|
93
93
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
|
94
94
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
95
95
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
96
|
-
(0, _defineProperty2.default)(EmailIncomingMessage, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
96
|
+
(0, _defineProperty2.default)(EmailIncomingMessage, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
97
97
|
var _response$data;
|
98
98
|
var params,
|
99
99
|
options,
|
package/lib/models/EmailLog.js
CHANGED
@@ -88,7 +88,7 @@ _EmailLog = EmailLog;
|
|
88
88
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
89
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
90
90
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
91
|
-
(0, _defineProperty2.default)(EmailLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
91
|
+
(0, _defineProperty2.default)(EmailLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
92
92
|
var _response$data;
|
93
93
|
var params,
|
94
94
|
options,
|
@@ -96,7 +96,7 @@ _ExavaultApiRequestLog = ExavaultApiRequestLog;
|
|
96
96
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
97
97
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `request_ip`, `request_method` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
98
98
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `request_ip` and `request_method`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
99
|
-
(0, _defineProperty2.default)(ExavaultApiRequestLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
99
|
+
(0, _defineProperty2.default)(ExavaultApiRequestLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
100
100
|
var _response$data;
|
101
101
|
var params,
|
102
102
|
options,
|
@@ -121,7 +121,7 @@ var ExternalEvent = /*#__PURE__*/(0, _createClass2.default)(function ExternalEve
|
|
121
121
|
(0, _defineProperty2.default)(this, "setRemoteServerType", function (value) {
|
122
122
|
_this.attributes.remote_server_type = value;
|
123
123
|
});
|
124
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
124
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
125
125
|
var newObject;
|
126
126
|
return _regenerator.default.wrap(function _callee$(_context) {
|
127
127
|
while (1) switch (_context.prev = _context.next) {
|
@@ -168,7 +168,7 @@ _ExternalEvent = ExternalEvent;
|
|
168
168
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
|
169
169
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
170
170
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
171
|
-
(0, _defineProperty2.default)(ExternalEvent, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
171
|
+
(0, _defineProperty2.default)(ExternalEvent, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
172
172
|
var _response$data;
|
173
173
|
var params,
|
174
174
|
options,
|
@@ -212,7 +212,7 @@ _ExternalEvent = ExternalEvent;
|
|
212
212
|
// Parameters:
|
213
213
|
// id (required) - int64 - External Event ID.
|
214
214
|
(0, _defineProperty2.default)(ExternalEvent, "find", /*#__PURE__*/function () {
|
215
|
-
var _ref5 = (0, _asyncToGenerator2.default)(
|
215
|
+
var _ref5 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
|
216
216
|
var params,
|
217
217
|
options,
|
218
218
|
response,
|
@@ -264,7 +264,7 @@ _ExternalEvent = ExternalEvent;
|
|
264
264
|
// Parameters:
|
265
265
|
// status (required) - string - Status of event.
|
266
266
|
// body (required) - string - Event body
|
267
|
-
(0, _defineProperty2.default)(ExternalEvent, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
267
|
+
(0, _defineProperty2.default)(ExternalEvent, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
268
268
|
var params,
|
269
269
|
options,
|
270
270
|
response,
|
package/lib/models/File.js
CHANGED
@@ -38,7 +38,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
38
38
|
return !!_this.attributes.path;
|
39
39
|
});
|
40
40
|
(0, _defineProperty2.default)(this, "downloadToStream", /*#__PURE__*/function () {
|
41
|
-
var _ref = (0, _asyncToGenerator2.default)(
|
41
|
+
var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(writableStream) {
|
42
42
|
var downloadUri, _require, saveUrlToStream;
|
43
43
|
return _regenerator.default.wrap(function _callee$(_context) {
|
44
44
|
while (1) switch (_context.prev = _context.next) {
|
@@ -68,7 +68,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
68
68
|
return _ref.apply(this, arguments);
|
69
69
|
};
|
70
70
|
}());
|
71
|
-
(0, _defineProperty2.default)(this, "downloadToString", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
71
|
+
(0, _defineProperty2.default)(this, "downloadToString", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
72
72
|
var downloadUri, _require2, saveUrlToString;
|
73
73
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
74
74
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -95,7 +95,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
95
95
|
}, _callee2);
|
96
96
|
})));
|
97
97
|
(0, _defineProperty2.default)(this, "downloadToFile", /*#__PURE__*/function () {
|
98
|
-
var _ref3 = (0, _asyncToGenerator2.default)(
|
98
|
+
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(destinationPath) {
|
99
99
|
var downloadUri, _require3, saveUrlToFile;
|
100
100
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
101
101
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -126,7 +126,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
126
126
|
};
|
127
127
|
}());
|
128
128
|
(0, _defineProperty2.default)(this, "copyTo", /*#__PURE__*/function () {
|
129
|
-
var _ref4 = (0, _asyncToGenerator2.default)(
|
129
|
+
var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(destinationFilePath, options) {
|
130
130
|
var params;
|
131
131
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
132
132
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -146,7 +146,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
146
146
|
};
|
147
147
|
}());
|
148
148
|
(0, _defineProperty2.default)(this, "moveTo", /*#__PURE__*/function () {
|
149
|
-
var _ref5 = (0, _asyncToGenerator2.default)(
|
149
|
+
var _ref5 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(destinationFilePath, options) {
|
150
150
|
var params;
|
151
151
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
152
152
|
while (1) switch (_context5.prev = _context5.next) {
|
@@ -463,7 +463,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
463
463
|
// preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
464
464
|
// with_previews - boolean - Include file preview information?
|
465
465
|
// with_priority_color - boolean - Include file priority color information?
|
466
|
-
(0, _defineProperty2.default)(this, "download", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
466
|
+
(0, _defineProperty2.default)(this, "download", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
467
467
|
var params,
|
468
468
|
response,
|
469
469
|
_args6 = arguments;
|
@@ -531,7 +531,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
531
531
|
// custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
532
532
|
// provided_mtime - string - Modified time of file.
|
533
533
|
// priority_color - string - Priority/Bookmark color of file.
|
534
|
-
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
534
|
+
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
535
535
|
var params,
|
536
536
|
response,
|
537
537
|
_args7 = arguments;
|
@@ -597,7 +597,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
597
597
|
})));
|
598
598
|
// Parameters:
|
599
599
|
// recursive - boolean - If true, will recursively delete folers. Otherwise, will error on non-empty folders.
|
600
|
-
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
600
|
+
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
601
601
|
var params,
|
602
602
|
_args8 = arguments;
|
603
603
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
@@ -655,7 +655,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
655
655
|
// destination (required) - string - Copy destination path.
|
656
656
|
// structure - boolean - Copy structure only?
|
657
657
|
// overwrite - boolean - Overwrite existing file(s) in the destination?
|
658
|
-
(0, _defineProperty2.default)(this, "copy", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
658
|
+
(0, _defineProperty2.default)(this, "copy", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
659
659
|
var params,
|
660
660
|
response,
|
661
661
|
FileAction,
|
@@ -734,7 +734,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
734
734
|
// Parameters:
|
735
735
|
// destination (required) - string - Move destination path.
|
736
736
|
// overwrite - boolean - Overwrite existing file(s) in the destination?
|
737
|
-
(0, _defineProperty2.default)(this, "move", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
737
|
+
(0, _defineProperty2.default)(this, "move", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
738
738
|
var params,
|
739
739
|
response,
|
740
740
|
FileAction,
|
@@ -818,7 +818,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
818
818
|
// restart - int64 - File byte offset to restart from.
|
819
819
|
// size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
820
820
|
// with_rename - boolean - Allow file rename instead of overwrite?
|
821
|
-
(0, _defineProperty2.default)(this, "beginUpload", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
821
|
+
(0, _defineProperty2.default)(this, "beginUpload", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
822
822
|
var _response$data;
|
823
823
|
var params,
|
824
824
|
response,
|
@@ -905,7 +905,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
905
905
|
}
|
906
906
|
}, _callee11);
|
907
907
|
})));
|
908
|
-
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(
|
908
|
+
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
909
909
|
var newObject;
|
910
910
|
return _regenerator.default.wrap(function _callee12$(_context12) {
|
911
911
|
while (1) switch (_context12.prev = _context12.next) {
|
@@ -937,7 +937,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
937
937
|
});
|
938
938
|
_File = File;
|
939
939
|
(0, _defineProperty2.default)(File, "_openUpload", /*#__PURE__*/function () {
|
940
|
-
var _ref15 = (0, _asyncToGenerator2.default)(
|
940
|
+
var _ref15 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13(path, paramsRaw, options) {
|
941
941
|
var params, response, partData, FileUploadPart;
|
942
942
|
return _regenerator.default.wrap(function _callee13$(_context13) {
|
943
943
|
while (1) switch (_context13.prev = _context13.next) {
|
@@ -972,7 +972,7 @@ _File = File;
|
|
972
972
|
};
|
973
973
|
}());
|
974
974
|
(0, _defineProperty2.default)(File, "_continueUpload", /*#__PURE__*/function () {
|
975
|
-
var _ref16 = (0, _asyncToGenerator2.default)(
|
975
|
+
var _ref16 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14(path, partNumber, firstFileUploadPart, options) {
|
976
976
|
var params, response, partData, FileUploadPart;
|
977
977
|
return _regenerator.default.wrap(function _callee14$(_context14) {
|
978
978
|
while (1) switch (_context14.prev = _context14.next) {
|
@@ -1009,7 +1009,7 @@ _File = File;
|
|
1009
1009
|
};
|
1010
1010
|
}());
|
1011
1011
|
(0, _defineProperty2.default)(File, "_completeUpload", /*#__PURE__*/function () {
|
1012
|
-
var _ref17 = (0, _asyncToGenerator2.default)(
|
1012
|
+
var _ref17 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15(firstFileUploadPart, options) {
|
1013
1013
|
var params;
|
1014
1014
|
return _regenerator.default.wrap(function _callee15$(_context15) {
|
1015
1015
|
while (1) switch (_context15.prev = _context15.next) {
|
@@ -1033,7 +1033,7 @@ _File = File;
|
|
1033
1033
|
* @note see File.copy() for list of supported params
|
1034
1034
|
*/
|
1035
1035
|
(0, _defineProperty2.default)(File, "uploadStream", /*#__PURE__*/function () {
|
1036
|
-
var _ref18 = (0, _asyncToGenerator2.default)(
|
1036
|
+
var _ref18 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee18(destinationPath, readableStream, params, optionsRaw) {
|
1037
1037
|
var _ref19, determinePartUploadUriRaw, options, firstFileUploadPart, determinePartUploadUri, file;
|
1038
1038
|
return _regenerator.default.wrap(function _callee18$(_context18) {
|
1039
1039
|
while (1) switch (_context18.prev = _context18.next) {
|
@@ -1062,7 +1062,7 @@ _File = File;
|
|
1062
1062
|
var chunkBuffer = null;
|
1063
1063
|
var streamEnded = false;
|
1064
1064
|
var handleStreamEnd = /*#__PURE__*/function () {
|
1065
|
-
var _ref20 = (0, _asyncToGenerator2.default)(
|
1065
|
+
var _ref20 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
1066
1066
|
var _options$getAgentForU, buffer, nextFileUploadPart, uploadUri, agent, response, createdFile;
|
1067
1067
|
return _regenerator.default.wrap(function _callee16$(_context16) {
|
1068
1068
|
while (1) switch (_context16.prev = _context16.next) {
|
@@ -1122,7 +1122,7 @@ _File = File;
|
|
1122
1122
|
// if a stream has been created based on very large data, it's possible for a chunk to
|
1123
1123
|
// contain the entire file and we could get a single chunk with length >= partsize * 3
|
1124
1124
|
readableStream.on('data', /*#__PURE__*/function () {
|
1125
|
-
var _ref21 = (0, _asyncToGenerator2.default)(
|
1125
|
+
var _ref21 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee17(chunk) {
|
1126
1126
|
var excessLength, _options$getAgentForU2, lengthForEndOfCurrentPart, lastChunkForCurrentPart, chunkBufferAfterCurrentPart, buffer, nextFileUploadPart, uploadUri, agent, uploadPromise, isNextChunkAtLeastOnePart;
|
1127
1127
|
return _regenerator.default.wrap(function _callee17$(_context17) {
|
1128
1128
|
while (1) switch (_context17.prev = _context17.next) {
|
@@ -1243,7 +1243,7 @@ _File = File;
|
|
1243
1243
|
* @note see File.copy() for list of supported params
|
1244
1244
|
*/
|
1245
1245
|
(0, _defineProperty2.default)(File, "uploadData", /*#__PURE__*/function () {
|
1246
|
-
var _ref22 = (0, _asyncToGenerator2.default)(
|
1246
|
+
var _ref22 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee19(destinationPath, data, params, options) {
|
1247
1247
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
1248
1248
|
while (1) switch (_context19.prev = _context19.next) {
|
1249
1249
|
case 0:
|
@@ -1268,7 +1268,7 @@ _File = File;
|
|
1268
1268
|
* @note see File.copy() for list of supported params
|
1269
1269
|
*/
|
1270
1270
|
(0, _defineProperty2.default)(File, "uploadFile", /*#__PURE__*/function () {
|
1271
|
-
var _ref23 = (0, _asyncToGenerator2.default)(
|
1271
|
+
var _ref23 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee20(destinationPath, sourceFilePath, params, options) {
|
1272
1272
|
var _require4, openDiskFileReadStream, stream;
|
1273
1273
|
return _regenerator.default.wrap(function _callee20$(_context20) {
|
1274
1274
|
while (1) switch (_context20.prev = _context20.next) {
|
@@ -1308,7 +1308,7 @@ _File = File;
|
|
1308
1308
|
// structure - string - If copying folder, copy just the structure?
|
1309
1309
|
// with_rename - boolean - Allow file rename instead of overwrite?
|
1310
1310
|
(0, _defineProperty2.default)(File, "create", /*#__PURE__*/function () {
|
1311
|
-
var _ref24 = (0, _asyncToGenerator2.default)(
|
1311
|
+
var _ref24 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee21(path) {
|
1312
1312
|
var params,
|
1313
1313
|
options,
|
1314
1314
|
response,
|
@@ -1412,7 +1412,7 @@ _File = File;
|
|
1412
1412
|
// with_previews - boolean - Include file preview information?
|
1413
1413
|
// with_priority_color - boolean - Include file priority color information?
|
1414
1414
|
(0, _defineProperty2.default)(File, "find", /*#__PURE__*/function () {
|
1415
|
-
var _ref25 = (0, _asyncToGenerator2.default)(
|
1415
|
+
var _ref25 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee22(path) {
|
1416
1416
|
var params,
|
1417
1417
|
options,
|
1418
1418
|
response,
|