files.com 1.2.101 → 1.2.102
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/ActionNotificationExportResult.md +0 -2
- package/docs/models/ApiKey.md +1 -3
- package/docs/models/ApiRequestLog.md +0 -2
- package/docs/models/App.md +1 -3
- package/docs/models/As2IncomingMessage.md +1 -3
- package/docs/models/As2OutgoingMessage.md +1 -3
- package/docs/models/As2Partner.md +0 -2
- package/docs/models/As2Station.md +0 -2
- package/docs/models/Automation.md +1 -10
- package/docs/models/AutomationLog.md +0 -2
- package/docs/models/AutomationRun.md +1 -3
- package/docs/models/BandwidthSnapshot.md +1 -3
- package/docs/models/Behavior.md +2 -8
- package/docs/models/Bundle.md +1 -3
- package/docs/models/BundleAction.md +1 -3
- package/docs/models/BundleDownload.md +1 -3
- package/docs/models/BundleNotification.md +1 -3
- package/docs/models/BundleRecipient.md +1 -3
- package/docs/models/BundleRegistration.md +0 -2
- package/docs/models/Clickwrap.md +0 -2
- package/docs/models/DnsRecord.md +0 -2
- package/docs/models/EmailIncomingMessage.md +1 -3
- package/docs/models/EmailLog.md +0 -2
- package/docs/models/ExavaultApiRequestLog.md +0 -2
- package/docs/models/ExternalEvent.md +1 -3
- package/docs/models/FileComment.md +0 -2
- package/docs/models/FileMigrationLog.md +0 -2
- package/docs/models/Folder.md +0 -1
- package/docs/models/FormFieldSet.md +0 -2
- package/docs/models/FtpActionLog.md +0 -2
- package/docs/models/GpgKey.md +1 -3
- package/docs/models/Group.md +1 -3
- package/docs/models/GroupUser.md +0 -2
- package/docs/models/History.md +5 -15
- package/docs/models/HistoryExportResult.md +0 -2
- package/docs/models/InboxRecipient.md +1 -3
- package/docs/models/InboxRegistration.md +0 -2
- package/docs/models/InboxUpload.md +1 -3
- package/docs/models/Invoice.md +0 -2
- package/docs/models/IpAddress.md +0 -8
- package/docs/models/Lock.md +0 -2
- package/docs/models/Message.md +0 -2
- package/docs/models/MessageComment.md +0 -2
- package/docs/models/MessageCommentReaction.md +0 -2
- package/docs/models/MessageReaction.md +0 -2
- package/docs/models/Notification.md +1 -5
- package/docs/models/OutboundConnectionLog.md +0 -2
- package/docs/models/Payment.md +0 -2
- package/docs/models/Permission.md +1 -3
- package/docs/models/Priority.md +0 -2
- package/docs/models/Project.md +0 -2
- package/docs/models/PublicHostingRequestLog.md +0 -2
- package/docs/models/PublicKey.md +0 -2
- package/docs/models/RemoteBandwidthSnapshot.md +1 -3
- package/docs/models/RemoteServer.md +0 -2
- package/docs/models/Request.md +2 -6
- package/docs/models/SettingsChange.md +1 -3
- package/docs/models/SftpActionLog.md +0 -2
- package/docs/models/SftpHostKey.md +0 -2
- package/docs/models/ShareGroup.md +0 -2
- package/docs/models/Snapshot.md +0 -2
- package/docs/models/SsoStrategy.md +0 -2
- package/docs/models/SyncLog.md +0 -2
- package/docs/models/UsageDailySnapshot.md +1 -3
- package/docs/models/UsageSnapshot.md +0 -2
- package/docs/models/User.md +1 -3
- package/docs/models/UserCipherUse.md +0 -2
- package/docs/models/UserRequest.md +0 -2
- package/docs/models/WebDavActionLog.md +0 -2
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +5 -19
- package/lib/models/ApiKey.js +4 -18
- package/lib/models/ApiRequestLog.js +3 -17
- package/lib/models/App.js +4 -18
- package/lib/models/As2IncomingMessage.js +6 -20
- package/lib/models/As2OutgoingMessage.js +6 -20
- package/lib/models/As2Partner.js +3 -17
- package/lib/models/As2Station.js +3 -17
- package/lib/models/Automation.js +87 -124
- package/lib/models/AutomationLog.js +3 -17
- package/lib/models/AutomationRun.js +6 -20
- package/lib/models/BandwidthSnapshot.js +4 -18
- package/lib/models/Behavior.js +10 -45
- package/lib/models/Bundle.js +4 -18
- package/lib/models/BundleAction.js +8 -22
- package/lib/models/BundleDownload.js +8 -22
- package/lib/models/BundleNotification.js +4 -18
- package/lib/models/BundleRecipient.js +6 -20
- package/lib/models/BundleRegistration.js +5 -19
- package/lib/models/Clickwrap.js +3 -17
- package/lib/models/DnsRecord.js +3 -17
- package/lib/models/EmailIncomingMessage.js +4 -18
- package/lib/models/EmailLog.js +3 -17
- package/lib/models/ExavaultApiRequestLog.js +3 -17
- package/lib/models/ExternalEvent.js +4 -18
- package/lib/models/FileComment.js +5 -19
- package/lib/models/FileMigrationLog.js +3 -17
- package/lib/models/Folder.js +13 -20
- package/lib/models/FormFieldSet.js +3 -17
- package/lib/models/FtpActionLog.js +3 -17
- package/lib/models/GpgKey.js +4 -18
- package/lib/models/Group.js +6 -20
- package/lib/models/GroupUser.js +5 -19
- package/lib/models/History.js +26 -96
- package/lib/models/HistoryExportResult.js +5 -19
- package/lib/models/InboxRecipient.js +6 -20
- package/lib/models/InboxRegistration.js +5 -19
- package/lib/models/InboxUpload.js +8 -22
- package/lib/models/Invoice.js +3 -17
- package/lib/models/IpAddress.js +12 -68
- package/lib/models/Lock.js +5 -19
- package/lib/models/Message.js +5 -19
- package/lib/models/MessageComment.js +5 -19
- package/lib/models/MessageCommentReaction.js +5 -19
- package/lib/models/MessageReaction.js +5 -19
- package/lib/models/Notification.js +12 -33
- package/lib/models/OutboundConnectionLog.js +3 -17
- package/lib/models/Payment.js +3 -17
- package/lib/models/Permission.js +10 -24
- package/lib/models/Priority.js +5 -19
- package/lib/models/Project.js +3 -17
- package/lib/models/PublicHostingRequestLog.js +3 -17
- package/lib/models/PublicKey.js +3 -17
- package/lib/models/RemoteBandwidthSnapshot.js +4 -18
- package/lib/models/RemoteServer.js +3 -17
- package/lib/models/Request.js +12 -40
- package/lib/models/SettingsChange.js +4 -18
- package/lib/models/SftpActionLog.js +3 -17
- package/lib/models/SftpHostKey.js +3 -17
- package/lib/models/ShareGroup.js +3 -17
- package/lib/models/Snapshot.js +3 -17
- package/lib/models/SsoStrategy.js +3 -17
- package/lib/models/SyncLog.js +3 -17
- package/lib/models/UsageDailySnapshot.js +4 -18
- package/lib/models/UsageSnapshot.js +3 -17
- package/lib/models/User.js +8 -22
- package/lib/models/UserCipherUse.js +3 -17
- package/lib/models/UserRequest.js +3 -17
- package/lib/models/WebDavActionLog.js +3 -17
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +0 -10
- package/src/models/ApiKey.js +1 -11
- package/src/models/ApiRequestLog.js +0 -10
- package/src/models/App.js +1 -11
- package/src/models/As2IncomingMessage.js +1 -11
- package/src/models/As2OutgoingMessage.js +1 -11
- package/src/models/As2Partner.js +0 -10
- package/src/models/As2Station.js +0 -10
- package/src/models/Automation.js +1 -30
- package/src/models/AutomationLog.js +0 -10
- package/src/models/AutomationRun.js +1 -11
- package/src/models/BandwidthSnapshot.js +1 -11
- package/src/models/Behavior.js +2 -27
- package/src/models/Bundle.js +1 -11
- package/src/models/BundleAction.js +1 -11
- package/src/models/BundleDownload.js +1 -11
- package/src/models/BundleNotification.js +1 -11
- package/src/models/BundleRecipient.js +1 -11
- package/src/models/BundleRegistration.js +0 -10
- package/src/models/Clickwrap.js +0 -10
- package/src/models/DnsRecord.js +0 -10
- package/src/models/EmailIncomingMessage.js +1 -11
- package/src/models/EmailLog.js +0 -10
- package/src/models/ExavaultApiRequestLog.js +0 -10
- package/src/models/ExternalEvent.js +1 -11
- package/src/models/FileComment.js +0 -10
- package/src/models/FileMigrationLog.js +0 -10
- package/src/models/Folder.js +0 -5
- package/src/models/FormFieldSet.js +0 -10
- package/src/models/FtpActionLog.js +0 -10
- package/src/models/GpgKey.js +1 -11
- package/src/models/Group.js +1 -11
- package/src/models/GroupUser.js +0 -10
- package/src/models/History.js +5 -55
- package/src/models/HistoryExportResult.js +0 -10
- package/src/models/InboxRecipient.js +1 -11
- package/src/models/InboxRegistration.js +0 -10
- package/src/models/InboxUpload.js +1 -11
- package/src/models/Invoice.js +0 -10
- package/src/models/IpAddress.js +0 -40
- package/src/models/Lock.js +0 -10
- package/src/models/Message.js +0 -10
- package/src/models/MessageComment.js +0 -10
- package/src/models/MessageCommentReaction.js +0 -10
- package/src/models/MessageReaction.js +0 -10
- package/src/models/Notification.js +1 -16
- package/src/models/OutboundConnectionLog.js +0 -10
- package/src/models/Payment.js +0 -10
- package/src/models/Permission.js +1 -11
- package/src/models/Priority.js +0 -10
- package/src/models/Project.js +0 -10
- package/src/models/PublicHostingRequestLog.js +0 -10
- package/src/models/PublicKey.js +0 -10
- package/src/models/RemoteBandwidthSnapshot.js +1 -11
- package/src/models/RemoteServer.js +0 -10
- package/src/models/Request.js +2 -22
- package/src/models/SettingsChange.js +1 -11
- package/src/models/SftpActionLog.js +0 -10
- package/src/models/SftpHostKey.js +0 -10
- package/src/models/ShareGroup.js +0 -10
- package/src/models/Snapshot.js +0 -10
- package/src/models/SsoStrategy.js +0 -10
- package/src/models/SyncLog.js +0 -10
- package/src/models/UsageDailySnapshot.js +1 -11
- package/src/models/UsageSnapshot.js +0 -10
- package/src/models/User.js +1 -11
- package/src/models/UserCipherUse.js +0 -10
- package/src/models/UserRequest.js +0 -10
- package/src/models/WebDavActionLog.js +0 -10
package/lib/models/App.js
CHANGED
@@ -130,9 +130,7 @@ _App = App;
|
|
130
130
|
// Parameters:
|
131
131
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
132
132
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
133
|
-
//
|
134
|
-
// page - int64
|
135
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `app_type`.
|
133
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name` and `app_type`.
|
136
134
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
|
137
135
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
138
136
|
(0, _defineProperty2.default)(App, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -158,26 +156,14 @@ _App = App;
|
|
158
156
|
}
|
159
157
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
160
158
|
case 6:
|
161
|
-
|
162
|
-
_context.next = 8;
|
163
|
-
break;
|
164
|
-
}
|
165
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
166
|
-
case 8:
|
167
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
168
|
-
_context.next = 10;
|
169
|
-
break;
|
170
|
-
}
|
171
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
172
|
-
case 10:
|
173
|
-
_context.next = 12;
|
159
|
+
_context.next = 8;
|
174
160
|
return _Api.default.sendRequest('/apps', 'GET', params, options);
|
175
|
-
case
|
161
|
+
case 8:
|
176
162
|
response = _context.sent;
|
177
163
|
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) {
|
178
164
|
return new _App(obj, options);
|
179
165
|
})) || []);
|
180
|
-
case
|
166
|
+
case 10:
|
181
167
|
case "end":
|
182
168
|
return _context.stop();
|
183
169
|
}
|
@@ -190,9 +190,7 @@ _As2IncomingMessage = As2IncomingMessage;
|
|
190
190
|
// Parameters:
|
191
191
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
192
192
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
193
|
-
//
|
194
|
-
// page - int64
|
195
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `as2_partner_id`.
|
193
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `as2_partner_id`.
|
196
194
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
197
195
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
198
196
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -222,32 +220,20 @@ _As2IncomingMessage = As2IncomingMessage;
|
|
222
220
|
}
|
223
221
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
224
222
|
case 6:
|
225
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
226
|
-
_context.next = 8;
|
227
|
-
break;
|
228
|
-
}
|
229
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
230
|
-
case 8:
|
231
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
232
|
-
_context.next = 10;
|
233
|
-
break;
|
234
|
-
}
|
235
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
236
|
-
case 10:
|
237
223
|
if (!(params.as2_partner_id && !(0, _utils.isInt)(params.as2_partner_id))) {
|
238
|
-
_context.next =
|
224
|
+
_context.next = 8;
|
239
225
|
break;
|
240
226
|
}
|
241
227
|
throw new errors.InvalidParameterError("Bad parameter: as2_partner_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_partner_id)));
|
242
|
-
case
|
243
|
-
_context.next =
|
228
|
+
case 8:
|
229
|
+
_context.next = 10;
|
244
230
|
return _Api.default.sendRequest('/as2_incoming_messages', 'GET', params, options);
|
245
|
-
case
|
231
|
+
case 10:
|
246
232
|
response = _context.sent;
|
247
233
|
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) {
|
248
234
|
return new _As2IncomingMessage(obj, options);
|
249
235
|
})) || []);
|
250
|
-
case
|
236
|
+
case 12:
|
251
237
|
case "end":
|
252
238
|
return _context.stop();
|
253
239
|
}
|
@@ -174,9 +174,7 @@ _As2OutgoingMessage = As2OutgoingMessage;
|
|
174
174
|
// Parameters:
|
175
175
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
176
176
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
177
|
-
//
|
178
|
-
// page - int64
|
179
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `as2_partner_id`.
|
177
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `as2_partner_id`.
|
180
178
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
181
179
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
182
180
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -206,32 +204,20 @@ _As2OutgoingMessage = As2OutgoingMessage;
|
|
206
204
|
}
|
207
205
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
208
206
|
case 6:
|
209
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
210
|
-
_context.next = 8;
|
211
|
-
break;
|
212
|
-
}
|
213
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
214
|
-
case 8:
|
215
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
216
|
-
_context.next = 10;
|
217
|
-
break;
|
218
|
-
}
|
219
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
220
|
-
case 10:
|
221
207
|
if (!(params.as2_partner_id && !(0, _utils.isInt)(params.as2_partner_id))) {
|
222
|
-
_context.next =
|
208
|
+
_context.next = 8;
|
223
209
|
break;
|
224
210
|
}
|
225
211
|
throw new errors.InvalidParameterError("Bad parameter: as2_partner_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_partner_id)));
|
226
|
-
case
|
227
|
-
_context.next =
|
212
|
+
case 8:
|
213
|
+
_context.next = 10;
|
228
214
|
return _Api.default.sendRequest('/as2_outgoing_messages', 'GET', params, options);
|
229
|
-
case
|
215
|
+
case 10:
|
230
216
|
response = _context.sent;
|
231
217
|
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) {
|
232
218
|
return new _As2OutgoingMessage(obj, options);
|
233
219
|
})) || []);
|
234
|
-
case
|
220
|
+
case 12:
|
235
221
|
case "end":
|
236
222
|
return _context.stop();
|
237
223
|
}
|
package/lib/models/As2Partner.js
CHANGED
@@ -352,8 +352,6 @@ _As2Partner = As2Partner;
|
|
352
352
|
// Parameters:
|
353
353
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
354
354
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
355
|
-
// action - string
|
356
|
-
// page - int64
|
357
355
|
(0, _defineProperty2.default)(As2Partner, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
358
356
|
var _response$data;
|
359
357
|
var params,
|
@@ -377,26 +375,14 @@ _As2Partner = As2Partner;
|
|
377
375
|
}
|
378
376
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
379
377
|
case 6:
|
380
|
-
|
381
|
-
_context4.next = 8;
|
382
|
-
break;
|
383
|
-
}
|
384
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
385
|
-
case 8:
|
386
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
387
|
-
_context4.next = 10;
|
388
|
-
break;
|
389
|
-
}
|
390
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
391
|
-
case 10:
|
392
|
-
_context4.next = 12;
|
378
|
+
_context4.next = 8;
|
393
379
|
return _Api.default.sendRequest('/as2_partners', 'GET', params, options);
|
394
|
-
case
|
380
|
+
case 8:
|
395
381
|
response = _context4.sent;
|
396
382
|
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) {
|
397
383
|
return new _As2Partner(obj, options);
|
398
384
|
})) || []);
|
399
|
-
case
|
385
|
+
case 10:
|
400
386
|
case "end":
|
401
387
|
return _context4.stop();
|
402
388
|
}
|
package/lib/models/As2Station.js
CHANGED
@@ -323,8 +323,6 @@ _As2Station = As2Station;
|
|
323
323
|
// Parameters:
|
324
324
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
325
325
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
326
|
-
// action - string
|
327
|
-
// page - int64
|
328
326
|
(0, _defineProperty2.default)(As2Station, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
329
327
|
var _response$data;
|
330
328
|
var params,
|
@@ -348,26 +346,14 @@ _As2Station = As2Station;
|
|
348
346
|
}
|
349
347
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
350
348
|
case 6:
|
351
|
-
|
352
|
-
_context4.next = 8;
|
353
|
-
break;
|
354
|
-
}
|
355
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
356
|
-
case 8:
|
357
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
358
|
-
_context4.next = 10;
|
359
|
-
break;
|
360
|
-
}
|
361
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
362
|
-
case 10:
|
363
|
-
_context4.next = 12;
|
349
|
+
_context4.next = 8;
|
364
350
|
return _Api.default.sendRequest('/as2_stations', 'GET', params, options);
|
365
|
-
case
|
351
|
+
case 8:
|
366
352
|
response = _context4.sent;
|
367
353
|
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) {
|
368
354
|
return new _As2Station(obj, options);
|
369
355
|
})) || []);
|
370
|
-
case
|
356
|
+
case 10:
|
371
357
|
case "end":
|
372
358
|
return _context4.stop();
|
373
359
|
}
|