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/ShareGroup.js
CHANGED
|
@@ -93,31 +93,31 @@ var ShareGroup = /*#__PURE__*/(0, _createClass2.default)(function ShareGroup() {
|
|
|
93
93
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
94
94
|
case 5:
|
|
95
95
|
params.id = _this.attributes.id;
|
|
96
|
-
if (!(params
|
|
96
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
97
97
|
_context.next = 8;
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
|
-
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
100
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
101
101
|
case 8:
|
|
102
|
-
if (!(params
|
|
102
|
+
if (!(params.notes && !(0, _utils.isString)(params.notes))) {
|
|
103
103
|
_context.next = 10;
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
|
-
throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params
|
|
106
|
+
throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
|
|
107
107
|
case 10:
|
|
108
|
-
if (!(params
|
|
108
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
109
109
|
_context.next = 12;
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
|
-
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params
|
|
112
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
113
113
|
case 12:
|
|
114
|
-
if (!(params
|
|
114
|
+
if (!(params.members && !(0, _utils.isArray)(params.members))) {
|
|
115
115
|
_context.next = 14;
|
|
116
116
|
break;
|
|
117
117
|
}
|
|
118
|
-
throw new errors.InvalidParameterError("Bad parameter: members must be of type Array, received ".concat((0, _utils.getType)(params
|
|
118
|
+
throw new errors.InvalidParameterError("Bad parameter: members must be of type Array, received ".concat((0, _utils.getType)(params.members)));
|
|
119
119
|
case 14:
|
|
120
|
-
if (params
|
|
120
|
+
if (params.id) {
|
|
121
121
|
_context.next = 20;
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ var ShareGroup = /*#__PURE__*/(0, _createClass2.default)(function ShareGroup() {
|
|
|
125
125
|
_context.next = 19;
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
128
|
-
params
|
|
128
|
+
params.id = _this.id;
|
|
129
129
|
_context.next = 20;
|
|
130
130
|
break;
|
|
131
131
|
case 19:
|
|
132
132
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
133
133
|
case 20:
|
|
134
134
|
_context.next = 22;
|
|
135
|
-
return _Api.default.sendRequest("/share_groups/".concat(encodeURIComponent(params
|
|
135
|
+
return _Api.default.sendRequest("/share_groups/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
136
136
|
case 22:
|
|
137
137
|
response = _context.sent;
|
|
138
138
|
return _context.abrupt("return", new ShareGroup(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
@@ -144,7 +144,6 @@ var ShareGroup = /*#__PURE__*/(0, _createClass2.default)(function ShareGroup() {
|
|
|
144
144
|
})));
|
|
145
145
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
146
146
|
var params,
|
|
147
|
-
response,
|
|
148
147
|
_args2 = arguments;
|
|
149
148
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
150
149
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -163,13 +162,13 @@ var ShareGroup = /*#__PURE__*/(0, _createClass2.default)(function ShareGroup() {
|
|
|
163
162
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
164
163
|
case 5:
|
|
165
164
|
params.id = _this.attributes.id;
|
|
166
|
-
if (!(params
|
|
165
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
167
166
|
_context2.next = 8;
|
|
168
167
|
break;
|
|
169
168
|
}
|
|
170
|
-
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
169
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
171
170
|
case 8:
|
|
172
|
-
if (params
|
|
171
|
+
if (params.id) {
|
|
173
172
|
_context2.next = 14;
|
|
174
173
|
break;
|
|
175
174
|
}
|
|
@@ -177,18 +176,15 @@ var ShareGroup = /*#__PURE__*/(0, _createClass2.default)(function ShareGroup() {
|
|
|
177
176
|
_context2.next = 13;
|
|
178
177
|
break;
|
|
179
178
|
}
|
|
180
|
-
params
|
|
179
|
+
params.id = _this.id;
|
|
181
180
|
_context2.next = 14;
|
|
182
181
|
break;
|
|
183
182
|
case 13:
|
|
184
183
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
185
184
|
case 14:
|
|
186
185
|
_context2.next = 16;
|
|
187
|
-
return _Api.default.sendRequest("/share_groups/".concat(encodeURIComponent(params
|
|
186
|
+
return _Api.default.sendRequest("/share_groups/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
188
187
|
case 16:
|
|
189
|
-
response = _context2.sent;
|
|
190
|
-
return _context2.abrupt("return");
|
|
191
|
-
case 18:
|
|
192
188
|
case "end":
|
|
193
189
|
return _context2.stop();
|
|
194
190
|
}
|
|
@@ -199,28 +195,28 @@ var ShareGroup = /*#__PURE__*/(0, _createClass2.default)(function ShareGroup() {
|
|
|
199
195
|
return _this.delete(params);
|
|
200
196
|
});
|
|
201
197
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
202
|
-
var
|
|
198
|
+
var _newObject, newObject;
|
|
203
199
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
204
200
|
while (1) switch (_context3.prev = _context3.next) {
|
|
205
201
|
case 0:
|
|
206
|
-
if (!_this.attributes
|
|
207
|
-
_context3.next =
|
|
202
|
+
if (!_this.attributes.id) {
|
|
203
|
+
_context3.next = 6;
|
|
208
204
|
break;
|
|
209
205
|
}
|
|
210
206
|
_context3.next = 3;
|
|
211
207
|
return _this.update(_this.attributes);
|
|
212
208
|
case 3:
|
|
213
|
-
newObject = _context3.sent;
|
|
214
|
-
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
215
|
-
return _context3.abrupt("return", true);
|
|
216
|
-
case 8:
|
|
217
|
-
_context3.next = 10;
|
|
218
|
-
return ShareGroup.create(_this.attributes, _this.options);
|
|
219
|
-
case 10:
|
|
220
209
|
_newObject = _context3.sent;
|
|
221
210
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
222
211
|
return _context3.abrupt("return", true);
|
|
223
|
-
case
|
|
212
|
+
case 6:
|
|
213
|
+
_context3.next = 8;
|
|
214
|
+
return ShareGroup.create(_this.attributes, _this.options);
|
|
215
|
+
case 8:
|
|
216
|
+
newObject = _context3.sent;
|
|
217
|
+
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
218
|
+
return _context3.abrupt("return", true);
|
|
219
|
+
case 11:
|
|
224
220
|
case "end":
|
|
225
221
|
return _context3.stop();
|
|
226
222
|
}
|
|
@@ -255,26 +251,26 @@ _class = ShareGroup;
|
|
|
255
251
|
case 0:
|
|
256
252
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
257
253
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
258
|
-
if (!(params
|
|
254
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
259
255
|
_context4.next = 4;
|
|
260
256
|
break;
|
|
261
257
|
}
|
|
262
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
258
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
263
259
|
case 4:
|
|
264
|
-
if (!(params
|
|
260
|
+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
265
261
|
_context4.next = 6;
|
|
266
262
|
break;
|
|
267
263
|
}
|
|
268
|
-
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params
|
|
264
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
269
265
|
case 6:
|
|
270
|
-
if (!(params
|
|
266
|
+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
271
267
|
_context4.next = 8;
|
|
272
268
|
break;
|
|
273
269
|
}
|
|
274
|
-
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params
|
|
270
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
275
271
|
case 8:
|
|
276
272
|
_context4.next = 10;
|
|
277
|
-
return _Api.default.sendRequest(
|
|
273
|
+
return _Api.default.sendRequest('/share_groups', 'GET', params, options);
|
|
278
274
|
case 10:
|
|
279
275
|
response = _context4.sent;
|
|
280
276
|
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) {
|
|
@@ -310,21 +306,21 @@ _class = ShareGroup;
|
|
|
310
306
|
}
|
|
311
307
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
312
308
|
case 4:
|
|
313
|
-
params
|
|
314
|
-
if (params
|
|
309
|
+
params.id = id;
|
|
310
|
+
if (params.id) {
|
|
315
311
|
_context5.next = 7;
|
|
316
312
|
break;
|
|
317
313
|
}
|
|
318
314
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
319
315
|
case 7:
|
|
320
|
-
if (!(params
|
|
316
|
+
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
321
317
|
_context5.next = 9;
|
|
322
318
|
break;
|
|
323
319
|
}
|
|
324
|
-
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
320
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
325
321
|
case 9:
|
|
326
322
|
_context5.next = 11;
|
|
327
|
-
return _Api.default.sendRequest("/share_groups/".concat(encodeURIComponent(params
|
|
323
|
+
return _Api.default.sendRequest("/share_groups/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
328
324
|
case 11:
|
|
329
325
|
response = _context5.sent;
|
|
330
326
|
return _context5.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
|
|
@@ -358,44 +354,44 @@ _class = ShareGroup;
|
|
|
358
354
|
case 0:
|
|
359
355
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
360
356
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
361
|
-
if (params
|
|
357
|
+
if (params.name) {
|
|
362
358
|
_context6.next = 4;
|
|
363
359
|
break;
|
|
364
360
|
}
|
|
365
361
|
throw new errors.MissingParameterError('Parameter missing: name');
|
|
366
362
|
case 4:
|
|
367
|
-
if (params
|
|
363
|
+
if (params.members) {
|
|
368
364
|
_context6.next = 6;
|
|
369
365
|
break;
|
|
370
366
|
}
|
|
371
367
|
throw new errors.MissingParameterError('Parameter missing: members');
|
|
372
368
|
case 6:
|
|
373
|
-
if (!(params
|
|
369
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
374
370
|
_context6.next = 8;
|
|
375
371
|
break;
|
|
376
372
|
}
|
|
377
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params
|
|
373
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
378
374
|
case 8:
|
|
379
|
-
if (!(params
|
|
375
|
+
if (!(params.notes && !(0, _utils.isString)(params.notes))) {
|
|
380
376
|
_context6.next = 10;
|
|
381
377
|
break;
|
|
382
378
|
}
|
|
383
|
-
throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params
|
|
379
|
+
throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
|
|
384
380
|
case 10:
|
|
385
|
-
if (!(params
|
|
381
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
386
382
|
_context6.next = 12;
|
|
387
383
|
break;
|
|
388
384
|
}
|
|
389
|
-
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params
|
|
385
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
390
386
|
case 12:
|
|
391
|
-
if (!(params
|
|
387
|
+
if (!(params.members && !(0, _utils.isArray)(params.members))) {
|
|
392
388
|
_context6.next = 14;
|
|
393
389
|
break;
|
|
394
390
|
}
|
|
395
|
-
throw new errors.InvalidParameterError("Bad parameter: members must be of type Array, received ".concat((0, _utils.getType)(params
|
|
391
|
+
throw new errors.InvalidParameterError("Bad parameter: members must be of type Array, received ".concat((0, _utils.getType)(params.members)));
|
|
396
392
|
case 14:
|
|
397
393
|
_context6.next = 16;
|
|
398
|
-
return _Api.default.sendRequest(
|
|
394
|
+
return _Api.default.sendRequest('/share_groups', 'POST', params, options);
|
|
399
395
|
case 16:
|
|
400
396
|
response = _context6.sent;
|
|
401
397
|
return _context6.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
|