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
@@ -84,64 +84,62 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
|
|
84
84
|
response,
|
85
85
|
_args = arguments;
|
86
86
|
return _regenerator.default.wrap(function _callee$(_context) {
|
87
|
-
while (1) {
|
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
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
if (params['id']) {
|
123
|
-
_context.next = 18;
|
124
|
-
break;
|
125
|
-
}
|
126
|
-
if (!_this.attributes.id) {
|
127
|
-
_context.next = 17;
|
128
|
-
break;
|
129
|
-
}
|
130
|
-
params['id'] = _this.id;
|
87
|
+
while (1) switch (_context.prev = _context.next) {
|
88
|
+
case 0:
|
89
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
90
|
+
if (_this.attributes.id) {
|
91
|
+
_context.next = 3;
|
92
|
+
break;
|
93
|
+
}
|
94
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
95
|
+
case 3:
|
96
|
+
if ((0, _utils.isObject)(params)) {
|
97
|
+
_context.next = 5;
|
98
|
+
break;
|
99
|
+
}
|
100
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
101
|
+
case 5:
|
102
|
+
params.id = _this.attributes.id;
|
103
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
104
|
+
_context.next = 8;
|
105
|
+
break;
|
106
|
+
}
|
107
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
108
|
+
case 8:
|
109
|
+
if (!(params['title'] && !(0, _utils.isString)(params['title']))) {
|
110
|
+
_context.next = 10;
|
111
|
+
break;
|
112
|
+
}
|
113
|
+
throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(title)));
|
114
|
+
case 10:
|
115
|
+
if (!(params['form_fields'] && !(0, _utils.isArray)(params['form_fields']))) {
|
116
|
+
_context.next = 12;
|
117
|
+
break;
|
118
|
+
}
|
119
|
+
throw new errors.InvalidParameterError("Bad parameter: form_fields must be of type Array, received ".concat((0, _utils.getType)(form_fields)));
|
120
|
+
case 12:
|
121
|
+
if (params['id']) {
|
131
122
|
_context.next = 18;
|
132
123
|
break;
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
124
|
+
}
|
125
|
+
if (!_this.attributes.id) {
|
126
|
+
_context.next = 17;
|
127
|
+
break;
|
128
|
+
}
|
129
|
+
params['id'] = _this.id;
|
130
|
+
_context.next = 18;
|
131
|
+
break;
|
132
|
+
case 17:
|
133
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
134
|
+
case 18:
|
135
|
+
_context.next = 20;
|
136
|
+
return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
137
|
+
case 20:
|
138
|
+
response = _context.sent;
|
139
|
+
return _context.abrupt("return", new FormFieldSet(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
140
|
+
case 22:
|
141
|
+
case "end":
|
142
|
+
return _context.stop();
|
145
143
|
}
|
146
144
|
}, _callee);
|
147
145
|
})));
|
@@ -150,52 +148,50 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
|
|
150
148
|
response,
|
151
149
|
_args2 = arguments;
|
152
150
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
153
|
-
while (1) {
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
if (params['id']) {
|
177
|
-
_context2.next = 14;
|
178
|
-
break;
|
179
|
-
}
|
180
|
-
if (!_this.attributes.id) {
|
181
|
-
_context2.next = 13;
|
182
|
-
break;
|
183
|
-
}
|
184
|
-
params['id'] = _this.id;
|
151
|
+
while (1) switch (_context2.prev = _context2.next) {
|
152
|
+
case 0:
|
153
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
154
|
+
if (_this.attributes.id) {
|
155
|
+
_context2.next = 3;
|
156
|
+
break;
|
157
|
+
}
|
158
|
+
throw new errors.EmptyPropertyError('Current object has no id');
|
159
|
+
case 3:
|
160
|
+
if ((0, _utils.isObject)(params)) {
|
161
|
+
_context2.next = 5;
|
162
|
+
break;
|
163
|
+
}
|
164
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
165
|
+
case 5:
|
166
|
+
params.id = _this.attributes.id;
|
167
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
168
|
+
_context2.next = 8;
|
169
|
+
break;
|
170
|
+
}
|
171
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
172
|
+
case 8:
|
173
|
+
if (params['id']) {
|
185
174
|
_context2.next = 14;
|
186
175
|
break;
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
176
|
+
}
|
177
|
+
if (!_this.attributes.id) {
|
178
|
+
_context2.next = 13;
|
179
|
+
break;
|
180
|
+
}
|
181
|
+
params['id'] = _this.id;
|
182
|
+
_context2.next = 14;
|
183
|
+
break;
|
184
|
+
case 13:
|
185
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
186
|
+
case 14:
|
187
|
+
_context2.next = 16;
|
188
|
+
return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
189
|
+
case 16:
|
190
|
+
response = _context2.sent;
|
191
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
192
|
+
case 18:
|
193
|
+
case "end":
|
194
|
+
return _context2.stop();
|
199
195
|
}
|
200
196
|
}, _callee2);
|
201
197
|
})));
|
@@ -232,40 +228,38 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
|
|
232
228
|
response,
|
233
229
|
_args3 = arguments;
|
234
230
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
235
|
-
while (1) {
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
return
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
return _context3.stop();
|
268
|
-
}
|
231
|
+
while (1) switch (_context3.prev = _context3.next) {
|
232
|
+
case 0:
|
233
|
+
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
234
|
+
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
235
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
236
|
+
_context3.next = 4;
|
237
|
+
break;
|
238
|
+
}
|
239
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
240
|
+
case 4:
|
241
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
242
|
+
_context3.next = 6;
|
243
|
+
break;
|
244
|
+
}
|
245
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
246
|
+
case 6:
|
247
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
248
|
+
_context3.next = 8;
|
249
|
+
break;
|
250
|
+
}
|
251
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
252
|
+
case 8:
|
253
|
+
_context3.next = 10;
|
254
|
+
return _Api.default.sendRequest("/form_field_sets", 'GET', params, options);
|
255
|
+
case 10:
|
256
|
+
response = _context3.sent;
|
257
|
+
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) {
|
258
|
+
return new FormFieldSet(obj, options);
|
259
|
+
})) || []);
|
260
|
+
case 12:
|
261
|
+
case "end":
|
262
|
+
return _context3.stop();
|
269
263
|
}
|
270
264
|
}, _callee3);
|
271
265
|
})));
|
@@ -281,39 +275,37 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
|
|
281
275
|
response,
|
282
276
|
_args4 = arguments;
|
283
277
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
284
|
-
while (1) {
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
return _context4.stop();
|
316
|
-
}
|
278
|
+
while (1) switch (_context4.prev = _context4.next) {
|
279
|
+
case 0:
|
280
|
+
params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
281
|
+
options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
|
282
|
+
if ((0, _utils.isObject)(params)) {
|
283
|
+
_context4.next = 4;
|
284
|
+
break;
|
285
|
+
}
|
286
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
287
|
+
case 4:
|
288
|
+
params['id'] = id;
|
289
|
+
if (params['id']) {
|
290
|
+
_context4.next = 7;
|
291
|
+
break;
|
292
|
+
}
|
293
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
294
|
+
case 7:
|
295
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
296
|
+
_context4.next = 9;
|
297
|
+
break;
|
298
|
+
}
|
299
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
300
|
+
case 9:
|
301
|
+
_context4.next = 11;
|
302
|
+
return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
303
|
+
case 11:
|
304
|
+
response = _context4.sent;
|
305
|
+
return _context4.abrupt("return", new FormFieldSet(response === null || response === void 0 ? void 0 : response.data, options));
|
306
|
+
case 13:
|
307
|
+
case "end":
|
308
|
+
return _context4.stop();
|
317
309
|
}
|
318
310
|
}, _callee4);
|
319
311
|
}));
|
@@ -332,38 +324,36 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
|
|
332
324
|
response,
|
333
325
|
_args5 = arguments;
|
334
326
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
335
|
-
while (1) {
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
return _context5.stop();
|
366
|
-
}
|
327
|
+
while (1) switch (_context5.prev = _context5.next) {
|
328
|
+
case 0:
|
329
|
+
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
330
|
+
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
331
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
332
|
+
_context5.next = 4;
|
333
|
+
break;
|
334
|
+
}
|
335
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
336
|
+
case 4:
|
337
|
+
if (!(params['title'] && !(0, _utils.isString)(params['title']))) {
|
338
|
+
_context5.next = 6;
|
339
|
+
break;
|
340
|
+
}
|
341
|
+
throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params['title'])));
|
342
|
+
case 6:
|
343
|
+
if (!(params['form_fields'] && !(0, _utils.isArray)(params['form_fields']))) {
|
344
|
+
_context5.next = 8;
|
345
|
+
break;
|
346
|
+
}
|
347
|
+
throw new errors.InvalidParameterError("Bad parameter: form_fields must be of type Array, received ".concat((0, _utils.getType)(params['form_fields'])));
|
348
|
+
case 8:
|
349
|
+
_context5.next = 10;
|
350
|
+
return _Api.default.sendRequest("/form_field_sets", 'POST', params, options);
|
351
|
+
case 10:
|
352
|
+
response = _context5.sent;
|
353
|
+
return _context5.abrupt("return", new FormFieldSet(response === null || response === void 0 ? void 0 : response.data, options));
|
354
|
+
case 12:
|
355
|
+
case "end":
|
356
|
+
return _context5.stop();
|
367
357
|
}
|
368
358
|
}, _callee5);
|
369
359
|
})));
|