files.com 1.2.5 → 1.2.7

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.
Files changed (73) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Site.md +8 -0
  3. package/lib/Api.js +6 -6
  4. package/lib/Files.js +1 -1
  5. package/lib/Logger.js +24 -24
  6. package/lib/models/ActionNotificationExport.js +5 -5
  7. package/lib/models/ActionNotificationExportResult.js +4 -4
  8. package/lib/models/ApiKey.js +9 -9
  9. package/lib/models/App.js +4 -4
  10. package/lib/models/As2IncomingMessage.js +4 -4
  11. package/lib/models/As2OutgoingMessage.js +4 -4
  12. package/lib/models/As2Partner.js +7 -7
  13. package/lib/models/As2Station.js +7 -7
  14. package/lib/models/Automation.js +7 -7
  15. package/lib/models/AutomationRun.js +6 -6
  16. package/lib/models/BandwidthSnapshot.js +4 -4
  17. package/lib/models/Behavior.js +8 -8
  18. package/lib/models/Bundle.js +7 -7
  19. package/lib/models/BundleDownload.js +4 -4
  20. package/lib/models/BundleNotification.js +7 -7
  21. package/lib/models/BundleRecipient.js +5 -5
  22. package/lib/models/BundleRegistration.js +4 -4
  23. package/lib/models/Clickwrap.js +7 -7
  24. package/lib/models/DnsRecord.js +4 -4
  25. package/lib/models/EmailIncomingMessage.js +4 -4
  26. package/lib/models/ExternalEvent.js +7 -7
  27. package/lib/models/File.js +12 -12
  28. package/lib/models/FileComment.js +4 -4
  29. package/lib/models/FileCommentReaction.js +3 -3
  30. package/lib/models/FileMigration.js +4 -4
  31. package/lib/models/FormFieldSet.js +7 -7
  32. package/lib/models/GpgKey.js +7 -7
  33. package/lib/models/Group.js +7 -7
  34. package/lib/models/GroupUser.js +5 -5
  35. package/lib/models/History.js +3 -3
  36. package/lib/models/HistoryExport.js +5 -5
  37. package/lib/models/HistoryExportResult.js +4 -4
  38. package/lib/models/InboxRecipient.js +5 -5
  39. package/lib/models/InboxRegistration.js +4 -4
  40. package/lib/models/InboxUpload.js +4 -4
  41. package/lib/models/Invoice.js +4 -4
  42. package/lib/models/IpAddress.js +4 -4
  43. package/lib/models/Lock.js +4 -4
  44. package/lib/models/Message.js +7 -7
  45. package/lib/models/MessageComment.js +7 -7
  46. package/lib/models/MessageCommentReaction.js +7 -7
  47. package/lib/models/MessageReaction.js +7 -7
  48. package/lib/models/Notification.js +7 -7
  49. package/lib/models/Payment.js +4 -4
  50. package/lib/models/Permission.js +5 -5
  51. package/lib/models/Priority.js +4 -4
  52. package/lib/models/Project.js +7 -7
  53. package/lib/models/PublicKey.js +7 -7
  54. package/lib/models/RemoteBandwidthSnapshot.js +4 -4
  55. package/lib/models/RemoteServer.js +7 -7
  56. package/lib/models/Request.js +6 -6
  57. package/lib/models/Session.js +4 -4
  58. package/lib/models/SettingsChange.js +4 -4
  59. package/lib/models/SftpHostKey.js +7 -7
  60. package/lib/models/ShareGroup.js +7 -7
  61. package/lib/models/Site.js +14 -4
  62. package/lib/models/Snapshot.js +7 -7
  63. package/lib/models/SsoStrategy.js +6 -6
  64. package/lib/models/Style.js +4 -4
  65. package/lib/models/UsageDailySnapshot.js +4 -4
  66. package/lib/models/UsageSnapshot.js +4 -4
  67. package/lib/models/User.js +7 -7
  68. package/lib/models/UserCipherUse.js +4 -4
  69. package/lib/models/UserRequest.js +7 -7
  70. package/lib/models/WebhookTest.js +3 -3
  71. package/package.json +1 -1
  72. package/src/Files.js +1 -1
  73. package/src/models/Site.js +8 -0
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.7
@@ -43,6 +43,8 @@
43
43
  "created_at": "2000-01-01T01:00:00Z",
