files.com 1.0.412 → 1.0.413

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/_VERSION +1 -1
  2. package/lib/Api.js +30 -18
  3. package/lib/Files.js +1 -1
  4. package/lib/isomorphic/File.node.js +21 -13
  5. package/lib/models/ActionNotificationExport.js +8 -5
  6. package/lib/models/ApiKey.js +8 -5
  7. package/lib/models/As2Partner.js +8 -5
  8. package/lib/models/As2Station.js +8 -5
  9. package/lib/models/Automation.js +8 -5
  10. package/lib/models/AutomationRun.js +8 -5
  11. package/lib/models/Behavior.js +15 -9
  12. package/lib/models/Bundle.js +8 -5
  13. package/lib/models/BundleNotification.js +8 -5
  14. package/lib/models/Clickwrap.js +8 -5
  15. package/lib/models/ExternalEvent.js +8 -5
  16. package/lib/models/File.js +93 -59
  17. package/lib/models/FileComment.js +8 -5
  18. package/lib/models/FileMigration.js +8 -5
  19. package/lib/models/Folder.js +14 -9
  20. package/lib/models/FormFieldSet.js +8 -5
  21. package/lib/models/GpgKey.js +8 -5
  22. package/lib/models/Group.js +8 -5
  23. package/lib/models/History.js +22 -13
  24. package/lib/models/HistoryExport.js +8 -5
  25. package/lib/models/Invoice.js +8 -5
  26. package/lib/models/Lock.js +15 -9
  27. package/lib/models/Message.js +8 -5
  28. package/lib/models/MessageComment.js +8 -5
  29. package/lib/models/MessageCommentReaction.js +8 -5
  30. package/lib/models/MessageReaction.js +8 -5
  31. package/lib/models/Notification.js +8 -5
  32. package/lib/models/Payment.js +8 -5
  33. package/lib/models/Priority.js +8 -5
  34. package/lib/models/Project.js +8 -5
  35. package/lib/models/PublicKey.js +8 -5
  36. package/lib/models/RemoteServer.js +15 -9
  37. package/lib/models/Request.js +8 -5
  38. package/lib/models/SftpHostKey.js +8 -5
  39. package/lib/models/ShareGroup.js +8 -5
  40. package/lib/models/Snapshot.js +8 -5
  41. package/lib/models/SsoStrategy.js +8 -5
  42. package/lib/models/Style.js +8 -5
  43. package/lib/models/User.js +8 -5
  44. package/lib/models/UserRequest.js +8 -5
  45. package/package.json +1 -1
  46. package/src/Files.js +1 -1
@@ -14,7 +14,7 @@ var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _Logger = _interopRequireDefault(require("../Logger"));
16
16
  var _utils = require("../utils");
17
- var _class, _ref6;
17
+ var _class;
18
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -280,8 +280,8 @@ _class = Snapshot;
280
280
  });
281
281
  // Parameters:
282
282
  // id (required) - int64 - Snapshot ID.
283
- (0, _defineProperty2.default)(Snapshot, "find", function (_x) {
284
- return (_ref6 = _ref6 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id) {
283
+ (0, _defineProperty2.default)(Snapshot, "find", /*#__PURE__*/function () {
284
+ var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id) {
285
285
  var params,
286
286
  options,
287
287
  response,
@@ -320,8 +320,11 @@ _class = Snapshot;
320
320
  return _context4.stop();
321
321
  }
322
322
  }, _callee4);
323
- }))).apply(this, arguments);
324
- });
323
+ }));
324
+ return function (_x) {
325
+ return _ref6.apply(this, arguments);
326
+ };
327
+ }());
325
328
  (0, _defineProperty2.default)(Snapshot, "get", function (id) {
326
329
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
327
330
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -14,7 +14,7 @@ var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _Logger = _interopRequireDefault(require("../Logger"));
16
16
  var _utils = require("../utils");
17
- var _class, _ref5;
17
+ var _class;
18
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -321,8 +321,8 @@ _class = SsoStrategy;
321
321
  });
322
322
  // Parameters:
323
323
  // id (required) - int64 - Sso Strategy ID.
