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