files.com 1.0.214 → 1.0.215

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.214
1
+ 1.0.215
@@ -359,24 +359,22 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
359
359
  return ApiKey.list(params, options);
360
360
  });
361
361
  (0, _defineProperty2.default)(ApiKey, "findCurrent", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
362
- var params,
363
- options,
362
+ var options,
364
363
  response,
365
364
  _args4 = arguments;
366
365
  return _regenerator.default.wrap(function _callee4$(_context4) {
367
366
  while (1) {
368
367
  switch (_context4.prev = _context4.next) {
369
368
  case 0:
370
- params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
371
- options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
372
- _context4.next = 4;
373
- return _Api.default.sendRequest("/api_key", 'GET', options);
369
+ options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
370
+ _context4.next = 3;
371
+ return _Api.default.sendRequest("/api_key", 'GET', {}, options);
374
372
 
375
- case 4:
373
+ case 3:
376
374
  response = _context4.sent;
377
375
  return _context4.abrupt("return", new ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
378
376
 
379
- case 6:
377
+ case 5:
380
378
  case "end":
381
379
  return _context4.stop();
382
380
  }
@@ -563,24 +561,22 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
563
561
  }, _callee7);
564
562
  })));
565
563
  (0, _defineProperty2.default)(ApiKey, "deleteCurrent", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
566
- var params,
567
- options,
564
+ var options,
568
565
  response,
569
566
  _args8 = arguments;
570
567
  return _regenerator.default.wrap(function _callee8$(_context8) {
571
568
  while (1) {
572
569
  switch (_context8.prev = _context8.next) {
573
570
  case 0:
574
- params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
575
- options = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
576
- _context8.next = 4;
577
- return _Api.default.sendRequest("/api_key", 'DELETE', options);
571
+ options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
572
+ _context8.next = 3;
573
+ return _Api.default.sendRequest("/api_key", 'DELETE', {}, options);
578
574
 
579
- case 4:
575
+ case 3:
580
576
  response = _context8.sent;
581
577
  return _context8.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
582
578
 
583
- case 6:
579
+ case 5:
584
580
  case "end":
585
581
  return _context8.stop();
586
582
  }
@@ -179,24 +179,22 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
179
179
  }, _callee);
180
180
  })));
181
181
  (0, _defineProperty2.default)(Session, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
182
- var params,
183
- options,
182
+ var options,
184
183
  response,
185
184
  _args2 = arguments;
186
185
  return _regenerator.default.wrap(function _callee2$(_context2) {
187
186
  while (1) {
188
187
  switch (_context2.prev = _context2.next) {
189
188
  case 0:
190
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
191
- options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
192
- _context2.next = 4;
193
- return _Api.default.sendRequest("/sessions", 'DELETE', options);
189
+ options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
190
+ _context2.next = 3;
191
+ return _Api.default.sendRequest("/sessions", 'DELETE', {}, options);
194
192
 
195
- case 4:
193
+ case 3:
196
194
  response = _context2.sent;
197
195
  return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
198
196
 
199
- case 6:
197
+ case 5:
200
198
  case "end":
201
199
  return _context2.stop();
202
200
  }
@@ -460,24 +460,22 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
460
460
  this.options = _objectSpread({}, options);
461
461
  });
462
462
  (0, _defineProperty2.default)(Site, "get", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
463
- var params,
464
- options,
463
+ var options,
465
464
  response,
466
465
  _args = arguments;
467
466
  return _regenerator.default.wrap(function _callee$(_context) {
468
467
  while (1) {
469
468
  switch (_context.prev = _context.next) {
470
469
  case 0:
471
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
472
- options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
473
- _context.next = 4;
474
- return _Api.default.sendRequest("/site", 'GET', options);
470
+ options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
471
+ _context.next = 3;
472
+ return _Api.default.sendRequest("/site", 'GET', {}, options);
475
473
 
476
- case 4:
474
+ case 3:
477
475
  response = _context.sent;
478
476
  return _context.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
479
477
 
480
- case 6:
478
+ case 5:
481
479
  case "end":
482
480
  return _context.stop();
483
481
  }
@@ -485,24 +483,22 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
485
483
  }, _callee);
486
484
  })));
487
485
  (0, _defineProperty2.default)(Site, "getUsage", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
488
- var params,
489
- options,
486
+ var options,
490
487
  response,
491
488
  _args2 = arguments;
492
489
  return _regenerator.default.wrap(function _callee2$(_context2) {
493
490
  while (1) {
494
491
  switch (_context2.prev = _context2.next) {
495
492
  case 0:
496
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
497
- options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
498
- _context2.next = 4;
499
- return _Api.default.sendRequest("/site/usage", 'GET', options);
493
+ options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
494
+ _context2.next = 3;
495
+ return _Api.default.sendRequest("/site/usage", 'GET', {}, options);
500
496
 
501
- case 4:
497
+ case 3:
502
498
  response = _context2.sent;
503
499
  return _context2.abrupt("return", new UsageSnapshot(response === null || response === void 0 ? void 0 : response.data, options));
504
500
 
505
- case 6:
501
+ case 5:
506
502
  case "end":
507
503
  return _context2.stop();
508
504
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.214",
3
+ "version": "1.0.215",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -209,8 +209,8 @@ class ApiKey {
209
209
  static all = (params = {}, options = {}) =>
210
210
  ApiKey.list(params, options)
211
211
 
212
- static findCurrent = async (params = {}, options = {}) => {
213
- const response = await Api.sendRequest(`/api_key`, 'GET', options)
212
+ static findCurrent = async (options = {}) => {
213
+ const response = await Api.sendRequest(`/api_key`, 'GET', {}, options)
214
214
 
215
215
  return new ApiKey(response?.data, options)
216
216
  }
@@ -294,8 +294,8 @@ class ApiKey {
294
294
  return new ApiKey(response?.data, options)
295
295
  }
296
296
 
297
- static deleteCurrent = async (params = {}, options = {}) => {
298
- const response = await Api.sendRequest(`/api_key`, 'DELETE', options)
297
+ static deleteCurrent = async (options = {}) => {
298
+ const response = await Api.sendRequest(`/api_key`, 'DELETE', {}, options)
299
299
 
300
300
  return response?.data
301
301
  }
@@ -117,8 +117,8 @@ class Session {
117
117
  return new Session(response?.data, options)
118
118
  }
119
119
 
120
- static delete = async (params = {}, options = {}) => {
121
- const response = await Api.sendRequest(`/sessions`, 'DELETE', options)
120
+ static delete = async (options = {}) => {
121
+ const response = await Api.sendRequest(`/sessions`, 'DELETE', {}, options)
122
122
 
123
123
  return response?.data
124
124
  }
@@ -420,14 +420,14 @@ class Site {
420
420
  getDisableUsersFromInactivityPeriodDays = () => this.attributes.disable_users_from_inactivity_period_days
421
421
 
422
422
 
423
- static get = async (params = {}, options = {}) => {
424
- const response = await Api.sendRequest(`/site`, 'GET', options)
423
+ static get = async (options = {}) => {
424
+ const response = await Api.sendRequest(`/site`, 'GET', {}, options)
425
425
 
426
426
  return new Site(response?.data, options)
427
427
  }
428
428
 
429
- static getUsage = async (params = {}, options = {}) => {
430
- const response = await Api.sendRequest(`/site/usage`, 'GET', options)
429
+ static getUsage = async (options = {}) => {
430
+ const response = await Api.sendRequest(`/site/usage`, 'GET', {}, options)
431
431
 
432
432
  return new UsageSnapshot(response?.data, options)
433
433
  }