44
44
  "currency": "USD",
45
45
  "custom_namespace": true,
46
+ "dav_enabled": true,
47
+ "dav_user_root_enabled": true,
46
48
  "days_to_retain_backups": 30,
47
49
  "default_time_zone": "Pacific Time (US & Canada)",
48
50
  "desktop_app": true,
@@ -264,6 +266,8 @@
264
266
  * `created_at` (date-time): Time this site was created
265
267
  * `currency` (string): Preferred currency
266
268
  * `custom_namespace` (boolean): Is this site using a custom namespace for users?
269
+ * `dav_enabled` (boolean): Is WebDAV enabled?
270
+ * `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
267
271
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
268
272
  * `default_time_zone` (string): Site default time zone
269
273
  * `desktop_app` (boolean): Is the desktop app enabled?
@@ -459,6 +463,7 @@ await Site.update({
459
463
  'password_require_number': true,
460
464
  'password_require_unbreached': true,
461
465
  'require_logout_from_bundles_and_inboxes': true,
466
+ 'dav_user_root_enabled': true,
462
467
  'sftp_user_root_enabled': true,
463
468
  'disable_password_reset': true,
464
469
  'immutable_files': true,
@@ -481,6 +486,7 @@ await Site.update({
481
486
  'sharing_enabled': true,
482
487
  'user_requests_enabled': true,
483
488
  'user_requests_notify_admins': true,
489
+ 'dav_enabled': true,
484
490
  'ftp_enabled': true,
485
491
  'sftp_enabled': true,
486
492
  'sftp_host_key_type': "default",
@@ -599,6 +605,7 @@ await Site.update({
599
605
  * `password_require_number` (boolean): Require a number in passwords?
600
606
  * `password_require_unbreached` (boolean): Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
601
607
  * `require_logout_from_bundles_and_inboxes` (boolean): If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
608
+ * `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
602
609
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
603
610
  * `disable_password_reset` (boolean): Is password reset disabled?
604
611
  * `immutable_files` (boolean): Are files protected from modification?
