files.com 1.2.248 → 1.2.250
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 +4 -2
- package/docs/models/FormFieldSet.md +5 -2
- package/lib/Api.js +72 -71
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +5 -5
- package/lib/models/ActionNotificationExport.js +38 -38
- package/lib/models/ActionNotificationExportResult.js +14 -14
- package/lib/models/ApiKey.js +100 -100
- package/lib/models/ApiRequestLog.js +8 -8
- package/lib/models/App.js +8 -8
- package/lib/models/As2IncomingMessage.js +10 -10
- package/lib/models/As2OutgoingMessage.js +10 -10
- package/lib/models/As2Partner.js +101 -101
- package/lib/models/As2Station.js +81 -81
- package/lib/models/Automation.js +167 -167
- package/lib/models/AutomationLog.js +8 -8
- package/lib/models/AutomationRun.js +24 -24
- package/lib/models/BandwidthSnapshot.js +8 -8
- package/lib/models/Behavior.js +106 -106
- package/lib/models/Bundle.js +143 -143
- package/lib/models/BundleAction.js +10 -10
- package/lib/models/BundleDownload.js +12 -12
- package/lib/models/BundleNotification.js +69 -69
- package/lib/models/BundleRecipient.js +40 -40
- package/lib/models/BundleRegistration.js +12 -12
- package/lib/models/Clickwrap.js +79 -79
- package/lib/models/DnsRecord.js +8 -8
- package/lib/models/EmailIncomingMessage.js +8 -8
- package/lib/models/EmailLog.js +8 -8
- package/lib/models/ExavaultApiRequestLog.js +8 -8
- package/lib/models/ExternalEvent.js +36 -36
- package/lib/models/File.js +269 -269
- package/lib/models/FileComment.js +70 -70
- package/lib/models/FileCommentReaction.js +34 -34
- package/lib/models/FileMigration.js +10 -10
- package/lib/models/FileMigrationLog.js +8 -8
- package/lib/models/Folder.js +36 -36
- package/lib/models/FormFieldSet.js +78 -71
- package/lib/models/FtpActionLog.js +8 -8
- package/lib/models/GpgKey.js +81 -81
- package/lib/models/Group.js +83 -83
- package/lib/models/GroupUser.js +89 -89
- package/lib/models/History.js +88 -88
- package/lib/models/HistoryExport.js +64 -64
- package/lib/models/HistoryExportResult.js +14 -14
- package/lib/models/InboxRecipient.js +36 -36
- package/lib/models/InboxRegistration.js +10 -10
- package/lib/models/InboxUpload.js +8 -8
- package/lib/models/Invoice.js +18 -18
- package/lib/models/IpAddress.js +32 -32
- package/lib/models/Lock.js +51 -51
- package/lib/models/Message.js +100 -100
- package/lib/models/MessageComment.js +78 -78
- package/lib/models/MessageCommentReaction.js +54 -54
- package/lib/models/MessageReaction.js +54 -54
- package/lib/models/Notification.js +91 -91
- package/lib/models/OutboundConnectionLog.js +8 -8
- package/lib/models/Payment.js +18 -18
- package/lib/models/Permission.js +54 -54
- package/lib/models/Priority.js +14 -14
- package/lib/models/Project.js +70 -70
- package/lib/models/PublicHostingRequestLog.js +8 -8
- package/lib/models/PublicKey.js +78 -78
- package/lib/models/RemoteBandwidthSnapshot.js +8 -8
- package/lib/models/RemoteServer.js +362 -362
- package/lib/models/Request.js +60 -60
- package/lib/models/Restore.js +24 -24
- package/lib/models/Session.js +21 -21
- package/lib/models/SettingsChange.js +8 -8
- package/lib/models/SftpActionLog.js +8 -8
- package/lib/models/SftpHostKey.js +67 -67
- package/lib/models/ShareGroup.js +79 -79
- package/lib/models/SiemHttpDestination.js +158 -158
- package/lib/models/Site.js +150 -150
- package/lib/models/Snapshot.js +85 -85
- package/lib/models/SsoStrategy.js +32 -32
- package/lib/models/Style.js +48 -48
- package/lib/models/SyncLog.js +8 -8
- package/lib/models/UsageDailySnapshot.js +8 -8
- package/lib/models/UsageSnapshot.js +8 -8
- package/lib/models/User.js +215 -215
- package/lib/models/UserCipherUse.js +10 -10
- package/lib/models/UserLifecycleRule.js +92 -92
- package/lib/models/UserRequest.js +56 -56
- package/lib/models/UserSftpClientUse.js +10 -10
- package/lib/models/WebDavActionLog.js +8 -8
- package/lib/models/WebhookTest.js +24 -24
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/FormFieldSet.js +7 -0
|
@@ -70,46 +70,46 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
|
70
70
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
71
71
|
var params,
|
|
72
72
|
_args = arguments;
|
|
73
|
-
return _regenerator.default.wrap(function
|
|
73
|
+
return _regenerator.default.wrap(function (_context) {
|
|
74
74
|
while (1) switch (_context.prev = _context.next) {
|
|
75
75
|
case 0:
|
|
76
76
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
77
77
|
if (_this.attributes.id) {
|
|
78
|
-
_context.next =
|
|
78
|
+
_context.next = 1;
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
82
|
-
case
|
|
82
|
+
case 1:
|
|
83
83
|
if ((0, _utils.isObject)(params)) {
|
|
84
|
-
_context.next =
|
|
84
|
+
_context.next = 2;
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
87
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
88
|
-
case
|
|
88
|
+
case 2:
|
|
89
89
|
params.id = _this.attributes.id;
|
|
90
90
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
91
|
-
_context.next =
|
|
91
|
+
_context.next = 3;
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
95
|
-
case
|
|
95
|
+
case 3:
|
|
96
96
|
if (params.id) {
|
|
97
|
-
_context.next =
|
|
97
|
+
_context.next = 5;
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
if (!_this.attributes.id) {
|
|
101
|
-
_context.next =
|
|
101
|
+
_context.next = 4;
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
params.id = _this.id;
|
|
105
|
-
_context.next =
|
|
105
|
+
_context.next = 5;
|
|
106
106
|
break;
|
|
107
|
-
case
|
|
107
|
+
case 4:
|
|
108
108
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
109
|
-
case
|
|
110
|
-
_context.next =
|
|
109
|
+
case 5:
|
|
110
|
+
_context.next = 6;
|
|
111
111
|
return _Api.default.sendRequest("/user_requests/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
112
|
-
case
|
|
112
|
+
case 6:
|
|
113
113
|
case "end":
|
|
114
114
|
return _context.stop();
|
|
115
115
|
}
|
|
@@ -121,22 +121,22 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
|
121
121
|
});
|
|
122
122
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
123
123
|
var newObject;
|
|
124
|
-
return _regenerator.default.wrap(function
|
|
124
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
125
125
|
while (1) switch (_context2.prev = _context2.next) {
|
|
126
126
|
case 0:
|
|
127
127
|
if (!_this.attributes.id) {
|
|
128
|
-
_context2.next =
|
|
128
|
+
_context2.next = 1;
|
|
129
129
|
break;
|
|
130
130
|
}
|
|
131
131
|
throw new errors.NotImplementedError('The UserRequest object doesn\'t support updates.');
|
|
132
|
-
case
|
|
133
|
-
_context2.next =
|
|
132
|
+
case 1:
|
|
133
|
+
_context2.next = 2;
|
|
134
134
|
return UserRequest.create(_this.attributes, _this.options);
|
|
135
|
-
case
|
|
135
|
+
case 2:
|
|
136
136
|
newObject = _context2.sent;
|
|
137
137
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
138
138
|
return _context2.abrupt("return", true);
|
|
139
|
-
case
|
|
139
|
+
case 3:
|
|
140
140
|
case "end":
|
|
141
141
|
return _context2.stop();
|
|
142
142
|
}
|
|
@@ -165,31 +165,31 @@ _UserRequest = UserRequest;
|
|
|
165
165
|
options,
|
|
166
166
|
response,
|
|
167
167
|
_args3 = arguments;
|
|
168
|
-
return _regenerator.default.wrap(function
|
|
168
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
169
169
|
while (1) switch (_context3.prev = _context3.next) {
|
|
170
170
|
case 0:
|
|
171
171
|
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
172
172
|
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
|
173
173
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
174
|
-
_context3.next =
|
|
174
|
+
_context3.next = 1;
|
|
175
175
|
break;
|
|
176
176
|
}
|
|
177
177
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
178
|
-
case
|
|
178
|
+
case 1:
|
|
179
179
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
180
|
-
_context3.next =
|
|
180
|
+
_context3.next = 2;
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
183
183
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
184
|
-
case
|
|
185
|
-
_context3.next =
|
|
184
|
+
case 2:
|
|
185
|
+
_context3.next = 3;
|
|
186
186
|
return _Api.default.sendRequest('/user_requests', 'GET', params, options);
|
|
187
|
-
case
|
|
187
|
+
case 3:
|
|
188
188
|
response = _context3.sent;
|
|
189
189
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
190
190
|
return new _UserRequest(obj, options);
|
|
191
191
|
})) || []);
|
|
192
|
-
case
|
|
192
|
+
case 4:
|
|
193
193
|
case "end":
|
|
194
194
|
return _context3.stop();
|
|
195
195
|
}
|
|
@@ -208,36 +208,36 @@ _UserRequest = UserRequest;
|
|
|
208
208
|
options,
|
|
209
209
|
response,
|
|
210
210
|
_args4 = arguments;
|
|
211
|
-
return _regenerator.default.wrap(function
|
|
211
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
212
212
|
while (1) switch (_context4.prev = _context4.next) {
|
|
213
213
|
case 0:
|
|
214
214
|
params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
215
215
|
options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
|
|
216
216
|
if ((0, _utils.isObject)(params)) {
|
|
217
|
-
_context4.next =
|
|
217
|
+
_context4.next = 1;
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
220
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
221
|
-
case
|
|
221
|
+
case 1:
|
|
222
222
|
params.id = id;
|
|
223
223
|
if (params.id) {
|
|
224
|
-
_context4.next =
|
|
224
|
+
_context4.next = 2;
|
|
225
225
|
break;
|
|
226
226
|
}
|
|
227
227
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
228
|
-
case
|
|
228
|
+
case 2:
|
|
229
229
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
230
|
-
_context4.next =
|
|
230
|
+
_context4.next = 3;
|
|
231
231
|
break;
|
|
232
232
|
}
|
|
233
233
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
234
|
-
case
|
|
235
|
-
_context4.next =
|
|
234
|
+
case 3:
|
|
235
|
+
_context4.next = 4;
|
|
236
236
|
return _Api.default.sendRequest("/user_requests/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
237
|
-
case
|
|
237
|
+
case 4:
|
|
238
238
|
response = _context4.sent;
|
|
239
239
|
return _context4.abrupt("return", new _UserRequest(response === null || response === void 0 ? void 0 : response.data, options));
|
|
240
|
-
case
|
|
240
|
+
case 5:
|
|
241
241
|
case "end":
|
|
242
242
|
return _context4.stop();
|
|
243
243
|
}
|
|
@@ -262,59 +262,59 @@ _UserRequest = UserRequest;
|
|
|
262
262
|
options,
|
|
263
263
|
response,
|
|
264
264
|
_args5 = arguments;
|
|
265
|
-
return _regenerator.default.wrap(function
|
|
265
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
266
266
|
while (1) switch (_context5.prev = _context5.next) {
|
|
267
267
|
case 0:
|
|
268
268
|
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
269
269
|
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
270
270
|
if (params.name) {
|
|
271
|
-
_context5.next =
|
|
271
|
+
_context5.next = 1;
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
throw new errors.MissingParameterError('Parameter missing: name');
|
|
275
|
-
case
|
|
275
|
+
case 1:
|
|
276
276
|
if (params.email) {
|
|
277
|
-
_context5.next =
|
|
277
|
+
_context5.next = 2;
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
throw new errors.MissingParameterError('Parameter missing: email');
|
|
281
|
-
case
|
|
281
|
+
case 2:
|
|
282
282
|
if (params.details) {
|
|
283
|
-
_context5.next =
|
|
283
|
+
_context5.next = 3;
|
|
284
284
|
break;
|
|
285
285
|
}
|
|
286
286
|
throw new errors.MissingParameterError('Parameter missing: details');
|
|
287
|
-
case
|
|
287
|
+
case 3:
|
|
288
288
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
289
|
-
_context5.next =
|
|
289
|
+
_context5.next = 4;
|
|
290
290
|
break;
|
|
291
291
|
}
|
|
292
292
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
293
|
-
case
|
|
293
|
+
case 4:
|
|
294
294
|
if (!(params.email && !(0, _utils.isString)(params.email))) {
|
|
295
|
-
_context5.next =
|
|
295
|
+
_context5.next = 5;
|
|
296
296
|
break;
|
|
297
297
|
}
|
|
298
298
|
throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params.email)));
|
|
299
|
-
case
|
|
299
|
+
case 5:
|
|
300
300
|
if (!(params.details && !(0, _utils.isString)(params.details))) {
|
|
301
|
-
_context5.next =
|
|
301
|
+
_context5.next = 6;
|
|
302
302
|
break;
|
|
303
303
|
}
|
|
304
304
|
throw new errors.InvalidParameterError("Bad parameter: details must be of type String, received ".concat((0, _utils.getType)(params.details)));
|
|
305
|
-
case
|
|
305
|
+
case 6:
|
|
306
306
|
if (!(params.company && !(0, _utils.isString)(params.company))) {
|
|
307
|
-
_context5.next =
|
|
307
|
+
_context5.next = 7;
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params.company)));
|
|
311
|
-
case
|
|
312
|
-
_context5.next =
|
|
311
|
+
case 7:
|
|
312
|
+
_context5.next = 8;
|
|
313
313
|
return _Api.default.sendRequest('/user_requests', 'POST', params, options);
|
|
314
|
-
case
|
|
314
|
+
case 8:
|
|
315
315
|
response = _context5.sent;
|
|
316
316
|
return _context5.abrupt("return", new _UserRequest(response === null || response === void 0 ? void 0 : response.data, options));
|
|
317
|
-
case
|
|
317
|
+
case 9:
|
|
318
318
|
case "end":
|
|
319
319
|
return _context5.stop();
|
|
320
320
|
}
|
|
@@ -76,37 +76,37 @@ _UserSftpClientUse = UserSftpClientUse;
|
|
|
76
76
|
options,
|
|
77
77
|
response,
|
|
78
78
|
_args = arguments;
|
|
79
|
-
return _regenerator.default.wrap(function
|
|
79
|
+
return _regenerator.default.wrap(function (_context) {
|
|
80
80
|
while (1) switch (_context.prev = _context.next) {
|
|
81
81
|
case 0:
|
|
82
82
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
83
83
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
84
84
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
85
|
-
_context.next =
|
|
85
|
+
_context.next = 1;
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
89
|
-
case
|
|
89
|
+
case 1:
|
|
90
90
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
91
|
-
_context.next =
|
|
91
|
+
_context.next = 2;
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
95
|
-
case
|
|
95
|
+
case 2:
|
|
96
96
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
97
|
-
_context.next =
|
|
97
|
+
_context.next = 3;
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
101
|
-
case
|
|
102
|
-
_context.next =
|
|
101
|
+
case 3:
|
|
102
|
+
_context.next = 4;
|
|
103
103
|
return _Api.default.sendRequest('/user_sftp_client_uses', 'GET', params, options);
|
|
104
|
-
case
|
|
104
|
+
case 4:
|
|
105
105
|
response = _context.sent;
|
|
106
106
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
107
107
|
return new _UserSftpClientUse(obj, options);
|
|
108
108
|
})) || []);
|
|
109
|
-
case
|
|
109
|
+
case 5:
|
|
110
110
|
case "end":
|
|
111
111
|
return _context.stop();
|
|
112
112
|
}
|
|
@@ -125,31 +125,31 @@ _WebDavActionLog = WebDavActionLog;
|
|
|
125
125
|
options,
|
|
126
126
|
response,
|
|
127
127
|
_args = arguments;
|
|
128
|
-
return _regenerator.default.wrap(function
|
|
128
|
+
return _regenerator.default.wrap(function (_context) {
|
|
129
129
|
while (1) switch (_context.prev = _context.next) {
|
|
130
130
|
case 0:
|
|
131
131
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
132
132
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
133
133
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
134
|
-
_context.next =
|
|
134
|
+
_context.next = 1;
|
|
135
135
|
break;
|
|
136
136
|
}
|
|
137
137
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
138
|
-
case
|
|
138
|
+
case 1:
|
|
139
139
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
140
|
-
_context.next =
|
|
140
|
+
_context.next = 2;
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
144
|
-
case
|
|
145
|
-
_context.next =
|
|
144
|
+
case 2:
|
|
145
|
+
_context.next = 3;
|
|
146
146
|
return _Api.default.sendRequest('/web_dav_action_logs', 'GET', params, options);
|
|
147
|
-
case
|
|
147
|
+
case 3:
|
|
148
148
|
response = _context.sent;
|
|
149
149
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
150
150
|
return new _WebDavActionLog(obj, options);
|
|
151
151
|
})) || []);
|
|
152
|
-
case
|
|
152
|
+
case 4:
|
|
153
153
|
case "end":
|
|
154
154
|
return _context.stop();
|
|
155
155
|
}
|
|
@@ -139,22 +139,22 @@ var WebhookTest = /*#__PURE__*/(0, _createClass2.default)(function WebhookTest()
|
|
|
139
139
|
});
|
|
140
140
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
141
141
|
var newObject;
|
|
142
|
-
return _regenerator.default.wrap(function
|
|
142
|
+
return _regenerator.default.wrap(function (_context) {
|
|
143
143
|
while (1) switch (_context.prev = _context.next) {
|
|
144
144
|
case 0:
|
|
145
145
|
if (!_this.attributes.id) {
|
|
146
|
-
_context.next =
|
|
146
|
+
_context.next = 1;
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
149
|
throw new errors.NotImplementedError('The WebhookTest object doesn\'t support updates.');
|
|
150
|
-
case
|
|
151
|
-
_context.next =
|
|
150
|
+
case 1:
|
|
151
|
+
_context.next = 2;
|
|
152
152
|
return WebhookTest.create(_this.attributes, _this.options);
|
|
153
|
-
case
|
|
153
|
+
case 2:
|
|
154
154
|
newObject = _context.sent;
|
|
155
155
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
156
156
|
return _context.abrupt("return", true);
|
|
157
|
-
case
|
|
157
|
+
case 3:
|
|
158
158
|
case "end":
|
|
159
159
|
return _context.stop();
|
|
160
160
|
}
|
|
@@ -190,59 +190,59 @@ _WebhookTest = WebhookTest;
|
|
|
190
190
|
options,
|
|
191
191
|
response,
|
|
192
192
|
_args2 = arguments;
|
|
193
|
-
return _regenerator.default.wrap(function
|
|
193
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
194
194
|
while (1) switch (_context2.prev = _context2.next) {
|
|
195
195
|
case 0:
|
|
196
196
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
197
197
|
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
198
198
|
if (params.url) {
|
|
199
|
-
_context2.next =
|
|
199
|
+
_context2.next = 1;
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
202
|
throw new errors.MissingParameterError('Parameter missing: url');
|
|
203
|
-
case
|
|
203
|
+
case 1:
|
|
204
204
|
if (!(params.url && !(0, _utils.isString)(params.url))) {
|
|
205
|
-
_context2.next =
|
|
205
|
+
_context2.next = 2;
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
208
|
throw new errors.InvalidParameterError("Bad parameter: url must be of type String, received ".concat((0, _utils.getType)(params.url)));
|
|
209
|
-
case
|
|
209
|
+
case 2:
|
|
210
210
|
if (!(params.method && !(0, _utils.isString)(params.method))) {
|
|
211
|
-
_context2.next =
|
|
211
|
+
_context2.next = 3;
|
|
212
212
|
break;
|
|
213
213
|
}
|
|
214
214
|
throw new errors.InvalidParameterError("Bad parameter: method must be of type String, received ".concat((0, _utils.getType)(params.method)));
|
|
215
|
-
case
|
|
215
|
+
case 3:
|
|
216
216
|
if (!(params.encoding && !(0, _utils.isString)(params.encoding))) {
|
|
217
|
-
_context2.next =
|
|
217
|
+
_context2.next = 4;
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
220
|
throw new errors.InvalidParameterError("Bad parameter: encoding must be of type String, received ".concat((0, _utils.getType)(params.encoding)));
|
|
221
|
-
case
|
|
221
|
+
case 4:
|
|
222
222
|
if (!(params.raw_body && !(0, _utils.isString)(params.raw_body))) {
|
|
223
|
-
_context2.next =
|
|
223
|
+
_context2.next = 5;
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
226
|
throw new errors.InvalidParameterError("Bad parameter: raw_body must be of type String, received ".concat((0, _utils.getType)(params.raw_body)));
|
|
227
|
-
case
|
|
227
|
+
case 5:
|
|
228
228
|
if (!(params.file_form_field && !(0, _utils.isString)(params.file_form_field))) {
|
|
229
|
-
_context2.next =
|
|
229
|
+
_context2.next = 6;
|
|
230
230
|
break;
|
|
231
231
|
}
|
|
232
232
|
throw new errors.InvalidParameterError("Bad parameter: file_form_field must be of type String, received ".concat((0, _utils.getType)(params.file_form_field)));
|
|
233
|
-
case
|
|
233
|
+
case 6:
|
|
234
234
|
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
235
|
-
_context2.next =
|
|
235
|
+
_context2.next = 7;
|
|
236
236
|
break;
|
|
237
237
|
}
|
|
238
238
|
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
239
|
-
case
|
|
240
|
-
_context2.next =
|
|
239
|
+
case 7:
|
|
240
|
+
_context2.next = 8;
|
|
241
241
|
return _Api.default.sendRequest('/webhook_tests', 'POST', params, options);
|
|
242
|
-
case
|
|
242
|
+
case 8:
|
|
243
243
|
response = _context2.sent;
|
|
244
244
|
return _context2.abrupt("return", new _WebhookTest(response === null || response === void 0 ? void 0 : response.data, options));
|
|
245
|
-
case
|
|
245
|
+
case 9:
|
|
246
246
|
case "end":
|
|
247
247
|
return _context2.stop();
|
|
248
248
|
}
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
|
@@ -77,6 +77,13 @@ class FormFieldSet {
|
|
|
77
77
|
this.attributes.skip_company = value
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
// boolean # Form Field Set is in use by an active Inbox / Bundle / Inbox Registration / Bundle Registration
|
|
81
|
+
getInUse = () => this.attributes.in_use
|
|
82
|
+
|
|
83
|
+
setInUse = value => {
|
|
84
|
+
this.attributes.in_use = value
|
|
85
|
+
}
|
|
86
|
+
|
|
80
87
|
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
|
81
88
|
getUserId = () => this.attributes.user_id
|
|
82
89
|
|