files.com 1.0.235 → 1.0.237
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/Bundle.md +9 -2
- package/docs/models/BundleNotification.md +35 -0
- package/docs/models/BundleRegistration.md +3 -1
- package/docs/models/InboxRegistration.md +3 -1
- package/docs/models/Site.md +2 -0
- package/lib/Api.js +153 -159
- package/lib/isomorphic/File.node.js +24 -28
- package/lib/models/ActionNotificationExport.js +97 -101
- package/lib/models/ActionNotificationExportResult.js +44 -46
- package/lib/models/ActionWebhookFailure.js +42 -44
- package/lib/models/ApiKey.js +271 -287
- package/lib/models/App.js +26 -28
- package/lib/models/As2IncomingMessage.js +32 -34
- package/lib/models/As2OutgoingMessage.js +32 -34
- package/lib/models/As2Partner.js +231 -241
- package/lib/models/As2Station.js +219 -229
- package/lib/models/Automation.js +333 -343
- package/lib/models/AutomationRun.js +75 -79
- package/lib/models/BandwidthSnapshot.js +26 -28
- package/lib/models/Behavior.js +323 -337
- package/lib/models/Bundle.js +381 -387
- package/lib/models/BundleDownload.js +38 -40
- package/lib/models/BundleNotification.js +223 -173
- package/lib/models/BundleRecipient.js +104 -108
- package/lib/models/BundleRegistration.js +41 -40
- package/lib/models/Clickwrap.js +213 -223
- package/lib/models/DnsRecord.js +26 -28
- package/lib/models/ExternalEvent.js +93 -99
- package/lib/models/File.js +726 -766
- package/lib/models/FileComment.js +180 -188
- package/lib/models/FileCommentReaction.js +84 -88
- package/lib/models/FileMigration.js +31 -33
- package/lib/models/Folder.js +94 -98
- package/lib/models/FormFieldSet.js +189 -199
- package/lib/models/Group.js +207 -217
- package/lib/models/GroupUser.js +230 -238
- package/lib/models/History.js +266 -276
- package/lib/models/HistoryExport.js +175 -179
- package/lib/models/HistoryExportResult.js +44 -46
- package/lib/models/InboxRecipient.js +104 -108
- package/lib/models/InboxRegistration.js +35 -34
- package/lib/models/InboxUpload.js +38 -40
- package/lib/models/Invoice.js +57 -61
- package/lib/models/IpAddress.js +78 -84
- package/lib/models/Lock.js +148 -154
- package/lib/models/Message.js +267 -277
- package/lib/models/MessageComment.js +207 -217
- package/lib/models/MessageCommentReaction.js +147 -155
- package/lib/models/MessageReaction.js +147 -155
- package/lib/models/Notification.js +255 -265
- package/lib/models/Payment.js +57 -61
- package/lib/models/Permission.js +128 -134
- package/lib/models/Priority.js +45 -47
- package/lib/models/Project.js +183 -193
- package/lib/models/PublicKey.js +207 -217
- package/lib/models/RemoteBandwidthSnapshot.js +26 -28
- package/lib/models/RemoteServer.js +805 -819
- package/lib/models/Request.js +166 -174
- package/lib/models/Session.js +47 -51
- package/lib/models/SettingsChange.js +26 -28
- package/lib/models/SftpHostKey.js +177 -187
- package/lib/models/Site.js +415 -418
- package/lib/models/SsoStrategy.js +99 -105
- package/lib/models/Style.js +127 -133
- package/lib/models/UsageDailySnapshot.js +26 -28
- package/lib/models/UsageSnapshot.js +26 -28
- package/lib/models/User.js +587 -603
- package/lib/models/UserCipherUse.js +32 -34
- package/lib/models/UserRequest.js +147 -155
- package/lib/models/WebhookTest.js +54 -56
- package/package.json +1 -1
- package/src/models/Bundle.js +10 -1
- package/src/models/BundleNotification.js +39 -1
- package/src/models/BundleRegistration.js +3 -0
- package/src/models/InboxRegistration.js +3 -0
- package/src/models/Site.js +3 -0
@@ -69,52 +69,50 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
|
|
69
69
|
response,
|
70
70
|
_args = arguments;
|
71
71
|
return _regenerator.default.wrap(function _callee$(_context) {
|
72
|
-
while (1) {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
return
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
return _context.stop();
|
117
|
-
}
|
72
|
+
while (1) switch (_context.prev = _context.next) {
|
73
|
+
case 0:
|
74
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
75
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
76
|
+
if (params['automation_id']) {
|
77
|
+
_context.next = 4;
|
78
|
+
break;
|
79
|
+
}
|
80
|
+
throw new errors.MissingParameterError('Parameter missing: automation_id');
|
81
|
+
case 4:
|
82
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
83
|
+
_context.next = 6;
|
84
|
+
break;
|
85
|
+
}
|
86
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
87
|
+
case 6:
|
88
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
89
|
+
_context.next = 8;
|
90
|
+
break;
|
91
|
+
}
|
92
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
93
|
+
case 8:
|
94
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
95
|
+
_context.next = 10;
|
96
|
+
break;
|
97
|
+
}
|
98
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
99
|
+
case 10:
|
100
|
+
if (!(params['automation_id'] && !(0, _utils.isInt)(params['automation_id']))) {
|
101
|
+
_context.next = 12;
|
102
|
+
break;
|
103
|
+
}
|
104
|
+
throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params['automation_id'])));
|
105
|
+
case 12:
|
106
|
+
_context.next = 14;
|
107
|
+
return _Api.default.sendRequest("/automation_runs", 'GET', params, options);
|
108
|
+
case 14:
|
109
|
+
response = _context.sent;
|
110
|
+
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
111
|
+
return new AutomationRun(obj, options);
|
112
|
+
})) || []);
|
113
|
+
case 16:
|
114
|
+
case "end":
|
115
|
+
return _context.stop();
|
118
116
|
}
|
119
117
|
}, _callee);
|
120
118
|
})));
|
@@ -130,39 +128,37 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
|
|
130
128
|
response,
|
131
129
|
_args2 = arguments;
|
132
130
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
133
|
-
while (1) {
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
return _context2.stop();
|
165
|
-
}
|
131
|
+
while (1) switch (_context2.prev = _context2.next) {
|
132
|
+
case 0:
|
133
|
+
params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
134
|
+
options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
|
135
|
+
if ((0, _utils.isObject)(params)) {
|
136
|
+
_context2.next = 4;
|
137
|
+
break;
|
138
|
+
}
|
139
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
140
|
+
case 4:
|
141
|
+
params['id'] = id;
|
142
|
+
if (params['id']) {
|
143
|
+
_context2.next = 7;
|
144
|
+
break;
|
145
|
+
}
|
146
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
147
|
+
case 7:
|
148
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
149
|
+
_context2.next = 9;
|
150
|
+
break;
|
151
|
+
}
|
152
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
153
|
+
case 9:
|
154
|
+
_context2.next = 11;
|
155
|
+
return _Api.default.sendRequest("/automation_runs/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
156
|
+
case 11:
|
157
|
+
response = _context2.sent;
|
158
|
+
return _context2.abrupt("return", new AutomationRun(response === null || response === void 0 ? void 0 : response.data, options));
|
159
|
+
case 13:
|
160
|
+
case "end":
|
161
|
+
return _context2.stop();
|
166
162
|
}
|
167
163
|
}, _callee2);
|
168
164
|
}));
|
@@ -78,34 +78,32 @@ var BandwidthSnapshot = /*#__PURE__*/(0, _createClass2.default)(function Bandwid
|
|
78
78
|
response,
|
79
79
|
_args = arguments;
|
80
80
|
return _regenerator.default.wrap(function _callee$(_context) {
|
81
|
-
while (1) {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
return
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
return _context.stop();
|
108
|
-
}
|
81
|
+
while (1) switch (_context.prev = _context.next) {
|
82
|
+
case 0:
|
83
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
84
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
85
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
86
|
+
_context.next = 4;
|
87
|
+
break;
|
88
|
+
}
|
89
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
90
|
+
case 4:
|
91
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
92
|
+
_context.next = 6;
|
93
|
+
break;
|
94
|
+
}
|
95
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
96
|
+
case 6:
|
97
|
+
_context.next = 8;
|
98
|
+
return _Api.default.sendRequest("/bandwidth_snapshots", 'GET', params, options);
|
99
|
+
case 8:
|
100
|
+
response = _context.sent;
|
101
|
+
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
102
|
+
return new BandwidthSnapshot(obj, options);
|
103
|
+
})) || []);
|
104
|
+
case 10:
|
105
|
+
case "end":
|
106
|
+
return _context.stop();
|
109
107
|
}
|
110
108
|
}, _callee);
|
111
109
|
})));
|