@@ -621,6 +628,7 @@ await Site.update({
621
628
  * `sharing_enabled` (boolean): Allow bundle creation
622
629
  * `user_requests_enabled` (boolean): Enable User Requests feature
623
630
  * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
631
+ * `dav_enabled` (boolean): Is WebDAV enabled?
624
632
  * `ftp_enabled` (boolean): Is FTP enabled?
625
633
  * `sftp_enabled` (boolean): Is SFTP enabled?
626
634
  * `sftp_host_key_type` (string): Sftp Host Key Type
package/lib/Api.js CHANGED
@@ -17,7 +17,7 @@ var _Files = _interopRequireDefault(require("./Files"));
17
17
  var errors = _interopRequireWildcard(require("./Errors"));
18
18
  var _Logger = _interopRequireDefault(require("./Logger"));
19
19
  var _utils = require("./utils");
20
- var _class;
20
+ var _Api;
21
21
  var _excluded = ["timeoutSecs"],
22
22
  _excluded2 = ["getAgentForUrl"];
23
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -90,7 +90,7 @@ var fetchWithRetry = /*#__PURE__*/function () {
90
90
  var Api = /*#__PURE__*/(0, _createClass2.default)(function Api() {
91
91
  (0, _classCallCheck2.default)(this, Api);
92
92
  });
93
- _class = Api;
93
+ _Api = Api;
94
94
  (0, _defineProperty2.default)(Api, "_sendVerbatim", /*#__PURE__*/function () {
95
95
  var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path, verb, optionsRaw) {
96
96
  var _ref4, getAgentForUrl, options, isExternal, baseUrl, url, agent, response, headers, contentType, data, normalizedResponse;
@@ -211,7 +211,7 @@ _class = Api;
211
211
  var options = _objectSpread(_objectSpread({}, optionsRaw), {}, {
212
212
  body: data
213
213
  });
214
- return _class._sendVerbatim(externalUrl, verb, options);
214
+ return _Api._sendVerbatim(externalUrl, verb, options);
215
215
  });
216
216
  (0, _defineProperty2.default)(Api, "_autoPaginate", /*#__PURE__*/function () {
217
217
  var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(path, verb, params, options, response, metadata) {
@@ -239,7 +239,7 @@ _class = Api;
239
239
  autoPaginateCount: (autoPaginateCount || 1) + 1,
240
240
  previousAutoPaginateData: [].concat((0, _toConsumableArray2.default)(previousAutoPaginateData || []), (0, _toConsumableArray2.default)((response === null || response === void 0 ? void 0 : response.data) || []))
241
241
  };
242
- return _context3.abrupt("return", _class.sendRequest(path, verb, nextParams, options, nextMetadata));
242
+ return _context3.abrupt("return", _Api.sendRequest(path, verb, nextParams, options, nextMetadata));
243
243
  case 8:
244
244
  if (!previousAutoPaginateData) {
245
245
  _context3.next = 10;
@@ -369,10 +369,10 @@ _class = Api;
369
369
  }));
370
370
  }
371
371
  _context4.next = 24;
372
- return _class._sendVerbatim(requestPath, verb, updatedOptions);
372
+ return _Api._sendVerbatim(requestPath, verb, updatedOptions);
373
373
  case 24:
374
374
  response = _context4.sent;
375
- return _context4.abrupt("return", _class._autoPaginate(path, verb, params, updatedOptions, response, metadata));
375
+ return _context4.abrupt("return", _Api._autoPaginate(path, verb, params, updatedOptions, response, metadata));
376
376
  case 26:
377
377
  case "end":
378
378
  return _context4.stop();
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.5';
14
+ var version = '1.2.7';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
package/lib/Logger.js CHANGED
@@ -6,11 +6,11 @@ exports.default = exports.LogLevel = void 0;
6
6
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
7
7
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _class;
9
+ var _Logger;
10
10
  var Logger = /*#__PURE__*/(0, _createClass2.default)(function Logger() {
11
11
  (0, _classCallCheck2.default)(this, Logger);
12
12
  });
13
- _class = Logger;
13
+ _Logger = Logger;
14
14
  /* eslint-disable sort-keys */
15
15
  (0, _defineProperty2.default)(Logger, "LogLevel", {
16
16
  NONE: 0,
@@ -22,13 +22,13 @@ _class = Logger;
22
22
  /* eslint-enable sort-keys */
23
23
  (0, _defineProperty2.default)(Logger, "getLogLevelMethod", function (level) {
24
24
  switch (level) {
25
- case _class.LogLevel.ERROR:
25
+ case _Logger.LogLevel.ERROR:
26
26
  return 'error';
27
- case _class.LogLevel.WARN:
27
+ case _Logger.LogLevel.WARN:
28
28
  return 'warn';
29
- case _class.LogLevel.INFO:
29
+ case _Logger.LogLevel.INFO:
30
30
  return 'info';
31
- case _class.LogLevel.DEBUG:
31
+ case _Logger.LogLevel.DEBUG:
32
32
  return 'log';
33
33
  default:
34
34
  return 'log';
@@ -37,68 +37,68 @@ _class = Logger;
37
37
  (0, _defineProperty2.default)(Logger, "isPaused", false);
38
38
  (0, _defineProperty2.default)(Logger, "getLogLevelName", function (level) {
39
39
  switch (level) {
40
- case _class.LogLevel.ERROR:
40
+ case _Logger.LogLevel.ERROR:
41
41
  return 'error';
42
- case _class.LogLevel.WARN:
42
+ case _Logger.LogLevel.WARN:
43
43
  return 'warn';
44
- case _class.LogLevel.INFO:
44
+ case _Logger.LogLevel.INFO:
45
45
  return 'info';
46
- case _class.LogLevel.DEBUG:
46
+ case _Logger.LogLevel.DEBUG:
47
47
  return 'debug';
48
48
  default:
49
49
  return level;
50
50
  }
51
51
  });
52
52
  (0, _defineProperty2.default)(Logger, "error", function () {
53
- var _class2;
53
+ var _Logger2;
54
54
  for (var _len = arguments.length, messages = new Array(_len), _key = 0; _key < _len; _key++) {
55
55
  messages[_key] = arguments[_key];
56
56
  }
57
- (_class2 = _class).log.apply(_class2, [_class.LogLevel.ERROR].concat(messages));
57
+ (_Logger2 = _Logger).log.apply(_Logger2, [_Logger.LogLevel.ERROR].concat(messages));
58
58
  });
59
59
  (0, _defineProperty2.default)(Logger, "warn", function () {
60
- var _class3;
60
+ var _Logger3;
61
61
  for (var _len2 = arguments.length, messages = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
62
62
  messages[_key2] = arguments[_key2];
63
63
  }
64
- (_class3 = _class).log.apply(_class3, [_class.LogLevel.WARN].concat(messages));
64
+ (_Logger3 = _Logger).log.apply(_Logger3, [_Logger.LogLevel.WARN].concat(messages));
65
65
  });
66
66
  (0, _defineProperty2.default)(Logger, "info", function () {
67
- var _class4;
67
+ var _Logger4;
68
68
  for (var _len3 = arguments.length, messages = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
69
69
  messages[_key3] = arguments[_key3];
70
70
  }
71
- (_class4 = _class).log.apply(_class4, [_class.LogLevel.INFO].concat(messages));
71
+ (_Logger4 = _Logger).log.apply(_Logger4, [_Logger.LogLevel.INFO].concat(messages));
72
72
  });
73
73
  (0, _defineProperty2.default)(Logger, "debug", function () {
74
- var _class5;
74
+ var _Logger5;
75
75
  for (var _len4 = arguments.length, messages = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
76
76
  messages[_key4] = arguments[_key4];
77
77
  }
78
- (_class5 = _class).log.apply(_class5, [_class.LogLevel.DEBUG].concat(messages));
78
+ (_Logger5 = _Logger).log.apply(_Logger5, [_Logger.LogLevel.DEBUG].concat(messages));
79
79
  });
80
80
  (0, _defineProperty2.default)(Logger, "log", function () {
81
81
  var _console;
82
- var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _class.LogLevel.INFO;
82
+ var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _Logger.LogLevel.INFO;
83
83
  for (var _len5 = arguments.length, messages = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
84
84
  messages[_key5 - 1] = arguments[_key5];
85
85
  }
86
- if (_class.isPaused || messages.length === 0) {
86
+ if (_Logger.isPaused || messages.length === 0) {
87
87
  return;
88
88
  }
89
89
  var Files = require('./Files').default;
90
90
  if (Files.getLogLevel() < level) {
91
91
  return;
92
92
  }
93
- var prefix = "[".concat(_class.getLogLevelName(level), "]: ");
94
- var method = _class.getLogLevelMethod(level);
93
+ var prefix = "[".concat(_Logger.getLogLevelName(level), "]: ");
94
+ var method = _Logger.getLogLevelMethod(level);
95
95
  (_console = console)[method].apply(_console, [prefix].concat(messages)); // eslint-disable-line no-console
96
96
  });
97
97
  (0, _defineProperty2.default)(Logger, "pause", function () {
98
- _class.isPaused = true;
98
+ _Logger.isPaused = true;
99
99
  });
100
100
  (0, _defineProperty2.default)(Logger, "unpause", function () {
101
- _class.isPaused = false;
101
+ _Logger.isPaused = false;
102
102
  });
103
103
  var LogLevel = exports.LogLevel = Logger.LogLevel;
104
104
  var _default = exports.default = Logger;
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _ActionNotificationExport;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -167,7 +167,7 @@ var ActionNotificationExport = /*#__PURE__*/(0, _createClass2.default)(function
167
167
  });
168
168
  this.options = _objectSpread({}, options);
169
169
  });
170
- _class = ActionNotificationExport;
170
+ _ActionNotificationExport = ActionNotificationExport;
171
171
  // Parameters:
172
172
  // id (required) - int64 - Action Notification Export ID.
173
173
  (0, _defineProperty2.default)(ActionNotificationExport, "find", /*#__PURE__*/function () {
@@ -204,7 +204,7 @@ _class = ActionNotificationExport;
204
204
  return _Api.default.sendRequest("/action_notification_exports/".concat(encodeURIComponent(params.id)), 'GET', params, options);
205
205
  case 11:
206
206
  response = _context2.sent;
207
- return _context2.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
207
+ return _context2.abrupt("return", new _ActionNotificationExport(response === null || response === void 0 ? void 0 : response.data, options));
208
208
  case 13:
209
209
  case "end":
210
210
  return _context2.stop();
@@ -218,7 +218,7 @@ _class = ActionNotificationExport;
218
218
  (0, _defineProperty2.default)(ActionNotificationExport, "get", function (id) {
219
219
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
220
220
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
221
- return _class.find(id, params, options);
221
+ return _ActionNotificationExport.find(id, params, options);
222
222
  });
223
223
  // Parameters:
224
224
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
@@ -299,7 +299,7 @@ _class = ActionNotificationExport;
299
299
  return _Api.default.sendRequest('/action_notification_exports', 'POST', params, options);
300
300
  case 22:
301
301
  response = _context3.sent;
302
- return _context3.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
302
+ return _context3.abrupt("return", new _ActionNotificationExport(response === null || response === void 0 ? void 0 : response.data, options));
303
303
  case 24:
304
304
  case "end":
305
305
  return _context3.stop();
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _ActionNotificationExportResult;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -86,7 +86,7 @@ var ActionNotificationExportResult = /*#__PURE__*/(0, _createClass2.default)(fun
86
86
  });
87
87
  this.options = _objectSpread({}, options);
88
88
  });
89
- _class = ActionNotificationExportResult;
89
+ _ActionNotificationExportResult = ActionNotificationExportResult;
90
90
  // Parameters:
91
91
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
92
92
  // 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.
@@ -138,7 +138,7 @@ _class = ActionNotificationExportResult;
138
138
  case 14:
139
139
  response = _context.sent;
140
140
  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) {
141
- return new _class(obj, options);
141
+ return new _ActionNotificationExportResult(obj, options);
142
142
  })) || []);
