files.com 1.2.249 → 1.2.251
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/User.md +4 -1
- package/lib/Api.js +72 -71
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +5 -5
- package/lib/models/ActionNotificationExport.js +38 -38
- package/lib/models/ActionNotificationExportResult.js +14 -14
- package/lib/models/ApiKey.js +100 -100
- package/lib/models/ApiRequestLog.js +8 -8
- package/lib/models/App.js +8 -8
- package/lib/models/As2IncomingMessage.js +10 -10
- package/lib/models/As2OutgoingMessage.js +10 -10
- package/lib/models/As2Partner.js +101 -101
- package/lib/models/As2Station.js +81 -81
- package/lib/models/Automation.js +167 -167
- package/lib/models/AutomationLog.js +8 -8
- package/lib/models/AutomationRun.js +24 -24
- package/lib/models/BandwidthSnapshot.js +8 -8
- package/lib/models/Behavior.js +106 -106
- package/lib/models/Bundle.js +143 -143
- package/lib/models/BundleAction.js +10 -10
- package/lib/models/BundleDownload.js +12 -12
- package/lib/models/BundleNotification.js +69 -69
- package/lib/models/BundleRecipient.js +40 -40
- package/lib/models/BundleRegistration.js +12 -12
- package/lib/models/Clickwrap.js +79 -79
- package/lib/models/DnsRecord.js +8 -8
- package/lib/models/EmailIncomingMessage.js +8 -8
- package/lib/models/EmailLog.js +8 -8
- package/lib/models/ExavaultApiRequestLog.js +8 -8
- package/lib/models/ExternalEvent.js +36 -36
- package/lib/models/File.js +269 -269
- package/lib/models/FileComment.js +70 -70
- package/lib/models/FileCommentReaction.js +34 -34
- package/lib/models/FileMigration.js +10 -10
- package/lib/models/FileMigrationLog.js +8 -8
- package/lib/models/Folder.js +36 -36
- package/lib/models/FormFieldSet.js +71 -71
- package/lib/models/FtpActionLog.js +8 -8
- package/lib/models/GpgKey.js +81 -81
- package/lib/models/Group.js +83 -83
- package/lib/models/GroupUser.js +89 -89
- package/lib/models/History.js +88 -88
- package/lib/models/HistoryExport.js +64 -64
- package/lib/models/HistoryExportResult.js +14 -14
- package/lib/models/InboxRecipient.js +36 -36
- package/lib/models/InboxRegistration.js +10 -10
- package/lib/models/InboxUpload.js +8 -8
- package/lib/models/Invoice.js +18 -18
- package/lib/models/IpAddress.js +32 -32
- package/lib/models/Lock.js +51 -51
- package/lib/models/Message.js +100 -100
- package/lib/models/MessageComment.js +78 -78
- package/lib/models/MessageCommentReaction.js +54 -54
- package/lib/models/MessageReaction.js +54 -54
- package/lib/models/Notification.js +91 -91
- package/lib/models/OutboundConnectionLog.js +8 -8
- package/lib/models/Payment.js +18 -18
- package/lib/models/Permission.js +54 -54
- package/lib/models/Priority.js +14 -14
- package/lib/models/Project.js +70 -70
- package/lib/models/PublicHostingRequestLog.js +8 -8
- package/lib/models/PublicKey.js +78 -78
- package/lib/models/RemoteBandwidthSnapshot.js +8 -8
- package/lib/models/RemoteServer.js +362 -362
- package/lib/models/Request.js +60 -60
- package/lib/models/Restore.js +24 -24
- package/lib/models/Session.js +21 -21
- package/lib/models/SettingsChange.js +8 -8
- package/lib/models/SftpActionLog.js +8 -8
- package/lib/models/SftpHostKey.js +67 -67
- package/lib/models/ShareGroup.js +79 -79
- package/lib/models/SiemHttpDestination.js +158 -158
- package/lib/models/Site.js +150 -150
- package/lib/models/Snapshot.js +85 -85
- package/lib/models/SsoStrategy.js +32 -32
- package/lib/models/Style.js +48 -48
- package/lib/models/SyncLog.js +8 -8
- package/lib/models/UsageDailySnapshot.js +8 -8
- package/lib/models/UsageSnapshot.js +8 -8
- package/lib/models/User.js +223 -215
- package/lib/models/UserCipherUse.js +10 -10
- package/lib/models/UserLifecycleRule.js +92 -92
- package/lib/models/UserRequest.js +56 -56
- package/lib/models/UserSftpClientUse.js +10 -10
- package/lib/models/WebDavActionLog.js +8 -8
- package/lib/models/WebhookTest.js +24 -24
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/User.js +6 -0
package/lib/models/As2Station.js
CHANGED
|
@@ -153,73 +153,73 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
|
153
153
|
var params,
|
|
154
154
|
response,
|
|
155
155
|
_args = arguments;
|
|
156
|
-
return _regenerator.default.wrap(function
|
|
156
|
+
return _regenerator.default.wrap(function (_context) {
|
|
157
157
|
while (1) switch (_context.prev = _context.next) {
|
|
158
158
|
case 0:
|
|
159
159
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
160
160
|
if (_this.attributes.id) {
|
|
161
|
-
_context.next =
|
|
161
|
+
_context.next = 1;
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
164
164
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
165
|
-
case
|
|
165
|
+
case 1:
|
|
166
166
|
if ((0, _utils.isObject)(params)) {
|
|
167
|
-
_context.next =
|
|
167
|
+
_context.next = 2;
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
171
|
-
case
|
|
171
|
+
case 2:
|
|
172
172
|
params.id = _this.attributes.id;
|
|
173
173
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
174
|
-
_context.next =
|
|
174
|
+
_context.next = 3;
|
|
175
175
|
break;
|
|
176
176
|
}
|
|
177
177
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
178
|
-
case
|
|
178
|
+
case 3:
|
|
179
179
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
180
|
-
_context.next =
|
|
180
|
+
_context.next = 4;
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
183
183
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
184
|
-
case
|
|
184
|
+
case 4:
|
|
185
185
|
if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
|
|
186
|
-
_context.next =
|
|
186
|
+
_context.next = 5;
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
|
|
190
|
-
case
|
|
190
|
+
case 5:
|
|
191
191
|
if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
|
|
192
|
-
_context.next =
|
|
192
|
+
_context.next = 6;
|
|
193
193
|
break;
|
|
194
194
|
}
|
|
195
195
|
throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
|
|
196
|
-
case
|
|
196
|
+
case 6:
|
|
197
197
|
if (!(params.private_key_password && !(0, _utils.isString)(params.private_key_password))) {
|
|
198
|
-
_context.next =
|
|
198
|
+
_context.next = 7;
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params.private_key_password)));
|
|
202
|
-
case
|
|
202
|
+
case 7:
|
|
203
203
|
if (params.id) {
|
|
204
|
-
_context.next =
|
|
204
|
+
_context.next = 9;
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
207
|
if (!_this.attributes.id) {
|
|
208
|
-
_context.next =
|
|
208
|
+
_context.next = 8;
|
|
209
209
|
break;
|
|
210
210
|
}
|
|
211
211
|
params.id = _this.id;
|
|
212
|
-
_context.next =
|
|
212
|
+
_context.next = 9;
|
|
213
213
|
break;
|
|
214
|
-
case
|
|
214
|
+
case 8:
|
|
215
215
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
216
|
-
case
|
|
217
|
-
_context.next =
|
|
216
|
+
case 9:
|
|
217
|
+
_context.next = 10;
|
|
218
218
|
return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
219
|
-
case
|
|
219
|
+
case 10:
|
|
220
220
|
response = _context.sent;
|
|
221
221
|
return _context.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
222
|
-
case
|
|
222
|
+
case 11:
|
|
223
223
|
case "end":
|
|
224
224
|
return _context.stop();
|
|
225
225
|
}
|
|
@@ -228,46 +228,46 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
|
228
228
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
229
229
|
var params,
|
|
230
230
|
_args2 = arguments;
|
|
231
|
-
return _regenerator.default.wrap(function
|
|
231
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
232
232
|
while (1) switch (_context2.prev = _context2.next) {
|
|
233
233
|
case 0:
|
|
234
234
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
235
235
|
if (_this.attributes.id) {
|
|
236
|
-
_context2.next =
|
|
236
|
+
_context2.next = 1;
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
240
|
-
case
|
|
240
|
+
case 1:
|
|
241
241
|
if ((0, _utils.isObject)(params)) {
|
|
242
|
-
_context2.next =
|
|
242
|
+
_context2.next = 2;
|
|
243
243
|
break;
|
|
244
244
|
}
|
|
245
245
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
246
|
-
case
|
|
246
|
+
case 2:
|
|
247
247
|
params.id = _this.attributes.id;
|
|
248
248
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
249
|
-
_context2.next =
|
|
249
|
+
_context2.next = 3;
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
253
|
-
case
|
|
253
|
+
case 3:
|
|
254
254
|
if (params.id) {
|
|
255
|
-
_context2.next =
|
|
255
|
+
_context2.next = 5;
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
258
|
if (!_this.attributes.id) {
|
|
259
|
-
_context2.next =
|
|
259
|
+
_context2.next = 4;
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
262
|
params.id = _this.id;
|
|
263
|
-
_context2.next =
|
|
263
|
+
_context2.next = 5;
|
|
264
264
|
break;
|
|
265
|
-
case
|
|
265
|
+
case 4:
|
|
266
266
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
267
|
-
case
|
|
268
|
-
_context2.next =
|
|
267
|
+
case 5:
|
|
268
|
+
_context2.next = 6;
|
|
269
269
|
return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
270
|
-
case
|
|
270
|
+
case 6:
|
|
271
271
|
case "end":
|
|
272
272
|
return _context2.stop();
|
|
273
273
|
}
|
|
@@ -279,27 +279,27 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
|
279
279
|
});
|
|
280
280
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
281
281
|
var _newObject, newObject;
|
|
282
|
-
return _regenerator.default.wrap(function
|
|
282
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
283
283
|
while (1) switch (_context3.prev = _context3.next) {
|
|
284
284
|
case 0:
|
|
285
285
|
if (!_this.attributes.id) {
|
|
286
|
-
_context3.next =
|
|
286
|
+
_context3.next = 2;
|
|
287
287
|
break;
|
|
288
288
|
}
|
|
289
|
-
_context3.next =
|
|
289
|
+
_context3.next = 1;
|
|
290
290
|
return _this.update(_this.attributes);
|
|
291
|
-
case
|
|
291
|
+
case 1:
|
|
292
292
|
_newObject = _context3.sent;
|
|
293
293
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
294
294
|
return _context3.abrupt("return", true);
|
|
295
|
-
case
|
|
296
|
-
_context3.next =
|
|
295
|
+
case 2:
|
|
296
|
+
_context3.next = 3;
|
|
297
297
|
return As2Station.create(_this.attributes, _this.options);
|
|
298
|
-
case
|
|
298
|
+
case 3:
|
|
299
299
|
newObject = _context3.sent;
|
|
300
300
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
301
301
|
return _context3.abrupt("return", true);
|
|
302
|
-
case
|
|
302
|
+
case 4:
|
|
303
303
|
case "end":
|
|
304
304
|
return _context3.stop();
|
|
305
305
|
}
|
|
@@ -329,31 +329,31 @@ _As2Station = As2Station;
|
|
|
329
329
|
options,
|
|
330
330
|
response,
|
|
331
331
|
_args4 = arguments;
|
|
332
|
-
return _regenerator.default.wrap(function
|
|
332
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
333
333
|
while (1) switch (_context4.prev = _context4.next) {
|
|
334
334
|
case 0:
|
|
335
335
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
336
336
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
337
337
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
338
|
-
_context4.next =
|
|
338
|
+
_context4.next = 1;
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
342
|
-
case
|
|
342
|
+
case 1:
|
|
343
343
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
344
|
-
_context4.next =
|
|
344
|
+
_context4.next = 2;
|
|
345
345
|
break;
|
|
346
346
|
}
|
|
347
347
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
348
|
-
case
|
|
349
|
-
_context4.next =
|
|
348
|
+
case 2:
|
|
349
|
+
_context4.next = 3;
|
|
350
350
|
return _Api.default.sendRequest('/as2_stations', 'GET', params, options);
|
|
351
|
-
case
|
|
351
|
+
case 3:
|
|
352
352
|
response = _context4.sent;
|
|
353
353
|
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) {
|
|
354
354
|
return new _As2Station(obj, options);
|
|
355
355
|
})) || []);
|
|
356
|
-
case
|
|
356
|
+
case 4:
|
|
357
357
|
case "end":
|
|
358
358
|
return _context4.stop();
|
|
359
359
|
}
|
|
@@ -372,36 +372,36 @@ _As2Station = As2Station;
|
|
|
372
372
|
options,
|
|
373
373
|
response,
|
|
374
374
|
_args5 = arguments;
|
|
375
|
-
return _regenerator.default.wrap(function
|
|
375
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
376
376
|
while (1) switch (_context5.prev = _context5.next) {
|
|
377
377
|
case 0:
|
|
378
378
|
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
379
379
|
options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
|
|
380
380
|
if ((0, _utils.isObject)(params)) {
|
|
381
|
-
_context5.next =
|
|
381
|
+
_context5.next = 1;
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
384
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
385
|
-
case
|
|
385
|
+
case 1:
|
|
386
386
|
params.id = id;
|
|
387
387
|
if (params.id) {
|
|
388
|
-
_context5.next =
|
|
388
|
+
_context5.next = 2;
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
391
391
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
392
|
-
case
|
|
392
|
+
case 2:
|
|
393
393
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
394
|
-
_context5.next =
|
|
394
|
+
_context5.next = 3;
|
|
395
395
|
break;
|
|
396
396
|
}
|
|
397
397
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
398
|
-
case
|
|
399
|
-
_context5.next =
|
|
398
|
+
case 3:
|
|
399
|
+
_context5.next = 4;
|
|
400
400
|
return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
401
|
-
case
|
|
401
|
+
case 4:
|
|
402
402
|
response = _context5.sent;
|
|
403
403
|
return _context5.abrupt("return", new _As2Station(response === null || response === void 0 ? void 0 : response.data, options));
|
|
404
|
-
case
|
|
404
|
+
case 5:
|
|
405
405
|
case "end":
|
|
406
406
|
return _context5.stop();
|
|
407
407
|
}
|
|
@@ -426,59 +426,59 @@ _As2Station = As2Station;
|
|
|
426
426
|
options,
|
|
427
427
|
response,
|
|
428
428
|
_args6 = arguments;
|
|
429
|
-
return _regenerator.default.wrap(function
|
|
429
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
430
430
|
while (1) switch (_context6.prev = _context6.next) {
|
|
431
431
|
case 0:
|
|
432
432
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
433
433
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
434
434
|
if (params.name) {
|
|
435
|
-
_context6.next =
|
|
435
|
+
_context6.next = 1;
|
|
436
436
|
break;
|
|
437
437
|
}
|
|
438
438
|
throw new errors.MissingParameterError('Parameter missing: name');
|
|
439
|
-
case
|
|
439
|
+
case 1:
|
|
440
440
|
if (params.public_certificate) {
|
|
441
|
-
_context6.next =
|
|
441
|
+
_context6.next = 2;
|
|
442
442
|
break;
|
|
443
443
|
}
|
|
444
444
|
throw new errors.MissingParameterError('Parameter missing: public_certificate');
|
|
445
|
-
case
|
|
445
|
+
case 2:
|
|
446
446
|
if (params.private_key) {
|
|
447
|
-
_context6.next =
|
|
447
|
+
_context6.next = 3;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
throw new errors.MissingParameterError('Parameter missing: private_key');
|
|
451
|
-
case
|
|
451
|
+
case 3:
|
|
452
452
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
453
|
-
_context6.next =
|
|
453
|
+
_context6.next = 4;
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
456
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
457
|
-
case
|
|
457
|
+
case 4:
|
|
458
458
|
if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
|
|
459
|
-
_context6.next =
|
|
459
|
+
_context6.next = 5;
|
|
460
460
|
break;
|
|
461
461
|
}
|
|
462
462
|
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
|
|
463
|
-
case
|
|
463
|
+
case 5:
|
|
464
464
|
if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
|
|
465
|
-
_context6.next =
|
|
465
|
+
_context6.next = 6;
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
468
|
throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
|
|
469
|
-
case
|
|
469
|
+
case 6:
|
|
470
470
|
if (!(params.private_key_password && !(0, _utils.isString)(params.private_key_password))) {
|
|
471
|
-
_context6.next =
|
|
471
|
+
_context6.next = 7;
|
|
472
472
|
break;
|
|
473
473
|
}
|
|
474
474
|
throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params.private_key_password)));
|
|
475
|
-
case
|
|
476
|
-
_context6.next =
|
|
475
|
+
case 7:
|
|
476
|
+
_context6.next = 8;
|
|
477
477
|
return _Api.default.sendRequest('/as2_stations', 'POST', params, options);
|
|
478
|
-
case
|
|
478
|
+
case 8:
|
|
479
479
|
response = _context6.sent;
|
|
480
480
|
return _context6.abrupt("return", new _As2Station(response === null || response === void 0 ? void 0 : response.data, options));
|
|
481
|
-
case
|
|
481
|
+
case 9:
|
|
482
482
|
case "end":
|
|
483
483
|
return _context6.stop();
|
|
484
484
|
}
|