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
package/lib/models/Clickwrap.js
CHANGED
|
@@ -84,79 +84,79 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
|
|
|
84
84
|
var params,
|
|
85
85
|
response,
|
|
86
86
|
_args = arguments;
|
|
87
|
-
return _regenerator.default.wrap(function
|
|
87
|
+
return _regenerator.default.wrap(function (_context) {
|
|
88
88
|
while (1) switch (_context.prev = _context.next) {
|
|
89
89
|
case 0:
|
|
90
90
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
91
91
|
if (_this.attributes.id) {
|
|
92
|
-
_context.next =
|
|
92
|
+
_context.next = 1;
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
96
|
-
case
|
|
96
|
+
case 1:
|
|
97
97
|
if ((0, _utils.isObject)(params)) {
|
|
98
|
-
_context.next =
|
|
98
|
+
_context.next = 2;
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
102
|
-
case
|
|
102
|
+
case 2:
|
|
103
103
|
params.id = _this.attributes.id;
|
|
104
104
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
105
|
-
_context.next =
|
|
105
|
+
_context.next = 3;
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
109
|
-
case
|
|
109
|
+
case 3:
|
|
110
110
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
111
|
-
_context.next =
|
|
111
|
+
_context.next = 4;
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
115
|
-
case
|
|
115
|
+
case 4:
|
|
116
116
|
if (!(params.body && !(0, _utils.isString)(params.body))) {
|
|
117
|
-
_context.next =
|
|
117
|
+
_context.next = 5;
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params.body)));
|
|
121
|
-
case
|
|
121
|
+
case 5:
|
|
122
122
|
if (!(params.use_with_bundles && !(0, _utils.isString)(params.use_with_bundles))) {
|
|
123
|
-
_context.next =
|
|
123
|
+
_context.next = 6;
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
126
|
throw new errors.InvalidParameterError("Bad parameter: use_with_bundles must be of type String, received ".concat((0, _utils.getType)(params.use_with_bundles)));
|
|
127
|
-
case
|
|
127
|
+
case 6:
|
|
128
128
|
if (!(params.use_with_inboxes && !(0, _utils.isString)(params.use_with_inboxes))) {
|
|
129
|
-
_context.next =
|
|
129
|
+
_context.next = 7;
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
throw new errors.InvalidParameterError("Bad parameter: use_with_inboxes must be of type String, received ".concat((0, _utils.getType)(params.use_with_inboxes)));
|
|
133
|
-
case
|
|
133
|
+
case 7:
|
|
134
134
|
if (!(params.use_with_users && !(0, _utils.isString)(params.use_with_users))) {
|
|
135
|
-
_context.next =
|
|
135
|
+
_context.next = 8;
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
138
|
throw new errors.InvalidParameterError("Bad parameter: use_with_users must be of type String, received ".concat((0, _utils.getType)(params.use_with_users)));
|
|
139
|
-
case
|
|
139
|
+
case 8:
|
|
140
140
|
if (params.id) {
|
|
141
|
-
_context.next =
|
|
141
|
+
_context.next = 10;
|
|
142
142
|
break;
|
|
143
143
|
}
|
|
144
144
|
if (!_this.attributes.id) {
|
|
145
|
-
_context.next =
|
|
145
|
+
_context.next = 9;
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
148
|
params.id = _this.id;
|
|
149
|
-
_context.next =
|
|
149
|
+
_context.next = 10;
|
|
150
150
|
break;
|
|
151
|
-
case
|
|
151
|
+
case 9:
|
|
152
152
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
153
|
-
case
|
|
154
|
-
_context.next =
|
|
153
|
+
case 10:
|
|
154
|
+
_context.next = 11;
|
|
155
155
|
return _Api.default.sendRequest("/clickwraps/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
156
|
-
case
|
|
156
|
+
case 11:
|
|
157
157
|
response = _context.sent;
|
|
158
158
|
return _context.abrupt("return", new Clickwrap(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
159
|
-
case
|
|
159
|
+
case 12:
|
|
160
160
|
case "end":
|
|
161
161
|
return _context.stop();
|
|
162
162
|
}
|
|
@@ -165,46 +165,46 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
|
|
|
165
165
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
166
166
|
var params,
|
|
167
167
|
_args2 = arguments;
|
|
168
|
-
return _regenerator.default.wrap(function
|
|
168
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
169
169
|
while (1) switch (_context2.prev = _context2.next) {
|
|
170
170
|
case 0:
|
|
171
171
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
172
172
|
if (_this.attributes.id) {
|
|
173
|
-
_context2.next =
|
|
173
|
+
_context2.next = 1;
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
176
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
177
|
-
case
|
|
177
|
+
case 1:
|
|
178
178
|
if ((0, _utils.isObject)(params)) {
|
|
179
|
-
_context2.next =
|
|
179
|
+
_context2.next = 2;
|
|
180
180
|
break;
|
|
181
181
|
}
|
|
182
182
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
183
|
-
case
|
|
183
|
+
case 2:
|
|
184
184
|
params.id = _this.attributes.id;
|
|
185
185
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
186
|
-
_context2.next =
|
|
186
|
+
_context2.next = 3;
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
190
|
-
case
|
|
190
|
+
case 3:
|
|
191
191
|
if (params.id) {
|
|
192
|
-
_context2.next =
|
|
192
|
+
_context2.next = 5;
|
|
193
193
|
break;
|
|
194
194
|
}
|
|
195
195
|
if (!_this.attributes.id) {
|
|
196
|
-
_context2.next =
|
|
196
|
+
_context2.next = 4;
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
199
|
params.id = _this.id;
|
|
200
|
-
_context2.next =
|
|
200
|
+
_context2.next = 5;
|
|
201
201
|
break;
|
|
202
|
-
case
|
|
202
|
+
case 4:
|
|
203
203
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
204
|
-
case
|
|
205
|
-
_context2.next =
|
|
204
|
+
case 5:
|
|
205
|
+
_context2.next = 6;
|
|
206
206
|
return _Api.default.sendRequest("/clickwraps/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
207
|
-
case
|
|
207
|
+
case 6:
|
|
208
208
|
case "end":
|
|
209
209
|
return _context2.stop();
|
|
210
210
|
}
|
|
@@ -216,27 +216,27 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
|
|
|
216
216
|
});
|
|
217
217
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
218
218
|
var _newObject, newObject;
|
|
219
|
-
return _regenerator.default.wrap(function
|
|
219
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
220
220
|
while (1) switch (_context3.prev = _context3.next) {
|
|
221
221
|
case 0:
|
|
222
222
|
if (!_this.attributes.id) {
|
|
223
|
-
_context3.next =
|
|
223
|
+
_context3.next = 2;
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
|
-
_context3.next =
|
|
226
|
+
_context3.next = 1;
|
|
227
227
|
return _this.update(_this.attributes);
|
|
228
|
-
case
|
|
228
|
+
case 1:
|
|
229
229
|
_newObject = _context3.sent;
|
|
230
230
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
231
231
|
return _context3.abrupt("return", true);
|
|
232
|
-
case
|
|
233
|
-
_context3.next =
|
|
232
|
+
case 2:
|
|
233
|
+
_context3.next = 3;
|
|
234
234
|
return Clickwrap.create(_this.attributes, _this.options);
|
|
235
|
-
case
|
|
235
|
+
case 3:
|
|
236
236
|
newObject = _context3.sent;
|
|
237
237
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
238
238
|
return _context3.abrupt("return", true);
|
|
239
|
-
case
|
|
239
|
+
case 4:
|
|
240
240
|
case "end":
|
|
241
241
|
return _context3.stop();
|
|
242
242
|
}
|
|
@@ -266,31 +266,31 @@ _Clickwrap = Clickwrap;
|
|
|
266
266
|
options,
|
|
267
267
|
response,
|
|
268
268
|
_args4 = arguments;
|
|
269
|
-
return _regenerator.default.wrap(function
|
|
269
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
270
270
|
while (1) switch (_context4.prev = _context4.next) {
|
|
271
271
|
case 0:
|
|
272
272
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
273
273
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
274
274
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
275
|
-
_context4.next =
|
|
275
|
+
_context4.next = 1;
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
279
|
-
case
|
|
279
|
+
case 1:
|
|
280
280
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
281
|
-
_context4.next =
|
|
281
|
+
_context4.next = 2;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
285
|
-
case
|
|
286
|
-
_context4.next =
|
|
285
|
+
case 2:
|
|
286
|
+
_context4.next = 3;
|
|
287
287
|
return _Api.default.sendRequest('/clickwraps', 'GET', params, options);
|
|
288
|
-
case
|
|
288
|
+
case 3:
|
|
289
289
|
response = _context4.sent;
|
|
290
290
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
291
291
|
return new _Clickwrap(obj, options);
|
|
292
292
|
})) || []);
|
|
293
|
-
case
|
|
293
|
+
case 4:
|
|
294
294
|
case "end":
|
|
295
295
|
return _context4.stop();
|
|
296
296
|
}
|
|
@@ -309,36 +309,36 @@ _Clickwrap = Clickwrap;
|
|
|
309
309
|
options,
|
|
310
310
|
response,
|
|
311
311
|
_args5 = arguments;
|
|
312
|
-
return _regenerator.default.wrap(function
|
|
312
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
313
313
|
while (1) switch (_context5.prev = _context5.next) {
|
|
314
314
|
case 0:
|
|
315
315
|
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
316
316
|
options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
|
|
317
317
|
if ((0, _utils.isObject)(params)) {
|
|
318
|
-
_context5.next =
|
|
318
|
+
_context5.next = 1;
|
|
319
319
|
break;
|
|
320
320
|
}
|
|
321
321
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
322
|
-
case
|
|
322
|
+
case 1:
|
|
323
323
|
params.id = id;
|
|
324
324
|
if (params.id) {
|
|
325
|
-
_context5.next =
|
|
325
|
+
_context5.next = 2;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
329
|
-
case
|
|
329
|
+
case 2:
|
|
330
330
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
331
|
-
_context5.next =
|
|
331
|
+
_context5.next = 3;
|
|
332
332
|
break;
|
|
333
333
|
}
|
|
334
334
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
335
|
-
case
|
|
336
|
-
_context5.next =
|
|
335
|
+
case 3:
|
|
336
|
+
_context5.next = 4;
|
|
337
337
|
return _Api.default.sendRequest("/clickwraps/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
338
|
-
case
|
|
338
|
+
case 4:
|
|
339
339
|
response = _context5.sent;
|
|
340
340
|
return _context5.abrupt("return", new _Clickwrap(response === null || response === void 0 ? void 0 : response.data, options));
|
|
341
|
-
case
|
|
341
|
+
case 5:
|
|
342
342
|
case "end":
|
|
343
343
|
return _context5.stop();
|
|
344
344
|
}
|
|
@@ -364,47 +364,47 @@ _Clickwrap = Clickwrap;
|
|
|
364
364
|
options,
|
|
365
365
|
response,
|
|
366
366
|
_args6 = arguments;
|
|
367
|
-
return _regenerator.default.wrap(function
|
|
367
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
368
368
|
while (1) switch (_context6.prev = _context6.next) {
|
|
369
369
|
case 0:
|
|
370
370
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
371
371
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
372
372
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
373
|
-
_context6.next =
|
|
373
|
+
_context6.next = 1;
|
|
374
374
|
break;
|
|
375
375
|
}
|
|
376
376
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
377
|
-
case
|
|
377
|
+
case 1:
|
|
378
378
|
if (!(params.body && !(0, _utils.isString)(params.body))) {
|
|
379
|
-
_context6.next =
|
|
379
|
+
_context6.next = 2;
|
|
380
380
|
break;
|
|
381
381
|
}
|
|
382
382
|
throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params.body)));
|
|
383
|
-
case
|
|
383
|
+
case 2:
|
|
384
384
|
if (!(params.use_with_bundles && !(0, _utils.isString)(params.use_with_bundles))) {
|
|
385
|
-
_context6.next =
|
|
385
|
+
_context6.next = 3;
|
|
386
386
|
break;
|
|
387
387
|
}
|
|
388
388
|
throw new errors.InvalidParameterError("Bad parameter: use_with_bundles must be of type String, received ".concat((0, _utils.getType)(params.use_with_bundles)));
|
|
389
|
-
case
|
|
389
|
+
case 3:
|
|
390
390
|
if (!(params.use_with_inboxes && !(0, _utils.isString)(params.use_with_inboxes))) {
|
|
391
|
-
_context6.next =
|
|
391
|
+
_context6.next = 4;
|
|
392
392
|
break;
|
|
393
393
|
}
|
|
394
394
|
throw new errors.InvalidParameterError("Bad parameter: use_with_inboxes must be of type String, received ".concat((0, _utils.getType)(params.use_with_inboxes)));
|
|
395
|
-
case
|
|
395
|
+
case 4:
|
|
396
396
|
if (!(params.use_with_users && !(0, _utils.isString)(params.use_with_users))) {
|
|
397
|
-
_context6.next =
|
|
397
|
+
_context6.next = 5;
|
|
398
398
|
break;
|
|
399
399
|
}
|
|
400
400
|
throw new errors.InvalidParameterError("Bad parameter: use_with_users must be of type String, received ".concat((0, _utils.getType)(params.use_with_users)));
|
|
401
|
-
case
|
|
402
|
-
_context6.next =
|
|
401
|
+
case 5:
|
|
402
|
+
_context6.next = 6;
|
|
403
403
|
return _Api.default.sendRequest('/clickwraps', 'POST', params, options);
|
|
404
|
-
case
|
|
404
|
+
case 6:
|
|
405
405
|
response = _context6.sent;
|
|
406
406
|
return _context6.abrupt("return", new _Clickwrap(response === null || response === void 0 ? void 0 : response.data, options));
|
|
407
|
-
case
|
|
407
|
+
case 7:
|
|
408
408
|
case "end":
|
|
409
409
|
return _context6.stop();
|
|
410
410
|
}
|
package/lib/models/DnsRecord.js
CHANGED
|
@@ -71,31 +71,31 @@ _DnsRecord = DnsRecord;
|
|
|
71
71
|
options,
|
|
72
72
|
response,
|
|
73
73
|
_args = arguments;
|
|
74
|
-
return _regenerator.default.wrap(function
|
|
74
|
+
return _regenerator.default.wrap(function (_context) {
|
|
75
75
|
while (1) switch (_context.prev = _context.next) {
|
|
76
76
|
case 0:
|
|
77
77
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
78
78
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
79
79
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
80
|
-
_context.next =
|
|
80
|
+
_context.next = 1;
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
84
|
-
case
|
|
84
|
+
case 1:
|
|
85
85
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
86
|
-
_context.next =
|
|
86
|
+
_context.next = 2;
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
90
|
-
case
|
|
91
|
-
_context.next =
|
|
90
|
+
case 2:
|
|
91
|
+
_context.next = 3;
|
|
92
92
|
return _Api.default.sendRequest('/dns_records', 'GET', params, options);
|
|
93
|
-
case
|
|
93
|
+
case 3:
|
|
94
94
|
response = _context.sent;
|
|
95
95
|
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) {
|
|
96
96
|
return new _DnsRecord(obj, options);
|
|
97
97
|
})) || []);
|
|
98
|
-
case
|
|
98
|
+
case 4:
|
|
99
99
|
case "end":
|
|
100
100
|
return _context.stop();
|
|
101
101
|
}
|
|
@@ -98,31 +98,31 @@ _EmailIncomingMessage = EmailIncomingMessage;
|
|
|
98
98
|
options,
|
|
99
99
|
response,
|
|
100
100
|
_args = arguments;
|
|
101
|
-
return _regenerator.default.wrap(function
|
|
101
|
+
return _regenerator.default.wrap(function (_context) {
|
|
102
102
|
while (1) switch (_context.prev = _context.next) {
|
|
103
103
|
case 0:
|
|
104
104
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
105
105
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
106
106
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
107
|
-
_context.next =
|
|
107
|
+
_context.next = 1;
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
111
|
-
case
|
|
111
|
+
case 1:
|
|
112
112
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
113
|
-
_context.next =
|
|
113
|
+
_context.next = 2;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
116
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
117
|
-
case
|
|
118
|
-
_context.next =
|
|
117
|
+
case 2:
|
|
118
|
+
_context.next = 3;
|
|
119
119
|
return _Api.default.sendRequest('/email_incoming_messages', 'GET', params, options);
|
|
120
|
-
case
|
|
120
|
+
case 3:
|
|
121
121
|
response = _context.sent;
|
|
122
122
|
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) {
|
|
123
123
|
return new _EmailIncomingMessage(obj, options);
|
|
124
124
|
})) || []);
|
|
125
|
-
case
|
|
125
|
+
case 4:
|
|
126
126
|
case "end":
|
|
127
127
|
return _context.stop();
|
|
128
128
|
}
|
package/lib/models/EmailLog.js
CHANGED
|
@@ -93,31 +93,31 @@ _EmailLog = EmailLog;
|
|
|
93
93
|
options,
|
|
94
94
|
response,
|
|
95
95
|
_args = arguments;
|
|
96
|
-
return _regenerator.default.wrap(function
|
|
96
|
+
return _regenerator.default.wrap(function (_context) {
|
|
97
97
|
while (1) switch (_context.prev = _context.next) {
|
|
98
98
|
case 0:
|
|
99
99
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
100
100
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
101
101
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
102
|
-
_context.next =
|
|
102
|
+
_context.next = 1;
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
105
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
106
|
-
case
|
|
106
|
+
case 1:
|
|
107
107
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
108
|
-
_context.next =
|
|
108
|
+
_context.next = 2;
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
111
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
112
|
-
case
|
|
113
|
-
_context.next =
|
|
112
|
+
case 2:
|
|
113
|
+
_context.next = 3;
|
|
114
114
|
return _Api.default.sendRequest('/email_logs', 'GET', params, options);
|
|
115
|
-
case
|
|
115
|
+
case 3:
|
|
116
116
|
response = _context.sent;
|
|
117
117
|
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) {
|
|
118
118
|
return new _EmailLog(obj, options);
|
|
119
119
|
})) || []);
|
|
120
|
-
case
|
|
120
|
+
case 4:
|
|
121
121
|
case "end":
|
|
122
122
|
return _context.stop();
|
|
123
123
|
}
|
|
@@ -101,31 +101,31 @@ _ExavaultApiRequestLog = ExavaultApiRequestLog;
|
|
|
101
101
|
options,
|
|
102
102
|
response,
|
|
103
103
|
_args = arguments;
|
|
104
|
-
return _regenerator.default.wrap(function
|
|
104
|
+
return _regenerator.default.wrap(function (_context) {
|
|
105
105
|
while (1) switch (_context.prev = _context.next) {
|
|
106
106
|
case 0:
|
|
107
107
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
108
108
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
109
109
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
110
|
-
_context.next =
|
|
110
|
+
_context.next = 1;
|
|
111
111
|
break;
|
|
112
112
|
}
|
|
113
113
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
114
|
-
case
|
|
114
|
+
case 1:
|
|
115
115
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
116
|
-
_context.next =
|
|
116
|
+
_context.next = 2;
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
119
119
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
120
|
-
case
|
|
121
|
-
_context.next =
|
|
120
|
+
case 2:
|
|
121
|
+
_context.next = 3;
|
|
122
122
|
return _Api.default.sendRequest('/exavault_api_request_logs', 'GET', params, options);
|
|
123
|
-
case
|
|
123
|
+
case 3:
|
|
124
124
|
response = _context.sent;
|
|
125
125
|
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) {
|
|
126
126
|
return new _ExavaultApiRequestLog(obj, options);
|
|
127
127
|
})) || []);
|
|
128
|
-
case
|
|
128
|
+
case 4:
|
|
129
129
|
case "end":
|
|
130
130
|
return _context.stop();
|
|
131
131
|
}
|