143
143
  case 16:
144
144
  case "end":
@@ -149,7 +149,7 @@ _class = ActionNotificationExportResult;
149
149
  (0, _defineProperty2.default)(ActionNotificationExportResult, "all", function () {
150
150
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
151
151
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
152
- return _class.list(params, options);
152
+ return _ActionNotificationExportResult.list(params, options);
153
153
  });
154
154
  var _default = exports.default = ActionNotificationExportResult;
155
155
  module.exports = ActionNotificationExportResult;
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _ApiKey;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -288,7 +288,7 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
288
288
  });
289
289
  this.options = _objectSpread({}, options);
290
290
  });
291
- _class = ApiKey;
291
+ _ApiKey = ApiKey;
292
292
  // Parameters:
293
293
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
294
294
  // 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.
@@ -333,7 +333,7 @@ _class = ApiKey;
333
333
  case 10:
334
334
  response = _context4.sent;
335
335
  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) {
336
- return new _class(obj, options);
336
+ return new _ApiKey(obj, options);
337
337
  })) || []);
338
338
  case 12:
339
339
  case "end":
@@ -344,7 +344,7 @@ _class = ApiKey;
344
344
  (0, _defineProperty2.default)(ApiKey, "all", function () {
345
345
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
346
346
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
347
- return _class.list(params, options);
347
+ return _ApiKey.list(params, options);
348
348
  });