324
- (0, _defineProperty2.default)(SsoStrategy, "find", function (_x) {
325
- return (_ref5 = _ref5 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
324
+ (0, _defineProperty2.default)(SsoStrategy, "find", /*#__PURE__*/function () {
325
+ var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
326
326
  var params,
327
327
  options,
328
328
  response,
@@ -361,8 +361,11 @@ _class = SsoStrategy;
361
361
  return _context3.stop();
362
362
  }
363
363
  }, _callee3);
364
- }))).apply(this, arguments);
365
- });
364
+ }));
365
+ return function (_x) {
366
+ return _ref5.apply(this, arguments);
367
+ };
368
+ }());
366
369
  (0, _defineProperty2.default)(SsoStrategy, "get", function (id) {
367
370
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
368
371
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -14,7 +14,7 @@ var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _Logger = _interopRequireDefault(require("../Logger"));
16
16
  var _utils = require("../utils");
17
- var _class, _ref5;
17
+ var _class;
18
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -210,8 +210,8 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
210
210
  _class = Style;
211
211
  // Parameters:
212
212
  // path (required) - string - Style path.
213
- (0, _defineProperty2.default)(Style, "find", function (_x) {
214
- return (_ref5 = _ref5 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(path) {
213
+ (0, _defineProperty2.default)(Style, "find", /*#__PURE__*/function () {
214
+ var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(path) {
215
215
  var params,
216
216
  options,
217
217
  response,
@@ -250,8 +250,11 @@ _class = Style;
250
250
  return _context3.stop();
251
251
  }
252
252
  }, _callee3);
253
- }))).apply(this, arguments);
254
- });
253
+ }));
254
+ return function (_x) {
255
+ return _ref5.apply(this, arguments);
256
+ };
257
+ }());
255
258
  (0, _defineProperty2.default)(Style, "get", function (path) {
256
259
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
257
260
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -14,7 +14,7 @@ var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _Logger = _interopRequireDefault(require("../Logger"));
16
16
  var _utils = require("../utils");
17
- var _class, _ref9;
17
+ var _class;
18
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -1085,8 +1085,8 @@ _class = User;
1085
1085
  });
1086
1086
  // Parameters:
1087
1087
  // id (required) - int64 - User ID.
1088
- (0, _defineProperty2.default)(User, "find", function (_x) {
1089
- return (_ref9 = _ref9 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(id) {
1088
+ (0, _defineProperty2.default)(User, "find", /*#__PURE__*/function () {
1089
+ var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(id) {
1090
1090
  var params,
1091
1091
  options,
1092
1092
  response,
@@ -1125,8 +1125,11 @@ _class = User;
1125
1125
  return _context7.stop();
1126
1126
  }
1127
1127
  }, _callee7);
1128
- }))).apply(this, arguments);
1129
- });
1128
+ }));
1129
+ return function (_x) {
1130
+ return _ref9.apply(this, arguments);
1131
+ };
1132
+ }());
1130
1133
  (0, _defineProperty2.default)(User, "get", function (id) {
1131
1134
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1132
1135
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -14,7 +14,7 @@ var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _Logger = _interopRequireDefault(require("../Logger"));
16
16
  var _utils = require("../utils");
17
- var _class, _ref5;
17
+ var _class;
18
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -185,8 +185,8 @@ _class = UserRequest;
185
185
  });
186
186
  // Parameters:
187
187
  // id (required) - int64 - User Request ID.
188
- (0, _defineProperty2.default)(UserRequest, "find", function (_x) {
189
- return (_ref5 = _ref5 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
188
+ (0, _defineProperty2.default)(UserRequest, "find", /*#__PURE__*/function () {
189
+ var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
190
190
  var params,
191
191
  options,
192
192
  response,
@@ -225,8 +225,11 @@ _class = UserRequest;
225
225
  return _context3.stop();
226
226
  }
227
227
  }, _callee3);
228
- }))).apply(this, arguments);
229
- });
228
+ }));
229
+ return function (_x) {
230
+ return _ref5.apply(this, arguments);
231
+ };
232
+ }());
230
233
  (0, _defineProperty2.default)(UserRequest, "get", function (id) {
231
234
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
232
235
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.412",
3
+ "version": "1.0.413",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- let version = "1.0.412"
8
+ let version = "1.0.413"
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO