files.com 1.0.236 → 1.0.237
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/BundleNotification.md +35 -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 +375 -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 +38 -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 +32 -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 +412 -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/BundleNotification.js +39 -1
package/lib/models/As2Partner.js
CHANGED
@@ -114,76 +114,74 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
114
114
|
response,
|
115
115
|
_args = arguments;
|
116
116
|
return _regenerator.default.wrap(function _callee$(_context) {
|
117
|
-
while (1) {
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|
-
if (params['id']) {
|
165
|
-
_context.next = 22;
|
166
|
-
break;
|
167
|
-
}
|
168
|
-
if (!_this.attributes.id) {
|
169
|
-
_context.next = 21;
|
170
|
-
break;
|
171
|
-
}
|
172
|
-
params['id'] = _this.id;
|
117
|
+
while (1) switch (_context.prev = _context.next) {
|
118
|
+
case 0:
|
119
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
120
|
+
if (_this.attributes.id) {
|
121
|
+
_context.next = 3;
|
122
|
+
break;
|
123
|
+
}
|
124
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
125
|
+
case 3:
|
126
|
+
if ((0, _utils.isObject)(params)) {
|
127
|
+
_context.next = 5;
|
128
|
+
break;
|
129
|
+
}
|
130
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
131
|
+
case 5:
|
132
|
+
params.id = _this.attributes.id;
|
133
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
134
|
+
_context.next = 8;
|
135
|
+
break;
|
136
|
+
}
|
137
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
138
|
+
case 8:
|
139
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
140
|
+
_context.next = 10;
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
|
144
|
+
case 10:
|
145
|
+
if (!(params['uri'] && !(0, _utils.isString)(params['uri']))) {
|
146
|
+
_context.next = 12;
|
147
|
+
break;
|
148
|
+
}
|
149
|
+
throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(uri)));
|
150
|
+
case 12:
|
151
|
+
if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
|
152
|
+
_context.next = 14;
|
153
|
+
break;
|
154
|
+
}
|
155
|
+
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
|
156
|
+
case 14:
|
157
|
+
if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
|
158
|
+
_context.next = 16;
|
159
|
+
break;
|
160
|
+
}
|
161
|
+
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(public_certificate)));
|
162
|
+
case 16:
|
163
|
+
if (params['id']) {
|
173
164
|
_context.next = 22;
|
174
165
|
break;
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
166
|
+
}
|
167
|
+
if (!_this.attributes.id) {
|
168
|
+
_context.next = 21;
|
169
|
+
break;
|
170
|
+
}
|
171
|
+
params['id'] = _this.id;
|
172
|
+
_context.next = 22;
|
173
|
+
break;
|
174
|
+
case 21:
|
175
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
176
|
+
case 22:
|
177
|
+
_context.next = 24;
|
178
|
+
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
179
|
+
case 24:
|
180
|
+
response = _context.sent;
|
181
|
+
return _context.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
182
|
+
case 26:
|
183
|
+
case "end":
|
184
|
+
return _context.stop();
|
187
185
|
}
|
188
186
|
}, _callee);
|
189
187
|
})));
|
@@ -192,52 +190,50 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
192
190
|
response,
|
193
191
|
_args2 = arguments;
|
194
192
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
195
|
-
while (1) {
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
if (params['id']) {
|
219
|
-
_context2.next = 14;
|
220
|
-
break;
|
221
|
-
}
|
222
|
-
if (!_this.attributes.id) {
|
223
|
-
_context2.next = 13;
|
224
|
-
break;
|
225
|
-
}
|
226
|
-
params['id'] = _this.id;
|
193
|
+
while (1) switch (_context2.prev = _context2.next) {
|
194
|
+
case 0:
|
195
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
196
|
+
if (_this.attributes.id) {
|
197
|
+
_context2.next = 3;
|
198
|
+
break;
|
199
|
+
}
|
200
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
201
|
+
case 3:
|
202
|
+
if ((0, _utils.isObject)(params)) {
|
203
|
+
_context2.next = 5;
|
204
|
+
break;
|
205
|
+
}
|
206
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
207
|
+
case 5:
|
208
|
+
params.id = _this.attributes.id;
|
209
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
210
|
+
_context2.next = 8;
|
211
|
+
break;
|
212
|
+
}
|
213
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
214
|
+
case 8:
|
215
|
+
if (params['id']) {
|
227
216
|
_context2.next = 14;
|
228
217
|
break;
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
218
|
+
}
|
219
|
+
if (!_this.attributes.id) {
|
220
|
+
_context2.next = 13;
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
params['id'] = _this.id;
|
224
|
+
_context2.next = 14;
|
225
|
+
break;
|
226
|
+
case 13:
|
227
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
228
|
+
case 14:
|
229
|
+
_context2.next = 16;
|
230
|
+
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
231
|
+
case 16:
|
232
|
+
response = _context2.sent;
|
233
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
234
|
+
case 18:
|
235
|
+
case "end":
|
236
|
+
return _context2.stop();
|
241
237
|
}
|
242
238
|
}, _callee2);
|
243
239
|
})));
|
@@ -274,34 +270,32 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
274
270
|
response,
|
275
271
|
_args3 = arguments;
|
276
272
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
277
|
-
while (1) {
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
return
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
return _context3.stop();
|
304
|
-
}
|
273
|
+
while (1) switch (_context3.prev = _context3.next) {
|
274
|
+
case 0:
|
275
|
+
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
276
|
+
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
277
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
278
|
+
_context3.next = 4;
|
279
|
+
break;
|
280
|
+
}
|
281
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
282
|
+
case 4:
|
283
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
284
|
+
_context3.next = 6;
|
285
|
+
break;
|
286
|
+
}
|
287
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
288
|
+
case 6:
|
289
|
+
_context3.next = 8;
|
290
|
+
return _Api.default.sendRequest("/as2_partners", 'GET', params, options);
|
291
|
+
case 8:
|
292
|
+
response = _context3.sent;
|
293
|
+
return _context3.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) {
|
294
|
+
return new As2Partner(obj, options);
|
295
|
+
})) || []);
|
296
|
+
case 10:
|
297
|
+
case "end":
|
298
|
+
return _context3.stop();
|
305
299
|
}
|
306
300
|
}, _callee3);
|
307
301
|
})));
|
@@ -317,39 +311,37 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
317
311
|
response,
|
318
312
|
_args4 = arguments;
|
319
313
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
320
|
-
while (1) {
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
return _context4.stop();
|
352
|
-
}
|
314
|
+
while (1) switch (_context4.prev = _context4.next) {
|
315
|
+
case 0:
|
316
|
+
params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
317
|
+
options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
|
318
|
+
if ((0, _utils.isObject)(params)) {
|
319
|
+
_context4.next = 4;
|
320
|
+
break;
|
321
|
+
}
|
322
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
323
|
+
case 4:
|
324
|
+
params['id'] = id;
|
325
|
+
if (params['id']) {
|
326
|
+
_context4.next = 7;
|
327
|
+
break;
|
328
|
+
}
|
329
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
330
|
+
case 7:
|
331
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
332
|
+
_context4.next = 9;
|
333
|
+
break;
|
334
|
+
}
|
335
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
336
|
+
case 9:
|
337
|
+
_context4.next = 11;
|
338
|
+
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
339
|
+
case 11:
|
340
|
+
response = _context4.sent;
|
341
|
+
return _context4.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
|
342
|
+
case 13:
|
343
|
+
case "end":
|
344
|
+
return _context4.stop();
|
353
345
|
}
|
354
346
|
}, _callee4);
|
355
347
|
}));
|
@@ -368,74 +360,72 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
368
360
|
response,
|
369
361
|
_args5 = arguments;
|
370
362
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
371
|
-
while (1) {
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
return _context5.stop();
|
438
|
-
}
|
363
|
+
while (1) switch (_context5.prev = _context5.next) {
|
364
|
+
case 0:
|
365
|
+
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
366
|
+
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
367
|
+
if (params['name']) {
|
368
|
+
_context5.next = 4;
|
369
|
+
break;
|
370
|
+
}
|
371
|
+
throw new errors.MissingParameterError('Parameter missing: name');
|
372
|
+
case 4:
|
373
|
+
if (params['uri']) {
|
374
|
+
_context5.next = 6;
|
375
|
+
break;
|
376
|
+
}
|
377
|
+
throw new errors.MissingParameterError('Parameter missing: uri');
|
378
|
+
case 6:
|
379
|
+
if (params['public_certificate']) {
|
380
|
+
_context5.next = 8;
|
381
|
+
break;
|
382
|
+
}
|
383
|
+
throw new errors.MissingParameterError('Parameter missing: public_certificate');
|
384
|
+
case 8:
|
385
|
+
if (params['as2_station_id']) {
|
386
|
+
_context5.next = 10;
|
387
|
+
break;
|
388
|
+
}
|
389
|
+
throw new errors.MissingParameterError('Parameter missing: as2_station_id');
|
390
|
+
case 10:
|
391
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
392
|
+
_context5.next = 12;
|
393
|
+
break;
|
394
|
+
}
|
395
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
|
396
|
+
case 12:
|
397
|
+
if (!(params['uri'] && !(0, _utils.isString)(params['uri']))) {
|
398
|
+
_context5.next = 14;
|
399
|
+
break;
|
400
|
+
}
|
401
|
+
throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params['uri'])));
|
402
|
+
case 14:
|
403
|
+
if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
|
404
|
+
_context5.next = 16;
|
405
|
+
break;
|
406
|
+
}
|
407
|
+
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params['public_certificate'])));
|
408
|
+
case 16:
|
409
|
+
if (!(params['as2_station_id'] && !(0, _utils.isInt)(params['as2_station_id']))) {
|
410
|
+
_context5.next = 18;
|
411
|
+
break;
|
412
|
+
}
|
413
|
+
throw new errors.InvalidParameterError("Bad parameter: as2_station_id must be of type Int, received ".concat((0, _utils.getType)(params['as2_station_id'])));
|
414
|
+
case 18:
|
415
|
+
if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
|
416
|
+
_context5.next = 20;
|
417
|
+
break;
|
418
|
+
}
|
419
|
+
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params['server_certificate'])));
|
420
|
+
case 20:
|
421
|
+
_context5.next = 22;
|
422
|
+
return _Api.default.sendRequest("/as2_partners", 'POST', params, options);
|
423
|
+
case 22:
|
424
|
+
response = _context5.sent;
|
425
|
+
return _context5.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
|
426
|
+
case 24:
|
427
|
+
case "end":
|
428
|
+
return _context5.stop();
|
439
429
|
}
|
440
430
|
}, _callee5);
|
441
431
|
})));
|