349
349
  (0, _defineProperty2.default)(ApiKey, "findCurrent", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
350
350
  var options,
@@ -358,7 +358,7 @@ _class = ApiKey;
358
358
  return _Api.default.sendRequest('/api_key', 'GET', {}, options);
359
359
  case 3:
360
360
  response = _context5.sent;
361
- return _context5.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
361
+ return _context5.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
362
362
  case 5:
363
363
  case "end":
364
364
  return _context5.stop();
@@ -401,7 +401,7 @@ _class = ApiKey;
401
401
  return _Api.default.sendRequest("/api_keys/".concat(encodeURIComponent(params.id)), 'GET', params, options);
402
402
  case 11:
403
403
  response = _context6.sent;
404
- return _context6.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
404
+ return _context6.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
405
405
  case 13:
406
406
  case "end":
407
407
  return _context6.stop();
@@ -415,7 +415,7 @@ _class = ApiKey;
415
415
  (0, _defineProperty2.default)(ApiKey, "get", function (id) {
416
416
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
417
417
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
418
- return _class.find(id, params, options);
418
+ return _ApiKey.find(id, params, options);
419
419
  });
420
420
  // Parameters:
421
421
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
@@ -473,7 +473,7 @@ _class = ApiKey;
473
473
  return _Api.default.sendRequest('/api_keys', 'POST', params, options);
474
474
  case 16:
475
475
  response = _context7.sent;
476
- return _context7.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
476
+ return _context7.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
477
477
  case 18:
478
478
  case "end":
479
479
  return _context7.stop();
@@ -516,7 +516,7 @@ _class = ApiKey;
516
516
  return _Api.default.sendRequest('/api_key', 'PATCH', params, options);
517
517
  case 10:
518
518
  response = _context8.sent;
519
- return _context8.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
519
+ return _context8.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
520
520
  case 12:
521
521
  case "end":
522
522
  return _context8.stop();
package/lib/models/App.js CHANGED
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _App;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -126,7 +126,7 @@ var App = /*#__PURE__*/(0, _createClass2.default)(function App() {
126
126
  });
127
127
  this.options = _objectSpread({}, options);
128
128
  });
