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
@@ -123,34 +123,32 @@ var ExternalEvent = /*#__PURE__*/(0, _createClass2.default)(function ExternalEve
|
|
123
123
|
response,
|
124
124
|
_args = arguments;
|
125
125
|
return _regenerator.default.wrap(function _callee$(_context) {
|
126
|
-
while (1) {
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
return
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
return _context.stop();
|
153
|
-
}
|
126
|
+
while (1) switch (_context.prev = _context.next) {
|
127
|
+
case 0:
|
128
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
129
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
130
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
131
|
+
_context.next = 4;
|
132
|
+
break;
|
133
|
+
}
|
134
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
135
|
+
case 4:
|
136
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
137
|
+
_context.next = 6;
|
138
|
+
break;
|
139
|
+
}
|
140
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
141
|
+
case 6:
|
142
|
+
_context.next = 8;
|
143
|
+
return _Api.default.sendRequest("/external_events", 'GET', params, options);
|
144
|
+
case 8:
|
145
|
+
response = _context.sent;
|
146
|
+
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) {
|
147
|
+
return new ExternalEvent(obj, options);
|
148
|
+
})) || []);
|
149
|
+
case 10:
|
150
|
+
case "end":
|
151
|
+
return _context.stop();
|
154
152
|
}
|
155
153
|
}, _callee);
|
156
154
|
})));
|
@@ -166,39 +164,37 @@ var ExternalEvent = /*#__PURE__*/(0, _createClass2.default)(function ExternalEve
|
|
166
164
|
response,
|
167
165
|
_args2 = arguments;
|
168
166
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
169
|
-
while (1) {
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
return _context2.stop();
|
201
|
-
}
|
167
|
+
while (1) switch (_context2.prev = _context2.next) {
|
168
|
+
case 0:
|
169
|
+
params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
170
|
+
options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
|
171
|
+
if ((0, _utils.isObject)(params)) {
|
172
|
+
_context2.next = 4;
|
173
|
+
break;
|
174
|
+
}
|
175
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
176
|
+
case 4:
|
177
|
+
params['id'] = id;
|
178
|
+
if (params['id']) {
|
179
|
+
_context2.next = 7;
|
180
|
+
break;
|
181
|
+
}
|
182
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
183
|
+
case 7:
|
184
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
185
|
+
_context2.next = 9;
|
186
|
+
break;
|
187
|
+
}
|
188
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
189
|
+
case 9:
|
190
|
+
_context2.next = 11;
|
191
|
+
return _Api.default.sendRequest("/external_events/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
192
|
+
case 11:
|
193
|
+
response = _context2.sent;
|
194
|
+
return _context2.abrupt("return", new ExternalEvent(response === null || response === void 0 ? void 0 : response.data, options));
|
195
|
+
case 13:
|
196
|
+
case "end":
|
197
|
+
return _context2.stop();
|
202
198
|
}
|
203
199
|
}, _callee2);
|
204
200
|
}));
|
@@ -217,44 +213,42 @@ var ExternalEvent = /*#__PURE__*/(0, _createClass2.default)(function ExternalEve
|
|
217
213
|
response,
|
218
214
|
_args3 = arguments;
|
219
215
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
220
|
-
while (1) {
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
return _context3.stop();
|
257
|
-
}
|
216
|
+
while (1) switch (_context3.prev = _context3.next) {
|
217
|
+
case 0:
|
218
|
+
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
219
|
+
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
220
|
+
if (params['status']) {
|
221
|
+
_context3.next = 4;
|
222
|
+
break;
|
223
|
+
}
|
224
|
+
throw new errors.MissingParameterError('Parameter missing: status');
|
225
|
+
case 4:
|
226
|
+
if (params['body']) {
|
227
|
+
_context3.next = 6;
|
228
|
+
break;
|
229
|
+
}
|
230
|
+
throw new errors.MissingParameterError('Parameter missing: body');
|
231
|
+
case 6:
|
232
|
+
if (!(params['status'] && !(0, _utils.isString)(params['status']))) {
|
233
|
+
_context3.next = 8;
|
234
|
+
break;
|
235
|
+
}
|
236
|
+
throw new errors.InvalidParameterError("Bad parameter: status must be of type String, received ".concat((0, _utils.getType)(params['status'])));
|
237
|
+
case 8:
|
238
|
+
if (!(params['body'] && !(0, _utils.isString)(params['body']))) {
|
239
|
+
_context3.next = 10;
|
240
|
+
break;
|
241
|
+
}
|
242
|
+
throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params['body'])));
|
243
|
+
case 10:
|
244
|
+
_context3.next = 12;
|
245
|
+
return _Api.default.sendRequest("/external_events", 'POST', params, options);
|
246
|
+
case 12:
|
247
|
+
response = _context3.sent;
|
248
|
+
return _context3.abrupt("return", new ExternalEvent(response === null || response === void 0 ? void 0 : response.data, options));
|
249
|
+
case 14:
|
250
|
+
case "end":
|
251
|
+
return _context3.stop();
|
258
252
|
}
|
259
253
|
}, _callee3);
|
260
254
|
})));
|