files.com 1.0.236 → 1.0.238
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/docs/models/BundleNotification.md +35 -0
- package/lib/Api.js +153 -159
- package/lib/Errors.js +680 -666
- 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/Errors.js +1 -0
- package/src/models/BundleNotification.js +39 -1
package/lib/models/Project.js
CHANGED
@@ -48,72 +48,70 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
48
48
|
response,
|
49
49
|
_args = arguments;
|
50
50
|
return _regenerator.default.wrap(function _callee$(_context) {
|
51
|
-
while (1) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
if (params['id']) {
|
81
|
-
_context.next = 16;
|
82
|
-
break;
|
83
|
-
}
|
84
|
-
if (!_this.attributes.id) {
|
85
|
-
_context.next = 15;
|
86
|
-
break;
|
87
|
-
}
|
88
|
-
params['id'] = _this.id;
|
51
|
+
while (1) switch (_context.prev = _context.next) {
|
52
|
+
case 0:
|
53
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
54
|
+
if (_this.attributes.id) {
|
55
|
+
_context.next = 3;
|
56
|
+
break;
|
57
|
+
}
|
58
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
59
|
+
case 3:
|
60
|
+
if ((0, _utils.isObject)(params)) {
|
61
|
+
_context.next = 5;
|
62
|
+
break;
|
63
|
+
}
|
64
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
65
|
+
case 5:
|
66
|
+
params.id = _this.attributes.id;
|
67
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
68
|
+
_context.next = 8;
|
69
|
+
break;
|
70
|
+
}
|
71
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
72
|
+
case 8:
|
73
|
+
if (!(params['global_access'] && !(0, _utils.isString)(params['global_access']))) {
|
74
|
+
_context.next = 10;
|
75
|
+
break;
|
76
|
+
}
|
77
|
+
throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(global_access)));
|
78
|
+
case 10:
|
79
|
+
if (params['id']) {
|
89
80
|
_context.next = 16;
|
90
81
|
break;
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
82
|
+
}
|
83
|
+
if (!_this.attributes.id) {
|
84
|
+
_context.next = 15;
|
85
|
+
break;
|
86
|
+
}
|
87
|
+
params['id'] = _this.id;
|
88
|
+
_context.next = 16;
|
89
|
+
break;
|
90
|
+
case 15:
|
91
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
92
|
+
case 16:
|
93
|
+
if (params['global_access']) {
|
103
94
|
_context.next = 22;
|
104
95
|
break;
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
96
|
+
}
|
97
|
+
if (!_this.attributes.global_access) {
|
98
|
+
_context.next = 21;
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
params['global_access'] = _this.global_access;
|
102
|
+
_context.next = 22;
|
103
|
+
break;
|
104
|
+
case 21:
|
105
|
+
throw new errors.MissingParameterError('Parameter missing: global_access');
|
106
|
+
case 22:
|
107
|
+
_context.next = 24;
|
108
|
+
return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
109
|
+
case 24:
|
110
|
+
response = _context.sent;
|
111
|
+
return _context.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
112
|
+
case 26:
|
113
|
+
case "end":
|
114
|
+
return _context.stop();
|
117
115
|
}
|
118
116
|
}, _callee);
|
119
117
|
})));
|
@@ -122,52 +120,50 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
122
120
|
response,
|
123
121
|
_args2 = arguments;
|
124
122
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
125
|
-
while (1) {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
if (params['id']) {
|
149
|
-
_context2.next = 14;
|
150
|
-
break;
|
151
|
-
}
|
152
|
-
if (!_this.attributes.id) {
|
153
|
-
_context2.next = 13;
|
154
|
-
break;
|
155
|
-
}
|
156
|
-
params['id'] = _this.id;
|
123
|
+
while (1) switch (_context2.prev = _context2.next) {
|
124
|
+
case 0:
|
125
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
126
|
+
if (_this.attributes.id) {
|
127
|
+
_context2.next = 3;
|
128
|
+
break;
|
129
|
+
}
|
130
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
131
|
+
case 3:
|
132
|
+
if ((0, _utils.isObject)(params)) {
|
133
|
+
_context2.next = 5;
|
134
|
+
break;
|
135
|
+
}
|
136
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
137
|
+
case 5:
|
138
|
+
params.id = _this.attributes.id;
|
139
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
140
|
+
_context2.next = 8;
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
144
|
+
case 8:
|
145
|
+
if (params['id']) {
|
157
146
|
_context2.next = 14;
|
158
147
|
break;
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
148
|
+
}
|
149
|
+
if (!_this.attributes.id) {
|
150
|
+
_context2.next = 13;
|
151
|
+
break;
|
152
|
+
}
|
153
|
+
params['id'] = _this.id;
|
154
|
+
_context2.next = 14;
|
155
|
+
break;
|
156
|
+
case 13:
|
157
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
158
|
+
case 14:
|
159
|
+
_context2.next = 16;
|
160
|
+
return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
161
|
+
case 16:
|
162
|
+
response = _context2.sent;
|
163
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
164
|
+
case 18:
|
165
|
+
case "end":
|
166
|
+
return _context2.stop();
|
171
167
|
}
|
172
168
|
}, _callee2);
|
173
169
|
})));
|
@@ -204,34 +200,32 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
204
200
|
response,
|
205
201
|
_args3 = arguments;
|
206
202
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
207
|
-
while (1) {
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
return
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
return _context3.stop();
|
234
|
-
}
|
203
|
+
while (1) switch (_context3.prev = _context3.next) {
|
204
|
+
case 0:
|
205
|
+
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
206
|
+
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
207
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
208
|
+
_context3.next = 4;
|
209
|
+
break;
|
210
|
+
}
|
211
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
212
|
+
case 4:
|
213
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
214
|
+
_context3.next = 6;
|
215
|
+
break;
|
216
|
+
}
|
217
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
218
|
+
case 6:
|
219
|
+
_context3.next = 8;
|
220
|
+
return _Api.default.sendRequest("/projects", 'GET', params, options);
|
221
|
+
case 8:
|
222
|
+
response = _context3.sent;
|
223
|
+
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) {
|
224
|
+
return new Project(obj, options);
|
225
|
+
})) || []);
|
226
|
+
case 10:
|
227
|
+
case "end":
|
228
|
+
return _context3.stop();
|
235
229
|
}
|
236
230
|
}, _callee3);
|
237
231
|
})));
|
@@ -247,39 +241,37 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
247
241
|
response,
|
248
242
|
_args4 = arguments;
|
249
243
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
250
|
-
while (1) {
|
251
|
-
|
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
|
-
return _context4.stop();
|
282
|
-
}
|
244
|
+
while (1) switch (_context4.prev = _context4.next) {
|
245
|
+
case 0:
|
246
|
+
params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
247
|
+
options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
|
248
|
+
if ((0, _utils.isObject)(params)) {
|
249
|
+
_context4.next = 4;
|
250
|
+
break;
|
251
|
+
}
|
252
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
253
|
+
case 4:
|
254
|
+
params['id'] = id;
|
255
|
+
if (params['id']) {
|
256
|
+
_context4.next = 7;
|
257
|
+
break;
|
258
|
+
}
|
259
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
260
|
+
case 7:
|
261
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
262
|
+
_context4.next = 9;
|
263
|
+
break;
|
264
|
+
}
|
265
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
266
|
+
case 9:
|
267
|
+
_context4.next = 11;
|
268
|
+
return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
269
|
+
case 11:
|
270
|
+
response = _context4.sent;
|
271
|
+
return _context4.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, options));
|
272
|
+
case 13:
|
273
|
+
case "end":
|
274
|
+
return _context4.stop();
|
283
275
|
}
|
284
276
|
}, _callee4);
|
285
277
|
}));
|
@@ -298,32 +290,30 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
298
290
|
response,
|
299
291
|
_args5 = arguments;
|
300
292
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
301
|
-
while (1) {
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
return _context5.stop();
|
326
|
-
}
|
293
|
+
while (1) switch (_context5.prev = _context5.next) {
|
294
|
+
case 0:
|
295
|
+
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
296
|
+
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
297
|
+
if (params['global_access']) {
|
298
|
+
_context5.next = 4;
|
299
|
+
break;
|
300
|
+
}
|
301
|
+
throw new errors.MissingParameterError('Parameter missing: global_access');
|
302
|
+
case 4:
|
303
|
+
if (!(params['global_access'] && !(0, _utils.isString)(params['global_access']))) {
|
304
|
+
_context5.next = 6;
|
305
|
+
break;
|
306
|
+
}
|
307
|
+
throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(params['global_access'])));
|
308
|
+
case 6:
|
309
|
+
_context5.next = 8;
|
310
|
+
return _Api.default.sendRequest("/projects", 'POST', params, options);
|
311
|
+
case 8:
|
312
|
+
response = _context5.sent;
|
313
|
+
return _context5.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, options));
|
314
|
+
case 10:
|
315
|
+
case "end":
|
316
|
+
return _context5.stop();
|
327
317
|
}
|
328
318
|
}, _callee5);
|
329
319
|
})));
|