129
- _class = App;
129
+ _App = App;
130
130
  // Parameters:
131
131
  // 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.
132
132
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -161,7 +161,7 @@ _class = App;
161
161
  case 8:
162
162
  response = _context.sent;
163
163
  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) {
164
- return new _class(obj, options);
164
+ return new _App(obj, options);
165
165
  })) || []);
166
166
  case 10:
167
167
  case "end":
@@ -172,7 +172,7 @@ _class = App;
172
172
  (0, _defineProperty2.default)(App, "all", function () {
173
173
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
174
174
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
175
- return _class.list(params, options);
175
+ return _App.list(params, options);
176
176
  });
177
177
  var _default = exports.default = App;
178
178
  module.exports = App;
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _As2IncomingMessage;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -186,7 +186,7 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
186
186
  });
187
187
  this.options = _objectSpread({}, options);
188
188
  });
189
- _class = As2IncomingMessage;
189
+ _As2IncomingMessage = As2IncomingMessage;
190
190
  // Parameters:
191
191
  // 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.
192
192
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -231,7 +231,7 @@ _class = As2IncomingMessage;
231
231
  case 10:
232
232
  response = _context.sent;
233
233
  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) {
234
- return new _class(obj, options);
234
+ return new _As2IncomingMessage(obj, options);
235
235
  })) || []);
236
236
  case 12:
237
237
  case "end":
@@ -242,7 +242,7 @@ _class = As2IncomingMessage;
242
242
  (0, _defineProperty2.default)(As2IncomingMessage, "all", function () {
243
243
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
244
244
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
245
- return _class.list(params, options);
245
+ return _As2IncomingMessage.list(params, options);
246
246
  });
247
247
  var _default = exports.default = As2IncomingMessage;
248
248
  module.exports = As2IncomingMessage;
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _As2OutgoingMessage;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -170,7 +170,7 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
170
170
  });
171
171
  this.options = _objectSpread({}, options);
172
172
  });
173
- _class = As2OutgoingMessage;
173
+ _As2OutgoingMessage = As2OutgoingMessage;
174
174
  // Parameters:
175
175
  // 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.
176
176
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -215,7 +215,7 @@ _class = As2OutgoingMessage;
215
215
  case 10:
216
216
  response = _context.sent;
217
217
  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) {
218
- return new _class(obj, options);
218
+ return new _As2OutgoingMessage(obj, options);
219
219
  })) || []);
220
220
  case 12:
221
221
  case "end":
@@ -226,7 +226,7 @@ _class = As2OutgoingMessage;
226
226
  (0, _defineProperty2.default)(As2OutgoingMessage, "all", function () {
227
227
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
228
228
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
229
- return _class.list(params, options);
229
+ return _As2OutgoingMessage.list(params, options);
230
230
  });
231
231
  var _default = exports.default = As2OutgoingMessage;
232
232
  module.exports = As2OutgoingMessage;
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _As2Partner;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -306,7 +306,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
306
306
  });
307
307
  this.options = _objectSpread({}, options);
308
308
  });
