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
@@ -66,64 +66,62 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
|
|
66
66
|
response,
|
67
67
|
_args = arguments;
|
68
68
|
return _regenerator.default.wrap(function _callee$(_context) {
|
69
|
-
while (1) {
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
-
if (params['id']) {
|
105
|
-
_context.next = 18;
|
106
|
-
break;
|
107
|
-
}
|
108
|
-
if (!_this.attributes.id) {
|
109
|
-
_context.next = 17;
|
110
|
-
break;
|
111
|
-
}
|
112
|
-
params['id'] = _this.id;
|
69
|
+
while (1) switch (_context.prev = _context.next) {
|
70
|
+
case 0:
|
71
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
72
|
+
if (_this.attributes.id) {
|
73
|
+
_context.next = 3;
|
74
|
+
break;
|
75
|
+
}
|
76
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
77
|
+
case 3:
|
78
|
+
if ((0, _utils.isObject)(params)) {
|
79
|
+
_context.next = 5;
|
80
|
+
break;
|
81
|
+
}
|
82
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
83
|
+
case 5:
|
84
|
+
params.id = _this.attributes.id;
|
85
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
86
|
+
_context.next = 8;
|
87
|
+
break;
|
88
|
+
}
|
89
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
90
|
+
case 8:
|
91
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
92
|
+
_context.next = 10;
|
93
|
+
break;
|
94
|
+
}
|
95
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
|
96
|
+
case 10:
|
97
|
+
if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
|
98
|
+
_context.next = 12;
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
|
102
|
+
case 12:
|
103
|
+
if (params['id']) {
|
113
104
|
_context.next = 18;
|
114
105
|
break;
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
106
|
+
}
|
107
|
+
if (!_this.attributes.id) {
|
108
|
+
_context.next = 17;
|
109
|
+
break;
|
110
|
+
}
|
111
|
+
params['id'] = _this.id;
|
112
|
+
_context.next = 18;
|
113
|
+
break;
|
114
|
+
case 17:
|
115
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
116
|
+
case 18:
|
117
|
+
_context.next = 20;
|
118
|
+
return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
119
|
+
case 20:
|
120
|
+
response = _context.sent;
|
121
|
+
return _context.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
122
|
+
case 22:
|
123
|
+
case "end":
|
124
|
+
return _context.stop();
|
127
125
|
}
|
128
126
|
}, _callee);
|
129
127
|
})));
|
@@ -132,52 +130,50 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
|
|
132
130
|
response,
|
133
131
|
_args2 = arguments;
|
134
132
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
135
|
-
while (1) {
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
if (params['id']) {
|
159
|
-
_context2.next = 14;
|
160
|
-
break;
|
161
|
-
}
|
162
|
-
if (!_this.attributes.id) {
|
163
|
-
_context2.next = 13;
|
164
|
-
break;
|
165
|
-
}
|
166
|
-
params['id'] = _this.id;
|
133
|
+
while (1) switch (_context2.prev = _context2.next) {
|
134
|
+
case 0:
|
135
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
136
|
+
if (_this.attributes.id) {
|
137
|
+
_context2.next = 3;
|
138
|
+
break;
|
139
|
+
}
|
140
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
141
|
+
case 3:
|
142
|
+
if ((0, _utils.isObject)(params)) {
|
143
|
+
_context2.next = 5;
|
144
|
+
break;
|
145
|
+
}
|
146
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
147
|
+
case 5:
|
148
|
+
params.id = _this.attributes.id;
|
149
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
150
|
+
_context2.next = 8;
|
151
|
+
break;
|
152
|
+
}
|
153
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
154
|
+
case 8:
|
155
|
+
if (params['id']) {
|
167
156
|
_context2.next = 14;
|
168
157
|
break;
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
158
|
+
}
|
159
|
+
if (!_this.attributes.id) {
|
160
|
+
_context2.next = 13;
|
161
|
+
break;
|
162
|
+
}
|
163
|
+
params['id'] = _this.id;
|
164
|
+
_context2.next = 14;
|
165
|
+
break;
|
166
|
+
case 13:
|
167
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
168
|
+
case 14:
|
169
|
+
_context2.next = 16;
|
170
|
+
return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
171
|
+
case 16:
|
172
|
+
response = _context2.sent;
|
173
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
174
|
+
case 18:
|
175
|
+
case "end":
|
176
|
+
return _context2.stop();
|
181
177
|
}
|
182
178
|
}, _callee2);
|
183
179
|
})));
|
@@ -214,34 +210,32 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
|
|
214
210
|
response,
|
215
211
|
_args3 = arguments;
|
216
212
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
217
|
-
while (1) {
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
return
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
return _context3.stop();
|
244
|
-
}
|
213
|
+
while (1) switch (_context3.prev = _context3.next) {
|
214
|
+
case 0:
|
215
|
+
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
216
|
+
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
217
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
218
|
+
_context3.next = 4;
|
219
|
+
break;
|
220
|
+
}
|
221
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
222
|
+
case 4:
|
223
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
224
|
+
_context3.next = 6;
|
225
|
+
break;
|
226
|
+
}
|
227
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
228
|
+
case 6:
|
229
|
+
_context3.next = 8;
|
230
|
+
return _Api.default.sendRequest("/sftp_host_keys", 'GET', params, options);
|
231
|
+
case 8:
|
232
|
+
response = _context3.sent;
|
233
|
+
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) {
|
234
|
+
return new SftpHostKey(obj, options);
|
235
|
+
})) || []);
|
236
|
+
case 10:
|
237
|
+
case "end":
|
238
|
+
return _context3.stop();
|
245
239
|
}
|
246
240
|
}, _callee3);
|
247
241
|
})));
|
@@ -257,39 +251,37 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
|
|
257
251
|
response,
|
258
252
|
_args4 = arguments;
|
259
253
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
260
|
-
while (1) {
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
return _context4.stop();
|
292
|
-
}
|
254
|
+
while (1) switch (_context4.prev = _context4.next) {
|
255
|
+
case 0:
|
256
|
+
params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
257
|
+
options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
|
258
|
+
if ((0, _utils.isObject)(params)) {
|
259
|
+
_context4.next = 4;
|
260
|
+
break;
|
261
|
+
}
|
262
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
263
|
+
case 4:
|
264
|
+
params['id'] = id;
|
265
|
+
if (params['id']) {
|
266
|
+
_context4.next = 7;
|
267
|
+
break;
|
268
|
+
}
|
269
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
270
|
+
case 7:
|
271
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
272
|
+
_context4.next = 9;
|
273
|
+
break;
|
274
|
+
}
|
275
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
276
|
+
case 9:
|
277
|
+
_context4.next = 11;
|
278
|
+
return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
279
|
+
case 11:
|
280
|
+
response = _context4.sent;
|
281
|
+
return _context4.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, options));
|
282
|
+
case 13:
|
283
|
+
case "end":
|
284
|
+
return _context4.stop();
|
293
285
|
}
|
294
286
|
}, _callee4);
|
295
287
|
}));
|
@@ -308,32 +300,30 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
|
|
308
300
|
response,
|
309
301
|
_args5 = arguments;
|
310
302
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
311
|
-
while (1) {
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
return _context5.stop();
|
336
|
-
}
|
303
|
+
while (1) switch (_context5.prev = _context5.next) {
|
304
|
+
case 0:
|
305
|
+
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
306
|
+
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
307
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
308
|
+
_context5.next = 4;
|
309
|
+
break;
|
310
|
+
}
|
311
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
|
312
|
+
case 4:
|
313
|
+
if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
|
314
|
+
_context5.next = 6;
|
315
|
+
break;
|
316
|
+
}
|
317
|
+
throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params['private_key'])));
|
318
|
+
case 6:
|
319
|
+
_context5.next = 8;
|
320
|
+
return _Api.default.sendRequest("/sftp_host_keys", 'POST', params, options);
|
321
|
+
case 8:
|
322
|
+
response = _context5.sent;
|
323
|
+
return _context5.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, options));
|
324
|
+
case 10:
|
325
|
+
case "end":
|
326
|
+
return _context5.stop();
|
337
327
|
}
|
338
328
|
}, _callee5);
|
339
329
|
})));
|