files.com 1.0.235 → 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/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
@@ -78,39 +78,37 @@ var FileMigration = /*#__PURE__*/(0, _createClass2.default)(function FileMigrati
|
|
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
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
return _context.stop();
|
113
|
-
}
|
81
|
+
while (1) switch (_context.prev = _context.next) {
|
82
|
+
case 0:
|
83
|
+
params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
84
|
+
options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
85
|
+
if ((0, _utils.isObject)(params)) {
|
86
|
+
_context.next = 4;
|
87
|
+
break;
|
88
|
+
}
|
89
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
90
|
+
case 4:
|
91
|
+
params['id'] = id;
|
92
|
+
if (params['id']) {
|
93
|
+
_context.next = 7;
|
94
|
+
break;
|
95
|
+
}
|
96
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
97
|
+
case 7:
|
98
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
99
|
+
_context.next = 9;
|
100
|
+
break;
|
101
|
+
}
|
102
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
103
|
+
case 9:
|
104
|
+
_context.next = 11;
|
105
|
+
return _Api.default.sendRequest("/file_migrations/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
106
|
+
case 11:
|
107
|
+
response = _context.sent;
|
108
|
+
return _context.abrupt("return", new FileMigration(response === null || response === void 0 ? void 0 : response.data, options));
|
109
|
+
case 13:
|
110
|
+
case "end":
|
111
|
+
return _context.stop();
|
114
112
|
}
|
115
113
|
}, _callee);
|
116
114
|
}));
|
package/lib/models/Folder.js
CHANGED
@@ -169,71 +169,69 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
169
169
|
response,
|
170
170
|
_args = arguments;
|
171
171
|
return _regenerator.default.wrap(function _callee$(_context) {
|
172
|
-
while (1) {
|
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
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
return
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
return _context.stop();
|
236
|
-
}
|
172
|
+
while (1) switch (_context.prev = _context.next) {
|
173
|
+
case 0:
|
174
|
+
params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
175
|
+
options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
176
|
+
if ((0, _utils.isObject)(params)) {
|
177
|
+
_context.next = 4;
|
178
|
+
break;
|
179
|
+
}
|
180
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
181
|
+
case 4:
|
182
|
+
params['path'] = path;
|
183
|
+
if (params['path']) {
|
184
|
+
_context.next = 7;
|
185
|
+
break;
|
186
|
+
}
|
187
|
+
throw new errors.MissingParameterError('Parameter missing: path');
|
188
|
+
case 7:
|
189
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
190
|
+
_context.next = 9;
|
191
|
+
break;
|
192
|
+
}
|
193
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
194
|
+
case 9:
|
195
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
196
|
+
_context.next = 11;
|
197
|
+
break;
|
198
|
+
}
|
199
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
200
|
+
case 11:
|
201
|
+
if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
|
202
|
+
_context.next = 13;
|
203
|
+
break;
|
204
|
+
}
|
205
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
|
206
|
+
case 13:
|
207
|
+
if (!(params['filter'] && !(0, _utils.isString)(params['filter']))) {
|
208
|
+
_context.next = 15;
|
209
|
+
break;
|
210
|
+
}
|
211
|
+
throw new errors.InvalidParameterError("Bad parameter: filter must be of type String, received ".concat((0, _utils.getType)(params['filter'])));
|
212
|
+
case 15:
|
213
|
+
if (!(params['preview_size'] && !(0, _utils.isString)(params['preview_size']))) {
|
214
|
+
_context.next = 17;
|
215
|
+
break;
|
216
|
+
}
|
217
|
+
throw new errors.InvalidParameterError("Bad parameter: preview_size must be of type String, received ".concat((0, _utils.getType)(params['preview_size'])));
|
218
|
+
case 17:
|
219
|
+
if (!(params['search'] && !(0, _utils.isString)(params['search']))) {
|
220
|
+
_context.next = 19;
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params['search'])));
|
224
|
+
case 19:
|
225
|
+
_context.next = 21;
|
226
|
+
return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
|
227
|
+
case 21:
|
228
|
+
response = _context.sent;
|
229
|
+
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) {
|
230
|
+
return new _File.default(obj, options);
|
231
|
+
})) || []);
|
232
|
+
case 23:
|
233
|
+
case "end":
|
234
|
+
return _context.stop();
|
237
235
|
}
|
238
236
|
}, _callee);
|
239
237
|
}));
|
@@ -248,39 +246,37 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
248
246
|
response,
|
249
247
|
_args2 = arguments;
|
250
248
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
251
|
-
while (1) {
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
return _context2.stop();
|
283
|
-
}
|
249
|
+
while (1) switch (_context2.prev = _context2.next) {
|
250
|
+
case 0:
|
251
|
+
params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
252
|
+
options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
|
253
|
+
if ((0, _utils.isObject)(params)) {
|
254
|
+
_context2.next = 4;
|
255
|
+
break;
|
256
|
+
}
|
257
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
258
|
+
case 4:
|
259
|
+
params['path'] = path;
|
260
|
+
if (params['path']) {
|
261
|
+
_context2.next = 7;
|
262
|
+
break;
|
263
|
+
}
|
264
|
+
throw new errors.MissingParameterError('Parameter missing: path');
|
265
|
+
case 7:
|
266
|
+
if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
|
267
|
+
_context2.next = 9;
|
268
|
+
break;
|
269
|
+
}
|
270
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
|
271
|
+
case 9:
|
272
|
+
_context2.next = 11;
|
273
|
+
return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params['path'])), 'POST', params, options);
|
274
|
+
case 11:
|
275
|
+
response = _context2.sent;
|
276
|
+
return _context2.abrupt("return", new _File.default(response === null || response === void 0 ? void 0 : response.data, options));
|
277
|
+
case 13:
|
278
|
+
case "end":
|
279
|
+
return _context2.stop();
|
284
280
|
}
|
285
281
|
}, _callee2);
|
286
282
|
}));
|