files.com 1.2.170 → 1.2.171
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/ActionNotificationExportResult.md +17 -0
- package/docs/models/ApiKey.md +21 -0
- package/docs/models/ApiRequestLog.md +14 -0
- package/docs/models/App.md +15 -0
- package/docs/models/As2IncomingMessage.md +21 -0
- package/docs/models/As2OutgoingMessage.md +21 -0
- package/docs/models/As2Partner.md +9 -0
- package/docs/models/As2Station.md +9 -0
- package/docs/models/Automation.md +18 -0
- package/docs/models/AutomationLog.md +14 -0
- package/docs/models/AutomationRun.md +17 -0
- package/docs/models/BandwidthSnapshot.md +18 -0
- package/docs/models/Behavior.md +15 -0
- package/docs/models/Bundle.md +22 -0
- package/docs/models/BundleAction.md +18 -0
- package/docs/models/BundleDownload.md +23 -0
- package/docs/models/BundleNotification.md +14 -0
- package/docs/models/BundleRecipient.md +17 -0
- package/docs/models/BundleRegistration.md +15 -0
- package/docs/models/Clickwrap.md +9 -0
- package/docs/models/DnsRecord.md +9 -0
- package/docs/models/EmailIncomingMessage.md +19 -0
- package/docs/models/EmailLog.md +14 -0
- package/docs/models/ExavaultApiRequestLog.md +14 -0
- package/docs/models/Export.md +27 -1
- package/docs/models/ExternalEvent.md +19 -0
- package/docs/models/FileMigrationLog.md +14 -0
- package/docs/models/FormFieldSet.md +15 -0
- package/docs/models/FtpActionLog.md +14 -0
- package/docs/models/GpgKey.md +16 -0
- package/docs/models/Group.md +19 -0
- package/docs/models/GroupUser.md +17 -0
- package/docs/models/History.md +85 -0
- package/docs/models/HistoryExportResult.md +17 -0
- package/docs/models/InboxRecipient.md +17 -0
- package/docs/models/InboxRegistration.md +15 -0
- package/docs/models/InboxUpload.md +19 -1
- package/docs/models/Invoice.md +9 -0
- package/docs/models/IpAddress.md +36 -0
- package/docs/models/Message.md +17 -0
- package/docs/models/MessageComment.md +17 -0
- package/docs/models/MessageCommentReaction.md +17 -0
- package/docs/models/MessageReaction.md +17 -0
- package/docs/models/Notification.md +20 -0
- package/docs/models/OutboundConnectionLog.md +14 -0
- package/docs/models/Payment.md +9 -0
- package/docs/models/Permission.md +21 -0
- package/docs/models/Priority.md +13 -0
- package/docs/models/Project.md +9 -0
- package/docs/models/PublicHostingRequestLog.md +14 -0
- package/docs/models/PublicKey.md +15 -0
- package/docs/models/RemoteBandwidthSnapshot.md +18 -0
- package/docs/models/RemoteServer.md +15 -0
- package/docs/models/Request.md +17 -0
- package/docs/models/SettingsChange.md +14 -0
- package/docs/models/SftpActionLog.md +14 -0
- package/docs/models/SftpHostKey.md +9 -0
- package/docs/models/ShareGroup.md +15 -0
- package/docs/models/SiemHttpDestination.md +9 -0
- package/docs/models/Snapshot.md +9 -0
- package/docs/models/SsoStrategy.md +9 -0
- package/docs/models/SyncLog.md +14 -0
- package/docs/models/UsageDailySnapshot.md +18 -0
- package/docs/models/UsageSnapshot.md +9 -0
- package/docs/models/User.md +24 -0
- package/docs/models/UserCipherUse.md +15 -0
- package/docs/models/UserRequest.md +9 -0
- package/docs/models/UserSftpClientUse.md +15 -0
- package/docs/models/WebDavActionLog.md +14 -0
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +47 -0
- package/lib/models/ApiKey.js +60 -20
- package/lib/models/ApiRequestLog.js +29 -0
- package/lib/models/App.js +30 -0
- package/lib/models/As2IncomingMessage.js +40 -0
- package/lib/models/As2OutgoingMessage.js +40 -0
- package/lib/models/As2Partner.js +24 -0
- package/lib/models/As2Station.js +24 -0
- package/lib/models/Automation.js +33 -0
- package/lib/models/AutomationLog.js +29 -0
- package/lib/models/AutomationRun.js +42 -0
- package/lib/models/BandwidthSnapshot.js +33 -0
- package/lib/models/Behavior.js +30 -0
- package/lib/models/Bundle.js +41 -0
- package/lib/models/BundleAction.js +33 -0
- package/lib/models/BundleDownload.js +47 -0
- package/lib/models/BundleNotification.js +29 -0
- package/lib/models/BundleRecipient.js +42 -0
- package/lib/models/BundleRegistration.js +34 -0
- package/lib/models/Clickwrap.js +24 -0
- package/lib/models/DnsRecord.js +24 -0
- package/lib/models/EmailIncomingMessage.js +34 -0
- package/lib/models/EmailLog.js +29 -0
- package/lib/models/ExavaultApiRequestLog.js +29 -0
- package/lib/models/Export.js +146 -34
- package/lib/models/ExternalEvent.js +34 -0
- package/lib/models/FileMigrationLog.js +29 -0
- package/lib/models/FormFieldSet.js +34 -0
- package/lib/models/FtpActionLog.js +29 -0
- package/lib/models/GpgKey.js +35 -0
- package/lib/models/Group.js +38 -0
- package/lib/models/GroupUser.js +41 -0
- package/lib/models/History.js +322 -0
- package/lib/models/HistoryExportResult.js +47 -0
- package/lib/models/InboxRecipient.js +42 -0
- package/lib/models/InboxRegistration.js +34 -0
- package/lib/models/InboxUpload.js +34 -1
- package/lib/models/Invoice.js +24 -0
- package/lib/models/IpAddress.js +96 -0
- package/lib/models/Message.js +47 -0
- package/lib/models/MessageComment.js +47 -0
- package/lib/models/MessageCommentReaction.js +47 -0
- package/lib/models/MessageReaction.js +47 -0
- package/lib/models/Notification.js +45 -0
- package/lib/models/OutboundConnectionLog.js +29 -0
- package/lib/models/Payment.js +24 -0
- package/lib/models/Permission.js +52 -0
- package/lib/models/Priority.js +52 -0
- package/lib/models/Project.js +24 -0
- package/lib/models/PublicHostingRequestLog.js +29 -0
- package/lib/models/PublicKey.js +34 -0
- package/lib/models/RemoteBandwidthSnapshot.js +33 -0
- package/lib/models/RemoteServer.js +30 -0
- package/lib/models/Request.js +36 -0
- package/lib/models/SettingsChange.js +29 -0
- package/lib/models/SftpActionLog.js +29 -0
- package/lib/models/SftpHostKey.js +24 -0
- package/lib/models/ShareGroup.js +34 -0
- package/lib/models/SiemHttpDestination.js +49 -25
- package/lib/models/Snapshot.js +24 -0
- package/lib/models/SsoStrategy.js +24 -0
- package/lib/models/SyncLog.js +29 -0
- package/lib/models/UsageDailySnapshot.js +33 -0
- package/lib/models/UsageSnapshot.js +24 -0
- package/lib/models/User.js +49 -0
- package/lib/models/UserCipherUse.js +34 -0
- package/lib/models/UserRequest.js +24 -0
- package/lib/models/UserSftpClientUse.js +34 -0
- package/lib/models/WebDavActionLog.js +29 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +22 -0
- package/src/models/ApiKey.js +19 -0
- package/src/models/ApiRequestLog.js +10 -0
- package/src/models/App.js +11 -0
- package/src/models/As2IncomingMessage.js +19 -0
- package/src/models/As2OutgoingMessage.js +19 -0
- package/src/models/As2Partner.js +7 -0
- package/src/models/As2Station.js +7 -0
- package/src/models/Automation.js +14 -0
- package/src/models/AutomationLog.js +10 -0
- package/src/models/AutomationRun.js +19 -0
- package/src/models/BandwidthSnapshot.js +14 -0
- package/src/models/Behavior.js +11 -0
- package/src/models/Bundle.js +20 -0
- package/src/models/BundleAction.js +14 -0
- package/src/models/BundleDownload.js +24 -0
- package/src/models/BundleNotification.js +10 -0
- package/src/models/BundleRecipient.js +19 -0
- package/src/models/BundleRegistration.js +13 -0
- package/src/models/Clickwrap.js +7 -0
- package/src/models/DnsRecord.js +7 -0
- package/src/models/EmailIncomingMessage.js +15 -0
- package/src/models/EmailLog.js +10 -0
- package/src/models/ExavaultApiRequestLog.js +10 -0
- package/src/models/Export.js +83 -0
- package/src/models/ExternalEvent.js +15 -0
- package/src/models/FileMigrationLog.js +10 -0
- package/src/models/FormFieldSet.js +13 -0
- package/src/models/FtpActionLog.js +10 -0
- package/src/models/GpgKey.js +14 -0
- package/src/models/Group.js +17 -0
- package/src/models/GroupUser.js +18 -0
- package/src/models/History.js +167 -0
- package/src/models/HistoryExportResult.js +22 -0
- package/src/models/InboxRecipient.js +19 -0
- package/src/models/InboxRegistration.js +13 -0
- package/src/models/InboxUpload.js +15 -1
- package/src/models/Invoice.js +7 -0
- package/src/models/IpAddress.js +28 -0
- package/src/models/Message.js +22 -0
- package/src/models/MessageComment.js +22 -0
- package/src/models/MessageCommentReaction.js +22 -0
- package/src/models/MessageReaction.js +22 -0
- package/src/models/Notification.js +22 -0
- package/src/models/OutboundConnectionLog.js +10 -0
- package/src/models/Payment.js +7 -0
- package/src/models/Permission.js +27 -0
- package/src/models/Priority.js +23 -0
- package/src/models/Project.js +7 -0
- package/src/models/PublicHostingRequestLog.js +10 -0
- package/src/models/PublicKey.js +13 -0
- package/src/models/RemoteBandwidthSnapshot.js +14 -0
- package/src/models/RemoteServer.js +11 -0
- package/src/models/Request.js +15 -0
- package/src/models/SettingsChange.js +10 -0
- package/src/models/SftpActionLog.js +10 -0
- package/src/models/SftpHostKey.js +7 -0
- package/src/models/ShareGroup.js +13 -0
- package/src/models/SiemHttpDestination.js +7 -0
- package/src/models/Snapshot.js +7 -0
- package/src/models/SsoStrategy.js +7 -0
- package/src/models/SyncLog.js +10 -0
- package/src/models/UsageDailySnapshot.js +14 -0
- package/src/models/UsageSnapshot.js +7 -0
- package/src/models/User.js +26 -0
- package/src/models/UserCipherUse.js +13 -0
- package/src/models/UserRequest.js +7 -0
- package/src/models/UserSftpClientUse.js +13 -0
- package/src/models/WebDavActionLog.js +10 -0
|
@@ -215,6 +215,53 @@ _HistoryExportResult = HistoryExportResult;
|
|
|
215
215
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
216
216
|
return _HistoryExportResult.list(params, options);
|
|
217
217
|
});
|
|
218
|
+
// Parameters:
|
|
219
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
220
|
+
// history_export_id (required) - int64 - ID of the associated history export.
|
|
221
|
+
(0, _defineProperty2.default)(HistoryExportResult, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
222
|
+
var _response$data2;
|
|
223
|
+
var params,
|
|
224
|
+
options,
|
|
225
|
+
response,
|
|
226
|
+
Export,
|
|
227
|
+
_args2 = arguments;
|
|
228
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
229
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
230
|
+
case 0:
|
|
231
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
232
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
233
|
+
if (params.history_export_id) {
|
|
234
|
+
_context2.next = 4;
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
throw new errors.MissingParameterError('Parameter missing: history_export_id');
|
|
238
|
+
case 4:
|
|
239
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
240
|
+
_context2.next = 6;
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
244
|
+
case 6:
|
|
245
|
+
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
|
246
|
+
_context2.next = 8;
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
|
|
250
|
+
case 8:
|
|
251
|
+
_context2.next = 10;
|
|
252
|
+
return _Api.default.sendRequest('/history_export_results/create_export', 'POST', params, options);
|
|
253
|
+
case 10:
|
|
254
|
+
response = _context2.sent;
|
|
255
|
+
Export = require('./Export.js').default;
|
|
256
|
+
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) {
|
|
257
|
+
return new Export(obj, options);
|
|
258
|
+
})) || []);
|
|
259
|
+
case 13:
|
|
260
|
+
case "end":
|
|
261
|
+
return _context2.stop();
|
|
262
|
+
}
|
|
263
|
+
}, _callee2);
|
|
264
|
+
})));
|
|
218
265
|
var _default = exports.default = HistoryExportResult;
|
|
219
266
|
module.exports = HistoryExportResult;
|
|
220
267
|
module.exports.default = HistoryExportResult;
|
|
@@ -248,6 +248,48 @@ _InboxRecipient = InboxRecipient;
|
|
|
248
248
|
}
|
|
249
249
|
}, _callee3);
|
|
250
250
|
})));
|
|
251
|
+
// Parameters:
|
|
252
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
253
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
254
|
+
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
|
255
|
+
(0, _defineProperty2.default)(InboxRecipient, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
256
|
+
var _response$data2;
|
|
257
|
+
var params,
|
|
258
|
+
options,
|
|
259
|
+
response,
|
|
260
|
+
Export,
|
|
261
|
+
_args4 = arguments;
|
|
262
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
263
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
264
|
+
case 0:
|
|
265
|
+
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
266
|
+
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
267
|
+
if (params.inbox_id) {
|
|
268
|
+
_context4.next = 4;
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
throw new errors.MissingParameterError('Parameter missing: inbox_id');
|
|
272
|
+
case 4:
|
|
273
|
+
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
|
274
|
+
_context4.next = 6;
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
|
278
|
+
case 6:
|
|
279
|
+
_context4.next = 8;
|
|
280
|
+
return _Api.default.sendRequest('/inbox_recipients/create_export', 'POST', params, options);
|
|
281
|
+
case 8:
|
|
282
|
+
response = _context4.sent;
|
|
283
|
+
Export = require('./Export.js').default;
|
|
284
|
+
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
285
|
+
return new Export(obj, options);
|
|
286
|
+
})) || []);
|
|
287
|
+
case 11:
|
|
288
|
+
case "end":
|
|
289
|
+
return _context4.stop();
|
|
290
|
+
}
|
|
291
|
+
}, _callee4);
|
|
292
|
+
})));
|
|
251
293
|
var _default = exports.default = InboxRecipient;
|
|
252
294
|
module.exports = InboxRecipient;
|
|
253
295
|
module.exports.default = InboxRecipient;
|
|
@@ -146,6 +146,40 @@ _InboxRegistration = InboxRegistration;
|
|
|
146
146
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
147
147
|
return _InboxRegistration.list(params, options);
|
|
148
148
|
});
|
|
149
|
+
// Parameters:
|
|
150
|
+
// folder_behavior_id - int64 - ID of the associated Inbox.
|
|
151
|
+
(0, _defineProperty2.default)(InboxRegistration, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
152
|
+
var _response$data2;
|
|
153
|
+
var params,
|
|
154
|
+
options,
|
|
155
|
+
response,
|
|
156
|
+
Export,
|
|
157
|
+
_args2 = arguments;
|
|
158
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
159
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
160
|
+
case 0:
|
|
161
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
162
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
163
|
+
if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
|
|
164
|
+
_context2.next = 4;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
|
|
168
|
+
case 4:
|
|
169
|
+
_context2.next = 6;
|
|
170
|
+
return _Api.default.sendRequest('/inbox_registrations/create_export', 'POST', params, options);
|
|
171
|
+
case 6:
|
|
172
|
+
response = _context2.sent;
|
|
173
|
+
Export = require('./Export.js').default;
|
|
174
|
+
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) {
|
|
175
|
+
return new Export(obj, options);
|
|
176
|
+
})) || []);
|
|
177
|
+
case 9:
|
|
178
|
+
case "end":
|
|
179
|
+
return _context2.stop();
|
|
180
|
+
}
|
|
181
|
+
}, _callee2);
|
|
182
|
+
})));
|
|
149
183
|
var _default = exports.default = InboxRegistration;
|
|
150
184
|
module.exports = InboxRegistration;
|
|
151
185
|
module.exports.default = InboxRegistration;
|
|
@@ -63,7 +63,7 @@ _InboxUpload = InboxUpload;
|
|
|
63
63
|
// 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.
|
|
64
64
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
65
65
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
66
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`
|
|
66
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`, `[ created_at, inbox_registration_id ]`, `[ folder_behavior_id, inbox_registration_id ]` or `[ created_at, folder_behavior_id, inbox_registration_id ]`.
|
|
67
67
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
68
68
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
69
69
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
@@ -109,6 +109,39 @@ _InboxUpload = InboxUpload;
|
|
|
109
109
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
110
110
|
return _InboxUpload.list(params, options);
|
|
111
111
|
});
|
|
112
|
+
// Parameters:
|
|
113
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
114
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`, `[ created_at, inbox_registration_id ]`, `[ folder_behavior_id, inbox_registration_id ]` or `[ created_at, folder_behavior_id, inbox_registration_id ]`.
|
|
115
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
116
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
117
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
118
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
119
|
+
(0, _defineProperty2.default)(InboxUpload, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
120
|
+
var _response$data2;
|
|
121
|
+
var params,
|
|
122
|
+
options,
|
|
123
|
+
response,
|
|
124
|
+
Export,
|
|
125
|
+
_args2 = arguments;
|
|
126
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
127
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
128
|
+
case 0:
|
|
129
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
130
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
131
|
+
_context2.next = 4;
|
|
132
|
+
return _Api.default.sendRequest('/inbox_uploads/create_export', 'POST', params, options);
|
|
133
|
+
case 4:
|
|
134
|
+
response = _context2.sent;
|
|
135
|
+
Export = require('./Export.js').default;
|
|
136
|
+
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) {
|
|
137
|
+
return new Export(obj, options);
|
|
138
|
+
})) || []);
|
|
139
|
+
case 7:
|
|
140
|
+
case "end":
|
|
141
|
+
return _context2.stop();
|
|
142
|
+
}
|
|
143
|
+
}, _callee2);
|
|
144
|
+
})));
|
|
112
145
|
var _default = exports.default = InboxUpload;
|
|
113
146
|
module.exports = InboxUpload;
|
|
114
147
|
module.exports.default = InboxUpload;
|
package/lib/models/Invoice.js
CHANGED
|
@@ -199,6 +199,30 @@ _Invoice = Invoice;
|
|
|
199
199
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
200
200
|
return _Invoice.find(id, params, options);
|
|
201
201
|
});
|
|
202
|
+
(0, _defineProperty2.default)(Invoice, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
203
|
+
var _response$data2;
|
|
204
|
+
var options,
|
|
205
|
+
response,
|
|
206
|
+
Export,
|
|
207
|
+
_args3 = arguments;
|
|
208
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
209
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
210
|
+
case 0:
|
|
211
|
+
options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
212
|
+
_context3.next = 3;
|
|
213
|
+
return _Api.default.sendRequest('/invoices/create_export', 'POST', {}, options);
|
|
214
|
+
case 3:
|
|
215
|
+
response = _context3.sent;
|
|
216
|
+
Export = require('./Export.js').default;
|
|
217
|
+
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
218
|
+
return new Export(obj, options);
|
|
219
|
+
})) || []);
|
|
220
|
+
case 6:
|
|
221
|
+
case "end":
|
|
222
|
+
return _context3.stop();
|
|
223
|
+
}
|
|
224
|
+
}, _callee3);
|
|
225
|
+
})));
|
|
202
226
|
var _default = exports.default = Invoice;
|
|
203
227
|
module.exports = Invoice;
|
|
204
228
|
module.exports.default = Invoice;
|
package/lib/models/IpAddress.js
CHANGED
|
@@ -230,6 +230,102 @@ _IpAddress = IpAddress;
|
|
|
230
230
|
}
|
|
231
231
|
}, _callee4);
|
|
232
232
|
})));
|
|
233
|
+
(0, _defineProperty2.default)(IpAddress, "smartfileReservedCreateExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
234
|
+
var _response$data5;
|
|
235
|
+
var options,
|
|
236
|
+
response,
|
|
237
|
+
Export,
|
|
238
|
+
_args5 = arguments;
|
|
239
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
240
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
241
|
+
case 0:
|
|
242
|
+
options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
243
|
+
_context5.next = 3;
|
|
244
|
+
return _Api.default.sendRequest('/ip_addresses/smartfile-reserved/create_export', 'POST', {}, options);
|
|
245
|
+
case 3:
|
|
246
|
+
response = _context5.sent;
|
|
247
|
+
Export = require('./Export.js').default;
|
|
248
|
+
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) {
|
|
249
|
+
return new Export(obj, options);
|
|
250
|
+
})) || []);
|
|
251
|
+
case 6:
|
|
252
|
+
case "end":
|
|
253
|
+
return _context5.stop();
|
|
254
|
+
}
|
|
255
|
+
}, _callee5);
|
|
256
|
+
})));
|
|
257
|
+
(0, _defineProperty2.default)(IpAddress, "exavaultReservedCreateExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
258
|
+
var _response$data6;
|
|
259
|
+
var options,
|
|
260
|
+
response,
|
|
261
|
+
Export,
|
|
262
|
+
_args6 = arguments;
|
|
263
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
264
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
265
|
+
case 0:
|
|
266
|
+
options = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
267
|
+
_context6.next = 3;
|
|
268
|
+
return _Api.default.sendRequest('/ip_addresses/exavault-reserved/create_export', 'POST', {}, options);
|
|
269
|
+
case 3:
|
|
270
|
+
response = _context6.sent;
|
|
271
|
+
Export = require('./Export.js').default;
|
|
272
|
+
return _context6.abrupt("return", (response === null || response === void 0 || (_response$data6 = response.data) === null || _response$data6 === void 0 ? void 0 : _response$data6.map(function (obj) {
|
|
273
|
+
return new Export(obj, options);
|
|
274
|
+
})) || []);
|
|
275
|
+
case 6:
|
|
276
|
+
case "end":
|
|
277
|
+
return _context6.stop();
|
|
278
|
+
}
|
|
279
|
+
}, _callee6);
|
|
280
|
+
})));
|
|
281
|
+
(0, _defineProperty2.default)(IpAddress, "reservedCreateExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
282
|
+
var _response$data7;
|
|
283
|
+
var options,
|
|
284
|
+
response,
|
|
285
|
+
Export,
|
|
286
|
+
_args7 = arguments;
|
|
287
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
288
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
289
|
+
case 0:
|
|
290
|
+
options = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
291
|
+
_context7.next = 3;
|
|
292
|
+
return _Api.default.sendRequest('/ip_addresses/reserved/create_export', 'POST', {}, options);
|
|
293
|
+
case 3:
|
|
294
|
+
response = _context7.sent;
|
|
295
|
+
Export = require('./Export.js').default;
|
|
296
|
+
return _context7.abrupt("return", (response === null || response === void 0 || (_response$data7 = response.data) === null || _response$data7 === void 0 ? void 0 : _response$data7.map(function (obj) {
|
|
297
|
+
return new Export(obj, options);
|
|
298
|
+
})) || []);
|
|
299
|
+
case 6:
|
|
300
|
+
case "end":
|
|
301
|
+
return _context7.stop();
|
|
302
|
+
}
|
|
303
|
+
}, _callee7);
|
|
304
|
+
})));
|
|
305
|
+
(0, _defineProperty2.default)(IpAddress, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
306
|
+
var _response$data8;
|
|
307
|
+
var options,
|
|
308
|
+
response,
|
|
309
|
+
Export,
|
|
310
|
+
_args8 = arguments;
|
|
311
|
+
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
312
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
313
|
+
case 0:
|
|
314
|
+
options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
315
|
+
_context8.next = 3;
|
|
316
|
+
return _Api.default.sendRequest('/ip_addresses/create_export', 'POST', {}, options);
|
|
317
|
+
case 3:
|
|
318
|
+
response = _context8.sent;
|
|
319
|
+
Export = require('./Export.js').default;
|
|
320
|
+
return _context8.abrupt("return", (response === null || response === void 0 || (_response$data8 = response.data) === null || _response$data8 === void 0 ? void 0 : _response$data8.map(function (obj) {
|
|
321
|
+
return new Export(obj, options);
|
|
322
|
+
})) || []);
|
|
323
|
+
case 6:
|
|
324
|
+
case "end":
|
|
325
|
+
return _context8.stop();
|
|
326
|
+
}
|
|
327
|
+
}, _callee8);
|
|
328
|
+
})));
|
|
233
329
|
var _default = exports.default = IpAddress;
|
|
234
330
|
module.exports = IpAddress;
|
|
235
331
|
module.exports.default = IpAddress;
|
package/lib/models/Message.js
CHANGED
|
@@ -469,6 +469,53 @@ _Message = Message;
|
|
|
469
469
|
}
|
|
470
470
|
}, _callee6);
|
|
471
471
|
})));
|
|
472
|
+
// Parameters:
|
|
473
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
474
|
+
// project_id (required) - int64 - Project for which to return messages.
|
|
475
|
+
(0, _defineProperty2.default)(Message, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
476
|
+
var _response$data2;
|
|
477
|
+
var params,
|
|
478
|
+
options,
|
|
479
|
+
response,
|
|
480
|
+
Export,
|
|
481
|
+
_args7 = arguments;
|
|
482
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
483
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
484
|
+
case 0:
|
|
485
|
+
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
486
|
+
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
487
|
+
if (params.project_id) {
|
|
488
|
+
_context7.next = 4;
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
throw new errors.MissingParameterError('Parameter missing: project_id');
|
|
492
|
+
case 4:
|
|
493
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
494
|
+
_context7.next = 6;
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
498
|
+
case 6:
|
|
499
|
+
if (!(params.project_id && !(0, _utils.isInt)(params.project_id))) {
|
|
500
|
+
_context7.next = 8;
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
throw new errors.InvalidParameterError("Bad parameter: project_id must be of type Int, received ".concat((0, _utils.getType)(params.project_id)));
|
|
504
|
+
case 8:
|
|
505
|
+
_context7.next = 10;
|
|
506
|
+
return _Api.default.sendRequest('/messages/create_export', 'POST', params, options);
|
|
507
|
+
case 10:
|
|
508
|
+
response = _context7.sent;
|
|
509
|
+
Export = require('./Export.js').default;
|
|
510
|
+
return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
511
|
+
return new Export(obj, options);
|
|
512
|
+
})) || []);
|
|
513
|
+
case 13:
|
|
514
|
+
case "end":
|
|
515
|
+
return _context7.stop();
|
|
516
|
+
}
|
|
517
|
+
}, _callee7);
|
|
518
|
+
})));
|
|
472
519
|
var _default = exports.default = Message;
|
|
473
520
|
module.exports = Message;
|
|
474
521
|
module.exports.default = Message;
|
|
@@ -387,6 +387,53 @@ _MessageComment = MessageComment;
|
|
|
387
387
|
}
|
|
388
388
|
}, _callee6);
|
|
389
389
|
})));
|
|
390
|
+
// Parameters:
|
|
391
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
392
|
+
// message_id (required) - int64 - Message comment to return comments for.
|
|
393
|
+
(0, _defineProperty2.default)(MessageComment, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
394
|
+
var _response$data2;
|
|
395
|
+
var params,
|
|
396
|
+
options,
|
|
397
|
+
response,
|
|
398
|
+
Export,
|
|
399
|
+
_args7 = arguments;
|
|
400
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
401
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
402
|
+
case 0:
|
|
403
|
+
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
404
|
+
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
405
|
+
if (params.message_id) {
|
|
406
|
+
_context7.next = 4;
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
throw new errors.MissingParameterError('Parameter missing: message_id');
|
|
410
|
+
case 4:
|
|
411
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
412
|
+
_context7.next = 6;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
416
|
+
case 6:
|
|
417
|
+
if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
|
|
418
|
+
_context7.next = 8;
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
|
|
422
|
+
case 8:
|
|
423
|
+
_context7.next = 10;
|
|
424
|
+
return _Api.default.sendRequest('/message_comments/create_export', 'POST', params, options);
|
|
425
|
+
case 10:
|
|
426
|
+
response = _context7.sent;
|
|
427
|
+
Export = require('./Export.js').default;
|
|
428
|
+
return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
429
|
+
return new Export(obj, options);
|
|
430
|
+
})) || []);
|
|
431
|
+
case 13:
|
|
432
|
+
case "end":
|
|
433
|
+
return _context7.stop();
|
|
434
|
+
}
|
|
435
|
+
}, _callee7);
|
|
436
|
+
})));
|
|
390
437
|
var _default = exports.default = MessageComment;
|
|
391
438
|
module.exports = MessageComment;
|
|
392
439
|
module.exports.default = MessageComment;
|
|
@@ -301,6 +301,53 @@ _MessageCommentReaction = MessageCommentReaction;
|
|
|
301
301
|
}
|
|
302
302
|
}, _callee5);
|
|
303
303
|
})));
|
|
304
|
+
// Parameters:
|
|
305
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
306
|
+
// message_comment_id (required) - int64 - Message comment to return reactions for.
|
|
307
|
+
(0, _defineProperty2.default)(MessageCommentReaction, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
308
|
+
var _response$data2;
|
|
309
|
+
var params,
|
|
310
|
+
options,
|
|
311
|
+
response,
|
|
312
|
+
Export,
|
|
313
|
+
_args6 = arguments;
|
|
314
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
315
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
316
|
+
case 0:
|
|
317
|
+
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
318
|
+
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
319
|
+
if (params.message_comment_id) {
|
|
320
|
+
_context6.next = 4;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
throw new errors.MissingParameterError('Parameter missing: message_comment_id');
|
|
324
|
+
case 4:
|
|
325
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
326
|
+
_context6.next = 6;
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
330
|
+
case 6:
|
|
331
|
+
if (!(params.message_comment_id && !(0, _utils.isInt)(params.message_comment_id))) {
|
|
332
|
+
_context6.next = 8;
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
throw new errors.InvalidParameterError("Bad parameter: message_comment_id must be of type Int, received ".concat((0, _utils.getType)(params.message_comment_id)));
|
|
336
|
+
case 8:
|
|
337
|
+
_context6.next = 10;
|
|
338
|
+
return _Api.default.sendRequest('/message_comment_reactions/create_export', 'POST', params, options);
|
|
339
|
+
case 10:
|
|
340
|
+
response = _context6.sent;
|
|
341
|
+
Export = require('./Export.js').default;
|
|
342
|
+
return _context6.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
343
|
+
return new Export(obj, options);
|
|
344
|
+
})) || []);
|
|
345
|
+
case 13:
|
|
346
|
+
case "end":
|
|
347
|
+
return _context6.stop();
|
|
348
|
+
}
|
|
349
|
+
}, _callee6);
|
|
350
|
+
})));
|
|
304
351
|
var _default = exports.default = MessageCommentReaction;
|
|
305
352
|
module.exports = MessageCommentReaction;
|
|
306
353
|
module.exports.default = MessageCommentReaction;
|
|
@@ -301,6 +301,53 @@ _MessageReaction = MessageReaction;
|
|
|
301
301
|
}
|
|
302
302
|
}, _callee5);
|
|
303
303
|
})));
|
|
304
|
+
// Parameters:
|
|
305
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
306
|
+
// message_id (required) - int64 - Message to return reactions for.
|
|
307
|
+
(0, _defineProperty2.default)(MessageReaction, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
308
|
+
var _response$data2;
|
|
309
|
+
var params,
|
|
310
|
+
options,
|
|
311
|
+
response,
|
|
312
|
+
Export,
|
|
313
|
+
_args6 = arguments;
|
|
314
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
315
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
316
|
+
case 0:
|
|
317
|
+
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
318
|
+
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
319
|
+
if (params.message_id) {
|
|
320
|
+
_context6.next = 4;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
throw new errors.MissingParameterError('Parameter missing: message_id');
|
|
324
|
+
case 4:
|
|
325
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
326
|
+
_context6.next = 6;
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
330
|
+
case 6:
|
|
331
|
+
if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
|
|
332
|
+
_context6.next = 8;
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
|
|
336
|
+
case 8:
|
|
337
|
+
_context6.next = 10;
|
|
338
|
+
return _Api.default.sendRequest('/message_reactions/create_export', 'POST', params, options);
|
|
339
|
+
case 10:
|
|
340
|
+
response = _context6.sent;
|
|
341
|
+
Export = require('./Export.js').default;
|
|
342
|
+
return _context6.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
343
|
+
return new Export(obj, options);
|
|
344
|
+
})) || []);
|
|
345
|
+
case 13:
|
|
346
|
+
case "end":
|
|
347
|
+
return _context6.stop();
|
|
348
|
+
}
|
|
349
|
+
}, _callee6);
|
|
350
|
+
})));
|
|
304
351
|
var _default = exports.default = MessageReaction;
|
|
305
352
|
module.exports = MessageReaction;
|
|
306
353
|
module.exports.default = MessageReaction;
|
|
@@ -584,6 +584,51 @@ _Notification = Notification;
|
|
|
584
584
|
}
|
|
585
585
|
}, _callee6);
|
|
586
586
|
})));
|
|
587
|
+
// Parameters:
|
|
588
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `user_id` or `group_id`.
|
|
589
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
|
590
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
591
|
+
// path - string - Show notifications for this Path.
|
|
592
|
+
// include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
|
593
|
+
// group_id - string
|
|
594
|
+
(0, _defineProperty2.default)(Notification, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
595
|
+
var _response$data2;
|
|
596
|
+
var params,
|
|
597
|
+
options,
|
|
598
|
+
response,
|
|
599
|
+
Export,
|
|
600
|
+
_args7 = arguments;
|
|
601
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
602
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
603
|
+
case 0:
|
|
604
|
+
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
605
|
+
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
606
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
|
607
|
+
_context7.next = 4;
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
|
611
|
+
case 4:
|
|
612
|
+
if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
|
|
613
|
+
_context7.next = 6;
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
|
|
617
|
+
case 6:
|
|
618
|
+
_context7.next = 8;
|
|
619
|
+
return _Api.default.sendRequest('/notifications/create_export', 'POST', params, options);
|
|
620
|
+
case 8:
|
|
621
|
+
response = _context7.sent;
|
|
622
|
+
Export = require('./Export.js').default;
|
|
623
|
+
return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
|
624
|
+
return new Export(obj, options);
|
|
625
|
+
})) || []);
|
|
626
|
+
case 11:
|
|
627
|
+
case "end":
|
|
628
|
+
return _context7.stop();
|
|
629
|
+
}
|
|
630
|
+
}, _callee7);
|
|
631
|
+
})));
|
|
587
632
|
var _default = exports.default = Notification;
|
|
588
633
|
module.exports = Notification;
|
|
589
634
|
module.exports.default = Notification;
|