files.com 1.1.18 → 1.2.0
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/.eslintrc.js +0 -3
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/lib/Api.js +1 -1
- package/lib/Errors.js +957 -933
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExport.js +25 -25
- package/lib/models/ActionNotificationExportResult.js +10 -10
- package/lib/models/ActionWebhookFailure.js +5 -9
- package/lib/models/ApiKey.js +62 -70
- package/lib/models/App.js +5 -5
- package/lib/models/As2IncomingMessage.js +7 -7
- package/lib/models/As2OutgoingMessage.js +7 -7
- package/lib/models/As2Partner.js +54 -58
- package/lib/models/As2Station.js +51 -55
- package/lib/models/Automation.js +102 -110
- package/lib/models/AutomationRun.js +13 -13
- package/lib/models/BandwidthSnapshot.js +5 -5
- package/lib/models/Behavior.js +77 -85
- package/lib/models/Bundle.js +102 -110
- package/lib/models/BundleDownload.js +9 -9
- package/lib/models/BundleNotification.js +37 -41
- package/lib/models/BundleRecipient.js +22 -22
- package/lib/models/BundleRegistration.js +7 -7
- package/lib/models/Clickwrap.js +52 -56
- package/lib/models/DnsRecord.js +5 -5
- package/lib/models/EmailIncomingMessage.js +5 -5
- package/lib/models/ExternalEvent.js +18 -18
- package/lib/models/File.js +89 -93
- package/lib/models/FileComment.js +41 -45
- package/lib/models/FileCommentReaction.js +15 -19
- package/lib/models/FileMigration.js +5 -5
- package/lib/models/Folder.js +24 -24
- package/lib/models/FormFieldSet.js +44 -48
- package/lib/models/GpgKey.js +53 -57
- package/lib/models/Group.js +51 -55
- package/lib/models/GroupUser.js +53 -57
- package/lib/models/History.js +72 -72
- package/lib/models/HistoryExport.js +51 -51
- package/lib/models/HistoryExportResult.js +10 -10
- package/lib/models/InboxRecipient.js +22 -22
- package/lib/models/InboxRegistration.js +7 -7
- package/lib/models/InboxUpload.js +9 -9
- package/lib/models/Invoice.js +12 -12
- package/lib/models/IpAddress.js +17 -17
- package/lib/models/Lock.js +27 -31
- package/lib/models/Message.js +60 -64
- package/lib/models/MessageComment.js +46 -50
- package/lib/models/MessageCommentReaction.js +27 -31
- package/lib/models/MessageReaction.js +27 -31
- package/lib/models/Notification.js +66 -70
- package/lib/models/Payment.js +12 -12
- package/lib/models/Permission.js +28 -32
- package/lib/models/Priority.js +9 -9
- package/lib/models/Project.js +39 -43
- package/lib/models/PublicKey.js +46 -50
- package/lib/models/RemoteBandwidthSnapshot.js +5 -5
- package/lib/models/RemoteServer.js +306 -310
- package/lib/models/Request.js +33 -37
- package/lib/models/Session.js +11 -15
- package/lib/models/SettingsChange.js +5 -5
- package/lib/models/SftpHostKey.js +40 -44
- package/lib/models/ShareGroup.js +50 -54
- package/lib/models/Site.js +138 -138
- package/lib/models/Snapshot.js +44 -48
- package/lib/models/SsoStrategy.js +15 -19
- package/lib/models/Style.js +17 -21
- package/lib/models/UsageDailySnapshot.js +5 -5
- package/lib/models/UsageSnapshot.js +5 -5
- package/lib/models/User.js +156 -172
- package/lib/models/UserCipherUse.js +7 -7
- package/lib/models/UserRequest.js +26 -30
- package/lib/models/WebhookTest.js +15 -15
- package/package.json +6 -2
- package/src/Api.js +2 -1
- package/src/Errors.js +189 -177
- package/src/Files.js +1 -1
- package/src/models/AccountLineItem.js +5 -2
- package/src/models/Action.js +5 -2
- package/src/models/ActionNotificationExport.js +36 -35
- package/src/models/ActionNotificationExportResult.js +15 -13
- package/src/models/ActionWebhookFailure.js +9 -8
- package/src/models/ApiKey.js +69 -72
- package/src/models/App.js +10 -8
- package/src/models/As2IncomingMessage.js +12 -10
- package/src/models/As2OutgoingMessage.js +12 -10
- package/src/models/As2Partner.js +61 -60
- package/src/models/As2Station.js +58 -57
- package/src/models/Auto.js +5 -2
- package/src/models/Automation.js +121 -110
- package/src/models/AutomationRun.js +18 -17
- package/src/models/BandwidthSnapshot.js +10 -8
- package/src/models/Behavior.js +85 -86
- package/src/models/Bundle.js +121 -110
- package/src/models/BundleDownload.js +14 -12
- package/src/models/BundleNotification.js +40 -43
- package/src/models/BundleRecipient.js +33 -32
- package/src/models/BundleRegistration.js +12 -10
- package/src/models/Clickwrap.js +60 -58
- package/src/models/DnsRecord.js +10 -8
- package/src/models/EmailIncomingMessage.js +10 -8
- package/src/models/Errors.js +5 -2
- package/src/models/ExternalEvent.js +29 -29
- package/src/models/File.js +116 -108
- package/src/models/FileAction.js +5 -2
- package/src/models/FileComment.js +45 -46
- package/src/models/FileCommentReaction.js +26 -26
- package/src/models/FileMigration.js +10 -8
- package/src/models/FileUploadPart.js +5 -2
- package/src/models/Folder.js +32 -29
- package/src/models/FormField.js +5 -2
- package/src/models/FormFieldSet.js +49 -50
- package/src/models/GpgKey.js +60 -59
- package/src/models/Group.js +58 -57
- package/src/models/GroupUser.js +60 -58
- package/src/models/History.js +77 -74
- package/src/models/HistoryExport.js +62 -61
- package/src/models/HistoryExportResult.js +15 -13
- package/src/models/Image.js +5 -2
- package/src/models/InboxRecipient.js +33 -32
- package/src/models/InboxRegistration.js +12 -10
- package/src/models/InboxUpload.js +14 -12
- package/src/models/Invoice.js +17 -14
- package/src/models/InvoiceLineItem.js +5 -2
- package/src/models/IpAddress.js +22 -20
- package/src/models/Lock.js +36 -36
- package/src/models/Message.js +66 -66
- package/src/models/MessageComment.js +50 -52
- package/src/models/MessageCommentReaction.js +38 -40
- package/src/models/MessageReaction.js +38 -40
- package/src/models/Notification.js +74 -72
- package/src/models/Payment.js +17 -14
- package/src/models/PaymentLineItem.js +5 -2
- package/src/models/Permission.js +39 -40
- package/src/models/Preview.js +5 -2
- package/src/models/Priority.js +14 -12
- package/src/models/Project.js +43 -45
- package/src/models/PublicIpAddress.js +5 -2
- package/src/models/PublicKey.js +50 -52
- package/src/models/RemoteBandwidthSnapshot.js +10 -8
- package/src/models/RemoteServer.js +380 -312
- package/src/models/RemoteServerConfigurationFile.js +5 -2
- package/src/models/Request.js +44 -46
- package/src/models/Session.js +22 -22
- package/src/models/SettingsChange.js +10 -8
- package/src/models/SftpHostKey.js +45 -46
- package/src/models/ShareGroup.js +56 -56
- package/src/models/ShareGroupMember.js +5 -2
- package/src/models/Site.js +143 -142
- package/src/models/Snapshot.js +50 -50
- package/src/models/SsoStrategy.js +20 -21
- package/src/models/Status.js +5 -2
- package/src/models/Style.js +22 -23
- package/src/models/UsageDailySnapshot.js +10 -8
- package/src/models/UsageSnapshot.js +10 -8
- package/src/models/User.js +185 -168
- package/src/models/UserCipherUse.js +12 -10
- package/src/models/UserRequest.js +37 -39
- package/src/models/WebhookTest.js +26 -24
- package/test/Api.test.js +163 -0
- package/test/{package.json → integration/package.json} +1 -1
- package/test/{src → integration/src}/index.js +1 -1
- package/test.sh +2 -1
- /package/test/{.babelrc → integration/.babelrc} +0 -0
- /package/test/{index.js → integration/index.js} +0 -0
package/lib/models/History.js
CHANGED
|
@@ -126,54 +126,54 @@ _class = History;
|
|
|
126
126
|
}
|
|
127
127
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
128
128
|
case 4:
|
|
129
|
-
params
|
|
130
|
-
if (params
|
|
129
|
+
params.path = path;
|
|
130
|
+
if (params.path) {
|
|
131
131
|
_context.next = 7;
|
|
132
132
|
break;
|
|
133
133
|
}
|
|
134
134
|
throw new errors.MissingParameterError('Parameter missing: path');
|
|
135
135
|
case 7:
|
|
136
|
-
if (!(params
|
|
136
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
137
137
|
_context.next = 9;
|
|
138
138
|
break;
|
|
139
139
|
}
|
|
140
|
-
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
140
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
141
141
|
case 9:
|
|
142
|
-
if (!(params
|
|
142
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
143
143
|
_context.next = 11;
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
|
-
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
146
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
147
147
|
case 11:
|
|
148
|
-
if (!(params
|
|
148
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
149
149
|
_context.next = 13;
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
|
-
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params
|
|
152
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
153
153
|
case 13:
|
|
154
|
-
if (!(params
|
|
154
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
155
155
|
_context.next = 15;
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
158
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
159
159
|
case 15:
|
|
160
|
-
if (!(params
|
|
160
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
161
161
|
_context.next = 17;
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
164
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
164
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
165
165
|
case 17:
|
|
166
|
-
if (!(params
|
|
166
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
|
167
167
|
_context.next = 19;
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
|
-
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params
|
|
170
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
|
171
171
|
case 19:
|
|
172
172
|
_context.next = 21;
|
|
173
|
-
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params
|
|
173
|
+
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
|
174
174
|
case 21:
|
|
175
175
|
response = _context.sent;
|
|
176
|
-
Action = require(
|
|
176
|
+
Action = require('./Action.js').default;
|
|
177
177
|
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
178
|
return new Action(obj, options);
|
|
179
179
|
})) || []);
|
|
@@ -214,54 +214,54 @@ _class = History;
|
|
|
214
214
|
}
|
|
215
215
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
216
216
|
case 4:
|
|
217
|
-
params
|
|
218
|
-
if (params
|
|
217
|
+
params.path = path;
|
|
218
|
+
if (params.path) {
|
|
219
219
|
_context2.next = 7;
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
222
|
throw new errors.MissingParameterError('Parameter missing: path');
|
|
223
223
|
case 7:
|
|
224
|
-
if (!(params
|
|
224
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
225
225
|
_context2.next = 9;
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
|
-
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
228
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
229
229
|
case 9:
|
|
230
|
-
if (!(params
|
|
230
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
231
231
|
_context2.next = 11;
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
234
|
-
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
234
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
235
235
|
case 11:
|
|
236
|
-
if (!(params
|
|
236
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
237
237
|
_context2.next = 13;
|
|
238
238
|
break;
|
|
239
239
|
}
|
|
240
|
-
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params
|
|
240
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
241
241
|
case 13:
|
|
242
|
-
if (!(params
|
|
242
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
243
243
|
_context2.next = 15;
|
|
244
244
|
break;
|
|
245
245
|
}
|
|
246
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
246
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
247
247
|
case 15:
|
|
248
|
-
if (!(params
|
|
248
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
249
249
|
_context2.next = 17;
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
252
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
253
253
|
case 17:
|
|
254
|
-
if (!(params
|
|
254
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
|
255
255
|
_context2.next = 19;
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
|
-
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params
|
|
258
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
|
259
259
|
case 19:
|
|
260
260
|
_context2.next = 21;
|
|
261
|
-
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params
|
|
261
|
+
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
|
262
262
|
case 21:
|
|
263
263
|
response = _context2.sent;
|
|
264
|
-
Action = require(
|
|
264
|
+
Action = require('./Action.js').default;
|
|
265
265
|
return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
266
266
|
return new Action(obj, options);
|
|
267
267
|
})) || []);
|
|
@@ -302,54 +302,54 @@ _class = History;
|
|
|
302
302
|
}
|
|
303
303
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
304
304
|
case 4:
|
|
305
|
-
params
|
|
306
|
-
if (params
|
|
305
|
+
params.user_id = userId;
|
|
306
|
+
if (params.user_id) {
|
|
307
307
|
_context3.next = 7;
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
throw new errors.MissingParameterError('Parameter missing: user_id');
|
|
311
311
|
case 7:
|
|
312
|
-
if (!(params
|
|
312
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
313
313
|
_context3.next = 9;
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
|
-
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
316
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
317
317
|
case 9:
|
|
318
|
-
if (!(params
|
|
318
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
319
319
|
_context3.next = 11;
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
|
-
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
322
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
323
323
|
case 11:
|
|
324
|
-
if (!(params
|
|
324
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
325
325
|
_context3.next = 13;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
|
-
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params
|
|
328
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
329
329
|
case 13:
|
|
330
|
-
if (!(params
|
|
330
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
331
331
|
_context3.next = 15;
|
|
332
332
|
break;
|
|
333
333
|
}
|
|
334
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
334
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
335
335
|
case 15:
|
|
336
|
-
if (!(params
|
|
336
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
337
337
|
_context3.next = 17;
|
|
338
338
|
break;
|
|
339
339
|
}
|
|
340
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
340
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
341
341
|
case 17:
|
|
342
|
-
if (!(params
|
|
342
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
343
343
|
_context3.next = 19;
|
|
344
344
|
break;
|
|
345
345
|
}
|
|
346
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
346
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
347
347
|
case 19:
|
|
348
348
|
_context3.next = 21;
|
|
349
|
-
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params
|
|
349
|
+
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
|
|
350
350
|
case 21:
|
|
351
351
|
response = _context3.sent;
|
|
352
|
-
Action = require(
|
|
352
|
+
Action = require('./Action.js').default;
|
|
353
353
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
|
|
354
354
|
return new Action(obj, options);
|
|
355
355
|
})) || []);
|
|
@@ -382,41 +382,41 @@ _class = History;
|
|
|
382
382
|
case 0:
|
|
383
383
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
384
384
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
385
|
-
if (!(params
|
|
385
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
386
386
|
_context4.next = 4;
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
|
-
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
389
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
390
390
|
case 4:
|
|
391
|
-
if (!(params
|
|
391
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
392
392
|
_context4.next = 6;
|
|
393
393
|
break;
|
|
394
394
|
}
|
|
395
|
-
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
395
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
396
396
|
case 6:
|
|
397
|
-
if (!(params
|
|
397
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
398
398
|
_context4.next = 8;
|
|
399
399
|
break;
|
|
400
400
|
}
|
|
401
|
-
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params
|
|
401
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
402
402
|
case 8:
|
|
403
|
-
if (!(params
|
|
403
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
404
404
|
_context4.next = 10;
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
407
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
408
408
|
case 10:
|
|
409
|
-
if (!(params
|
|
409
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
410
410
|
_context4.next = 12;
|
|
411
411
|
break;
|
|
412
412
|
}
|
|
413
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
413
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
414
414
|
case 12:
|
|
415
415
|
_context4.next = 14;
|
|
416
|
-
return _Api.default.sendRequest(
|
|
416
|
+
return _Api.default.sendRequest('/history/login', 'GET', params, options);
|
|
417
417
|
case 14:
|
|
418
418
|
response = _context4.sent;
|
|
419
|
-
Action = require(
|
|
419
|
+
Action = require('./Action.js').default;
|
|
420
420
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.map(function (obj) {
|
|
421
421
|
return new Action(obj, options);
|
|
422
422
|
})) || []);
|
|
@@ -447,41 +447,41 @@ _class = History;
|
|
|
447
447
|
case 0:
|
|
448
448
|
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
449
449
|
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
450
|
-
if (!(params
|
|
450
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
451
451
|
_context5.next = 4;
|
|
452
452
|
break;
|
|
453
453
|
}
|
|
454
|
-
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
454
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
455
455
|
case 4:
|
|
456
|
-
if (!(params
|
|
456
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
457
457
|
_context5.next = 6;
|
|
458
458
|
break;
|
|
459
459
|
}
|
|
460
|
-
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
460
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
461
461
|
case 6:
|
|
462
|
-
if (!(params
|
|
462
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
463
463
|
_context5.next = 8;
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params
|
|
466
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
467
467
|
case 8:
|
|
468
|
-
if (!(params
|
|
468
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
469
469
|
_context5.next = 10;
|
|
470
470
|
break;
|
|
471
471
|
}
|
|
472
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
472
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
473
473
|
case 10:
|
|
474
|
-
if (!(params
|
|
474
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
475
475
|
_context5.next = 12;
|
|
476
476
|
break;
|
|
477
477
|
}
|
|
478
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
478
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
479
479
|
case 12:
|
|
480
480
|
_context5.next = 14;
|
|
481
|
-
return _Api.default.sendRequest(
|
|
481
|
+
return _Api.default.sendRequest('/history', 'GET', params, options);
|
|
482
482
|
case 14:
|
|
483
483
|
response = _context5.sent;
|
|
484
|
-
Action = require(
|
|
484
|
+
Action = require('./Action.js').default;
|
|
485
485
|
return _context5.abrupt("return", (response === null || response === void 0 || (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : _response$data5.map(function (obj) {
|
|
486
486
|
return new Action(obj, options);
|
|
487
487
|
})) || []);
|
|
@@ -220,7 +220,7 @@ var HistoryExport = /*#__PURE__*/(0, _createClass2.default)(function HistoryExpo
|
|
|
220
220
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
221
221
|
while (1) switch (_context.prev = _context.next) {
|
|
222
222
|
case 0:
|
|
223
|
-
if (!_this.attributes
|
|
223
|
+
if (!_this.attributes.id) {
|
|
224
224
|
_context.next = 4;
|
|
225
225
|
break;
|
|
226
226
|
}
|
|
@@ -271,21 +271,21 @@ _class = HistoryExport;
|
|
|
271
271
|
}
|
|
272
272
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
273
273
|
case 4:
|
|
274
|
-
params
|
|
275
|
-
if (params
|
|
274
|
+
params.id = id;
|
|
275
|
+
if (params.id) {
|
|
276
276
|
_context2.next = 7;
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
280
280
|
case 7:
|
|
281
|
-
if (!(params
|
|
281
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
282
282
|
_context2.next = 9;
|
|
283
283
|
break;
|
|
284
284
|
}
|
|
285
|
-
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
285
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
286
286
|
case 9:
|
|
287
287
|
_context2.next = 11;
|
|
288
|
-
return _Api.default.sendRequest("/history_exports/".concat(encodeURIComponent(params
|
|
288
|
+
return _Api.default.sendRequest("/history_exports/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
289
289
|
case 11:
|
|
290
290
|
response = _context2.sent;
|
|
291
291
|
return _context2.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
|
|
@@ -337,140 +337,140 @@ _class = HistoryExport;
|
|
|
337
337
|
case 0:
|
|
338
338
|
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
339
339
|
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
|
340
|
-
if (!(params
|
|
340
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
341
341
|
_context3.next = 4;
|
|
342
342
|
break;
|
|
343
343
|
}
|
|
344
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
344
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
345
345
|
case 4:
|
|
346
|
-
if (!(params
|
|
346
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
347
347
|
_context3.next = 6;
|
|
348
348
|
break;
|
|
349
349
|
}
|
|
350
|
-
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
350
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
351
351
|
case 6:
|
|
352
|
-
if (!(params
|
|
352
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
353
353
|
_context3.next = 8;
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
|
-
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params
|
|
356
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
357
357
|
case 8:
|
|
358
|
-
if (!(params
|
|
358
|
+
if (!(params.query_action && !(0, _utils.isString)(params.query_action))) {
|
|
359
359
|
_context3.next = 10;
|
|
360
360
|
break;
|
|
361
361
|
}
|
|
362
|
-
throw new errors.InvalidParameterError("Bad parameter: query_action must be of type String, received ".concat((0, _utils.getType)(params
|
|
362
|
+
throw new errors.InvalidParameterError("Bad parameter: query_action must be of type String, received ".concat((0, _utils.getType)(params.query_action)));
|
|
363
363
|
case 10:
|
|
364
|
-
if (!(params
|
|
364
|
+
if (!(params.query_interface && !(0, _utils.isString)(params.query_interface))) {
|
|
365
365
|
_context3.next = 12;
|
|
366
366
|
break;
|
|
367
367
|
}
|
|
368
|
-
throw new errors.InvalidParameterError("Bad parameter: query_interface must be of type String, received ".concat((0, _utils.getType)(params
|
|
368
|
+
throw new errors.InvalidParameterError("Bad parameter: query_interface must be of type String, received ".concat((0, _utils.getType)(params.query_interface)));
|
|
369
369
|
case 12:
|
|
370
|
-
if (!(params
|
|
370
|
+
if (!(params.query_user_id && !(0, _utils.isString)(params.query_user_id))) {
|
|
371
371
|
_context3.next = 14;
|
|
372
372
|
break;
|
|
373
373
|
}
|
|
374
|
-
throw new errors.InvalidParameterError("Bad parameter: query_user_id must be of type String, received ".concat((0, _utils.getType)(params
|
|
374
|
+
throw new errors.InvalidParameterError("Bad parameter: query_user_id must be of type String, received ".concat((0, _utils.getType)(params.query_user_id)));
|
|
375
375
|
case 14:
|
|
376
|
-
if (!(params
|
|
376
|
+
if (!(params.query_file_id && !(0, _utils.isString)(params.query_file_id))) {
|
|
377
377
|
_context3.next = 16;
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
|
-
throw new errors.InvalidParameterError("Bad parameter: query_file_id must be of type String, received ".concat((0, _utils.getType)(params
|
|
380
|
+
throw new errors.InvalidParameterError("Bad parameter: query_file_id must be of type String, received ".concat((0, _utils.getType)(params.query_file_id)));
|
|
381
381
|
case 16:
|
|
382
|
-
if (!(params
|
|
382
|
+
if (!(params.query_parent_id && !(0, _utils.isString)(params.query_parent_id))) {
|
|
383
383
|
_context3.next = 18;
|
|
384
384
|
break;
|
|
385
385
|
}
|
|
386
|
-
throw new errors.InvalidParameterError("Bad parameter: query_parent_id must be of type String, received ".concat((0, _utils.getType)(params
|
|
386
|
+
throw new errors.InvalidParameterError("Bad parameter: query_parent_id must be of type String, received ".concat((0, _utils.getType)(params.query_parent_id)));
|
|
387
387
|
case 18:
|
|
388
|
-
if (!(params
|
|
388
|
+
if (!(params.query_path && !(0, _utils.isString)(params.query_path))) {
|
|
389
389
|
_context3.next = 20;
|
|
390
390
|
break;
|
|
391
391
|
}
|
|
392
|
-
throw new errors.InvalidParameterError("Bad parameter: query_path must be of type String, received ".concat((0, _utils.getType)(params
|
|
392
|
+
throw new errors.InvalidParameterError("Bad parameter: query_path must be of type String, received ".concat((0, _utils.getType)(params.query_path)));
|
|
393
393
|
case 20:
|
|
394
|
-
if (!(params
|
|
394
|
+
if (!(params.query_folder && !(0, _utils.isString)(params.query_folder))) {
|
|
395
395
|
_context3.next = 22;
|
|
396
396
|
break;
|
|
397
397
|
}
|
|
398
|
-
throw new errors.InvalidParameterError("Bad parameter: query_folder must be of type String, received ".concat((0, _utils.getType)(params
|
|
398
|
+
throw new errors.InvalidParameterError("Bad parameter: query_folder must be of type String, received ".concat((0, _utils.getType)(params.query_folder)));
|
|
399
399
|
case 22:
|
|
400
|
-
if (!(params
|
|
400
|
+
if (!(params.query_src && !(0, _utils.isString)(params.query_src))) {
|
|
401
401
|
_context3.next = 24;
|
|
402
402
|
break;
|
|
403
403
|
}
|
|
404
|
-
throw new errors.InvalidParameterError("Bad parameter: query_src must be of type String, received ".concat((0, _utils.getType)(params
|
|
404
|
+
throw new errors.InvalidParameterError("Bad parameter: query_src must be of type String, received ".concat((0, _utils.getType)(params.query_src)));
|
|
405
405
|
case 24:
|
|
406
|
-
if (!(params
|
|
406
|
+
if (!(params.query_destination && !(0, _utils.isString)(params.query_destination))) {
|
|
407
407
|
_context3.next = 26;
|
|
408
408
|
break;
|
|
409
409
|
}
|
|
410
|
-
throw new errors.InvalidParameterError("Bad parameter: query_destination must be of type String, received ".concat((0, _utils.getType)(params
|
|
410
|
+
throw new errors.InvalidParameterError("Bad parameter: query_destination must be of type String, received ".concat((0, _utils.getType)(params.query_destination)));
|
|
411
411
|
case 26:
|
|
412
|
-
if (!(params
|
|
412
|
+
if (!(params.query_ip && !(0, _utils.isString)(params.query_ip))) {
|
|
413
413
|
_context3.next = 28;
|
|
414
414
|
break;
|
|
415
415
|
}
|
|
416
|
-
throw new errors.InvalidParameterError("Bad parameter: query_ip must be of type String, received ".concat((0, _utils.getType)(params
|
|
416
|
+
throw new errors.InvalidParameterError("Bad parameter: query_ip must be of type String, received ".concat((0, _utils.getType)(params.query_ip)));
|
|
417
417
|
case 28:
|
|
418
|
-
if (!(params
|
|
418
|
+
if (!(params.query_username && !(0, _utils.isString)(params.query_username))) {
|
|
419
419
|
_context3.next = 30;
|
|
420
420
|
break;
|
|
421
421
|
}
|
|
422
|
-
throw new errors.InvalidParameterError("Bad parameter: query_username must be of type String, received ".concat((0, _utils.getType)(params
|
|
422
|
+
throw new errors.InvalidParameterError("Bad parameter: query_username must be of type String, received ".concat((0, _utils.getType)(params.query_username)));
|
|
423
423
|
case 30:
|
|
424
|
-
if (!(params
|
|
424
|
+
if (!(params.query_failure_type && !(0, _utils.isString)(params.query_failure_type))) {
|
|
425
425
|
_context3.next = 32;
|
|
426
426
|
break;
|
|
427
427
|
}
|
|
428
|
-
throw new errors.InvalidParameterError("Bad parameter: query_failure_type must be of type String, received ".concat((0, _utils.getType)(params
|
|
428
|
+
throw new errors.InvalidParameterError("Bad parameter: query_failure_type must be of type String, received ".concat((0, _utils.getType)(params.query_failure_type)));
|
|
429
429
|
case 32:
|
|
430
|
-
if (!(params
|
|
430
|
+
if (!(params.query_target_id && !(0, _utils.isString)(params.query_target_id))) {
|
|
431
431
|
_context3.next = 34;
|
|
432
432
|
break;
|
|
433
433
|
}
|
|
434
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_id must be of type String, received ".concat((0, _utils.getType)(params
|
|
434
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_id must be of type String, received ".concat((0, _utils.getType)(params.query_target_id)));
|
|
435
435
|
case 34:
|
|
436
|
-
if (!(params
|
|
436
|
+
if (!(params.query_target_name && !(0, _utils.isString)(params.query_target_name))) {
|
|
437
437
|
_context3.next = 36;
|
|
438
438
|
break;
|
|
439
439
|
}
|
|
440
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_name must be of type String, received ".concat((0, _utils.getType)(params
|
|
440
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_name must be of type String, received ".concat((0, _utils.getType)(params.query_target_name)));
|
|
441
441
|
case 36:
|
|
442
|
-
if (!(params
|
|
442
|
+
if (!(params.query_target_permission && !(0, _utils.isString)(params.query_target_permission))) {
|
|
443
443
|
_context3.next = 38;
|
|
444
444
|
break;
|
|
445
445
|
}
|
|
446
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_permission must be of type String, received ".concat((0, _utils.getType)(params
|
|
446
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_permission must be of type String, received ".concat((0, _utils.getType)(params.query_target_permission)));
|
|
447
447
|
case 38:
|
|
448
|
-
if (!(params
|
|
448
|
+
if (!(params.query_target_user_id && !(0, _utils.isString)(params.query_target_user_id))) {
|
|
449
449
|
_context3.next = 40;
|
|
450
450
|
break;
|
|
451
451
|
}
|
|
452
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_user_id must be of type String, received ".concat((0, _utils.getType)(params
|
|
452
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_user_id must be of type String, received ".concat((0, _utils.getType)(params.query_target_user_id)));
|
|
453
453
|
case 40:
|
|
454
|
-
if (!(params
|
|
454
|
+
if (!(params.query_target_username && !(0, _utils.isString)(params.query_target_username))) {
|
|
455
455
|
_context3.next = 42;
|
|
456
456
|
break;
|
|
457
457
|
}
|
|
458
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_username must be of type String, received ".concat((0, _utils.getType)(params
|
|
458
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_username must be of type String, received ".concat((0, _utils.getType)(params.query_target_username)));
|
|
459
459
|
case 42:
|
|
460
|
-
if (!(params
|
|
460
|
+
if (!(params.query_target_platform && !(0, _utils.isString)(params.query_target_platform))) {
|
|
461
461
|
_context3.next = 44;
|
|
462
462
|
break;
|
|
463
463
|
}
|
|
464
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_platform must be of type String, received ".concat((0, _utils.getType)(params
|
|
464
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_platform must be of type String, received ".concat((0, _utils.getType)(params.query_target_platform)));
|
|
465
465
|
case 44:
|
|
466
|
-
if (!(params
|
|
466
|
+
if (!(params.query_target_permission_set && !(0, _utils.isString)(params.query_target_permission_set))) {
|
|
467
467
|
_context3.next = 46;
|
|
468
468
|
break;
|
|
469
469
|
}
|
|
470
|
-
throw new errors.InvalidParameterError("Bad parameter: query_target_permission_set must be of type String, received ".concat((0, _utils.getType)(params
|
|
470
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_permission_set must be of type String, received ".concat((0, _utils.getType)(params.query_target_permission_set)));
|
|
471
471
|
case 46:
|
|
472
472
|
_context3.next = 48;
|
|
473
|
-
return _Api.default.sendRequest(
|
|
473
|
+
return _Api.default.sendRequest('/history_exports', 'POST', params, options);
|
|
474
474
|
case 48:
|
|
475
475
|
response = _context3.sent;
|
|
476
476
|
return _context3.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
|
|
@@ -163,38 +163,38 @@ _class = HistoryExportResult;
|
|
|
163
163
|
case 0:
|
|
164
164
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
165
165
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
166
|
-
if (params
|
|
166
|
+
if (params.history_export_id) {
|
|
167
167
|
_context.next = 4;
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
throw new errors.MissingParameterError('Parameter missing: history_export_id');
|
|
171
171
|
case 4:
|
|
172
|
-
if (!(params
|
|
172
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
173
173
|
_context.next = 6;
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
176
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
177
177
|
case 6:
|
|
178
|
-
if (!(params
|
|
178
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
179
179
|
_context.next = 8;
|
|
180
180
|
break;
|
|
181
181
|
}
|
|
182
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
182
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
183
183
|
case 8:
|
|
184
|
-
if (!(params
|
|
184
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
185
185
|
_context.next = 10;
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
188
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
189
189
|
case 10:
|
|
190
|
-
if (!(params
|
|
190
|
+
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
|
191
191
|
_context.next = 12;
|
|
192
192
|
break;
|
|
193
193
|
}
|
|
194
|
-
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
194
|
+
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
|
|
195
195
|
case 12:
|
|
196
196
|
_context.next = 14;
|
|
197
|
-
return _Api.default.sendRequest(
|
|
197
|
+
return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
|
|
198
198
|
case 14:
|
|
199
199
|
response = _context.sent;
|
|
200
200
|
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) {
|