309
- _class = As2Partner;
309
+ _As2Partner = As2Partner;
310
310
  // Parameters:
311
311
  // 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.
312
312
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -338,7 +338,7 @@ _class = As2Partner;
338
338
  case 8:
339
339
  response = _context4.sent;
340
340
  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) {
341
- return new _class(obj, options);
341
+ return new _As2Partner(obj, options);
342
342
  })) || []);
343
343
  case 10:
344
344
  case "end":
@@ -349,7 +349,7 @@ _class = As2Partner;
349
349
  (0, _defineProperty2.default)(As2Partner, "all", function () {
350
350
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
351
351
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
352
- return _class.list(params, options);
352
+ return _As2Partner.list(params, options);
353
353
  });
354
354
  // Parameters:
355
355
  // id (required) - int64 - As2 Partner ID.
@@ -387,7 +387,7 @@ _class = As2Partner;
387
387
  return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'GET', params, options);
388
388
  case 11:
389
389
  response = _context5.sent;
390
- return _context5.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
390
+ return _context5.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
391
391
  case 13:
392
392
  case "end":
393
393
  return _context5.stop();
@@ -401,7 +401,7 @@ _class = As2Partner;
401
401
  (0, _defineProperty2.default)(As2Partner, "get", function (id) {
402
402
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
403
403
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
404
- return _class.find(id, params, options);
404
+ return _As2Partner.find(id, params, options);
405
405
  });
406
406
  // Parameters:
407
407
  // name (required) - string - AS2 Name
@@ -478,7 +478,7 @@ _class = As2Partner;
478
478
  return _Api.default.sendRequest('/as2_partners', 'POST', params, options);
479
479
  case 22:
480
480
  response = _context6.sent;
481
- return _context6.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
481
+ return _context6.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
482
482
  case 24:
483
483
  case "end":
484
484
  return _context6.stop();
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _Api = _interopRequireDefault(require("../Api"));
14
14
  var errors = _interopRequireWildcard(require("../Errors"));
15
15
  var _utils = require("../utils");
16
- var _class;
16
+ var _As2Station;
17
17
  /* eslint-disable no-unused-vars */
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -319,7 +319,7 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
319
319
  });
320
320
  this.options = _objectSpread({}, options);
321
321
  });
322
- _class = As2Station;
322
+ _As2Station = As2Station;
323
323
  // Parameters:
324
324
  // 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.
325
325
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -351,7 +351,7 @@ _class = As2Station;
351
351
  case 8:
352
352
  response = _context4.sent;
353
353
  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) {
354
- return new _class(obj, options);
354
+ return new _As2Station(obj, options);
355
355
  })) || []);
356
356
  case 10:
357
357
  case "end":
@@ -362,7 +362,7 @@ _class = As2Station;
362
362
  (0, _defineProperty2.default)(As2Station, "all", function () {
363
363
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
364
364
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
365
- return _class.list(params, options);
365
+ return _As2Station.list(params, options);
366
366
  });
367
367
  // Parameters:
368
368
  // id (required) - int64 - As2 Station ID.
@@ -400,7 +400,7 @@ _class = As2Station;
400
400
  return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'GET', params, options);
401
401
  case 11:
402
402
  response = _context5.sent;
403
- return _context5.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
403
+ return _context5.abrupt("return", new _As2Station(response === null || response === void 0 ? void 0 : response.data, options));
404
404
  case 13:
405
405
  case "end":
406
406
  return _context5.stop();
@@ -414,7 +414,7 @@ _class = As2Station;
414
414
  (0, _defineProperty2.default)(As2Station, "get", function (id) {
415
415
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
416
416
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
417
- return _class.find(id, params, options);
417
+ return _As2Station.find(id, params, options);
418
418
  });
419
419
  // Parameters:
420
420
  // name (required) - string - AS2 Name
@@ -477,7 +477,7 @@ _class = As2Station;
477
477
  return _Api.default.sendRequest('/as2_stations', 'POST', params, options);
478
478
  case 18:
479
479
  response = _context6.sent;
480
- return _context6.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
480
+ return _context6.abrupt("return", new _As2Station(response === null || response === void 0 ? void 0 : response.data, options));
481
481
  case 20:
482
482
  case "end":
483
483
  return _context6.stop();