files.com 1.2.249 → 1.2.251

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 (90) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/User.md +4 -1
  3. package/lib/Api.js +72 -71
  4. package/lib/Files.js +1 -1
  5. package/lib/isomorphic/File.node.js +5 -5
  6. package/lib/models/ActionNotificationExport.js +38 -38
  7. package/lib/models/ActionNotificationExportResult.js +14 -14
  8. package/lib/models/ApiKey.js +100 -100
  9. package/lib/models/ApiRequestLog.js +8 -8
  10. package/lib/models/App.js +8 -8
  11. package/lib/models/As2IncomingMessage.js +10 -10
  12. package/lib/models/As2OutgoingMessage.js +10 -10
  13. package/lib/models/As2Partner.js +101 -101
  14. package/lib/models/As2Station.js +81 -81
  15. package/lib/models/Automation.js +167 -167
  16. package/lib/models/AutomationLog.js +8 -8
  17. package/lib/models/AutomationRun.js +24 -24
  18. package/lib/models/BandwidthSnapshot.js +8 -8
  19. package/lib/models/Behavior.js +106 -106
  20. package/lib/models/Bundle.js +143 -143
  21. package/lib/models/BundleAction.js +10 -10
  22. package/lib/models/BundleDownload.js +12 -12
  23. package/lib/models/BundleNotification.js +69 -69
  24. package/lib/models/BundleRecipient.js +40 -40
  25. package/lib/models/BundleRegistration.js +12 -12
  26. package/lib/models/Clickwrap.js +79 -79
  27. package/lib/models/DnsRecord.js +8 -8
  28. package/lib/models/EmailIncomingMessage.js +8 -8
  29. package/lib/models/EmailLog.js +8 -8
  30. package/lib/models/ExavaultApiRequestLog.js +8 -8
  31. package/lib/models/ExternalEvent.js +36 -36
  32. package/lib/models/File.js +269 -269
  33. package/lib/models/FileComment.js +70 -70
  34. package/lib/models/FileCommentReaction.js +34 -34
  35. package/lib/models/FileMigration.js +10 -10
  36. package/lib/models/FileMigrationLog.js +8 -8
  37. package/lib/models/Folder.js +36 -36
  38. package/lib/models/FormFieldSet.js +71 -71
  39. package/lib/models/FtpActionLog.js +8 -8
  40. package/lib/models/GpgKey.js +81 -81
  41. package/lib/models/Group.js +83 -83
  42. package/lib/models/GroupUser.js +89 -89
  43. package/lib/models/History.js +88 -88
  44. package/lib/models/HistoryExport.js +64 -64
  45. package/lib/models/HistoryExportResult.js +14 -14
  46. package/lib/models/InboxRecipient.js +36 -36
  47. package/lib/models/InboxRegistration.js +10 -10
  48. package/lib/models/InboxUpload.js +8 -8
  49. package/lib/models/Invoice.js +18 -18
  50. package/lib/models/IpAddress.js +32 -32
  51. package/lib/models/Lock.js +51 -51
  52. package/lib/models/Message.js +100 -100
  53. package/lib/models/MessageComment.js +78 -78
  54. package/lib/models/MessageCommentReaction.js +54 -54
  55. package/lib/models/MessageReaction.js +54 -54
  56. package/lib/models/Notification.js +91 -91
  57. package/lib/models/OutboundConnectionLog.js +8 -8
  58. package/lib/models/Payment.js +18 -18
  59. package/lib/models/Permission.js +54 -54
  60. package/lib/models/Priority.js +14 -14
  61. package/lib/models/Project.js +70 -70
  62. package/lib/models/PublicHostingRequestLog.js +8 -8
  63. package/lib/models/PublicKey.js +78 -78
  64. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  65. package/lib/models/RemoteServer.js +362 -362
  66. package/lib/models/Request.js +60 -60
  67. package/lib/models/Restore.js +24 -24
  68. package/lib/models/Session.js +21 -21
  69. package/lib/models/SettingsChange.js +8 -8
  70. package/lib/models/SftpActionLog.js +8 -8
  71. package/lib/models/SftpHostKey.js +67 -67
  72. package/lib/models/ShareGroup.js +79 -79
  73. package/lib/models/SiemHttpDestination.js +158 -158
  74. package/lib/models/Site.js +150 -150
  75. package/lib/models/Snapshot.js +85 -85
  76. package/lib/models/SsoStrategy.js +32 -32
  77. package/lib/models/Style.js +48 -48
  78. package/lib/models/SyncLog.js +8 -8
  79. package/lib/models/UsageDailySnapshot.js +8 -8
  80. package/lib/models/UsageSnapshot.js +8 -8
  81. package/lib/models/User.js +223 -215
  82. package/lib/models/UserCipherUse.js +10 -10
  83. package/lib/models/UserLifecycleRule.js +92 -92
  84. package/lib/models/UserRequest.js +56 -56
  85. package/lib/models/UserSftpClientUse.js +10 -10
  86. package/lib/models/WebDavActionLog.js +8 -8
  87. package/lib/models/WebhookTest.js +24 -24
  88. package/package.json +1 -1
  89. package/src/Files.js +1 -1
  90. package/src/models/User.js +6 -0
@@ -73,63 +73,63 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
73
73
  var params,
74
74
  response,
75
75
  _args = arguments;
76
- return _regenerator.default.wrap(function _callee$(_context) {
76
+ return _regenerator.default.wrap(function (_context) {
77
77
  while (1) switch (_context.prev = _context.next) {
78
78
  case 0:
79
79
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
80
80
  if (_this.attributes.path) {
81
- _context.next = 3;
81
+ _context.next = 1;
82
82
  break;
83
83
  }
84
84
  throw new errors.EmptyPropertyError('Current object has no path');
85
- case 3:
85
+ case 1:
86
86
  if ((0, _utils.isObject)(params)) {
87
- _context.next = 5;
87
+ _context.next = 2;
88
88
  break;
89
89
  }
90
90
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
91
- case 5:
91
+ case 2:
92
92
  params.path = _this.attributes.path;
93
93
  if (!(params.path && !(0, _utils.isString)(params.path))) {
94
- _context.next = 8;
94
+ _context.next = 3;
95
95
  break;
96
96
  }
97
97
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
98
- case 8:
98
+ case 3:
99
99
  if (params.path) {
100
- _context.next = 14;
100
+ _context.next = 5;
101
101
  break;
102
102
  }
103
103
  if (!_this.attributes.path) {
104
- _context.next = 13;
104
+ _context.next = 4;
105
105
  break;
106
106
  }
107
107
  params.path = _this.path;
108
- _context.next = 14;
108
+ _context.next = 5;
109
109
  break;
110
- case 13:
110
+ case 4:
111
111
  throw new errors.MissingParameterError('Parameter missing: path');
112
- case 14:
112
+ case 5:
113
113
  if (params.file) {
114
- _context.next = 20;
114
+ _context.next = 7;
115
115
  break;
116
116
  }
117
117
  if (!_this.attributes.file) {
118
- _context.next = 19;
118
+ _context.next = 6;
119
119
  break;
120
120
  }
121
121
  params.file = _this.file;
122
- _context.next = 20;
122
+ _context.next = 7;
123
123
  break;
124
- case 19:
124
+ case 6:
125
125
  throw new errors.MissingParameterError('Parameter missing: file');
126
- case 20:
127
- _context.next = 22;
126
+ case 7:
127
+ _context.next = 8;
128
128
  return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params.path)), 'PATCH', params, _this.options);
129
- case 22:
129
+ case 8:
130
130
  response = _context.sent;
131
131
  return _context.abrupt("return", new Style(response === null || response === void 0 ? void 0 : response.data, _this.options));
132
- case 24:
132
+ case 9:
133
133
  case "end":
134
134
  return _context.stop();
135
135
  }
@@ -138,46 +138,46 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
138
138
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
139
139
  var params,
140
140
  _args2 = arguments;
141
- return _regenerator.default.wrap(function _callee2$(_context2) {
141
+ return _regenerator.default.wrap(function (_context2) {
142
142
  while (1) switch (_context2.prev = _context2.next) {
143
143
  case 0:
144
144
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
145
145
  if (_this.attributes.path) {
146
- _context2.next = 3;
146
+ _context2.next = 1;
147
147
  break;
148
148
  }
149
149
  throw new errors.EmptyPropertyError('Current object has no path');
150
- case 3:
150
+ case 1:
151
151
  if ((0, _utils.isObject)(params)) {
152
- _context2.next = 5;
152
+ _context2.next = 2;
153
153
  break;
154
154
  }
155
155
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
156
- case 5:
156
+ case 2:
157
157
  params.path = _this.attributes.path;
158
158
  if (!(params.path && !(0, _utils.isString)(params.path))) {
159
- _context2.next = 8;
159
+ _context2.next = 3;
160
160
  break;
161
161
  }
162
162
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
163
- case 8:
163
+ case 3:
164
164
  if (params.path) {
165
- _context2.next = 14;
165
+ _context2.next = 5;
166
166
  break;
167
167
  }
168
168
  if (!_this.attributes.path) {
169
- _context2.next = 13;
169
+ _context2.next = 4;
170
170
  break;
171
171
  }
172
172
  params.path = _this.path;
173
- _context2.next = 14;
173
+ _context2.next = 5;
174
174
  break;
175
- case 13:
175
+ case 4:
176
176
  throw new errors.MissingParameterError('Parameter missing: path');
177
- case 14:
178
- _context2.next = 16;
177
+ case 5:
178
+ _context2.next = 6;
179
179
  return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params.path)), 'DELETE', params, _this.options);
180
- case 16:
180
+ case 6:
181
181
  case "end":
182
182
  return _context2.stop();
183
183
  }
@@ -189,16 +189,16 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
189
189
  });
190
190
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
191
191
  var newObject;
192
- return _regenerator.default.wrap(function _callee3$(_context3) {
192
+ return _regenerator.default.wrap(function (_context3) {
193
193
  while (1) switch (_context3.prev = _context3.next) {
194
194
  case 0:
195
- _context3.next = 2;
195
+ _context3.next = 1;
196
196
  return _this.update(_this.attributes);
197
- case 2:
197
+ case 1:
198
198
  newObject = _context3.sent;
199
199
  _this.attributes = _objectSpread({}, newObject.attributes);
200
200
  return _context3.abrupt("return", true);
201
- case 5:
201
+ case 2:
202
202
  case "end":
203
203
  return _context3.stop();
204
204
  }
@@ -226,36 +226,36 @@ _Style = Style;
226
226
  options,
227
227
  response,
228
228
  _args4 = arguments;
229
- return _regenerator.default.wrap(function _callee4$(_context4) {
229
+ return _regenerator.default.wrap(function (_context4) {
230
230
  while (1) switch (_context4.prev = _context4.next) {
231
231
  case 0:
232
232
  params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
233
233
  options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
234
234
  if ((0, _utils.isObject)(params)) {
235
- _context4.next = 4;
235
+ _context4.next = 1;
236
236
  break;
237
237
  }
238
238
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
239
- case 4:
239
+ case 1:
240
240
  params.path = path;
241
241
  if (params.path) {
242
- _context4.next = 7;
242
+ _context4.next = 2;
243
243
  break;
244
244
  }
245
245
  throw new errors.MissingParameterError('Parameter missing: path');
246
- case 7:
246
+ case 2:
247
247
  if (!(params.path && !(0, _utils.isString)(params.path))) {
248
- _context4.next = 9;
248
+ _context4.next = 3;
249
249
  break;
250
250
  }
251
251
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
252
- case 9:
253
- _context4.next = 11;
252
+ case 3:
253
+ _context4.next = 4;
254
254
  return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params.path)), 'GET', params, options);
255
- case 11:
255
+ case 4:
256
256
  response = _context4.sent;
257
257
  return _context4.abrupt("return", new _Style(response === null || response === void 0 ? void 0 : response.data, options));
258
- case 13:
258
+ case 5:
259
259
  case "end":
260
260
  return _context4.stop();
261
261
  }
@@ -97,31 +97,31 @@ _SyncLog = SyncLog;
97
97
  options,
98
98
  response,
99
99
  _args = arguments;
100
- return _regenerator.default.wrap(function _callee$(_context) {
100
+ return _regenerator.default.wrap(function (_context) {
101
101
  while (1) switch (_context.prev = _context.next) {
102
102
  case 0:
103
103
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
104
104
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
105
105
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
106
- _context.next = 4;
106
+ _context.next = 1;
107
107
  break;
108
108
  }
109
109
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
110
- case 4:
110
+ case 1:
111
111
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
112
- _context.next = 6;
112
+ _context.next = 2;
113
113
  break;
114
114
  }
115
115
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
116
- case 6:
117
- _context.next = 8;
116
+ case 2:
117
+ _context.next = 3;
118
118
  return _Api.default.sendRequest('/sync_logs', 'GET', params, options);
119
- case 8:
119
+ case 3:
120
120
  response = _context.sent;
121
121
  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) {
122
122
  return new _SyncLog(obj, options);
123
123
  })) || []);
124
- case 10:
124
+ case 4:
125
125
  case "end":
126
126
  return _context.stop();
127
127
  }
@@ -105,31 +105,31 @@ _UsageDailySnapshot = UsageDailySnapshot;
105
105
  options,
106
106
  response,
107
107
  _args = arguments;
108
- return _regenerator.default.wrap(function _callee$(_context) {
108
+ return _regenerator.default.wrap(function (_context) {
109
109
  while (1) switch (_context.prev = _context.next) {
110
110
  case 0:
111
111
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
112
112
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
113
113
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
114
- _context.next = 4;
114
+ _context.next = 1;
115
115
  break;
116
116
  }
117
117
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
118
- case 4:
118
+ case 1:
119
119
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
120
- _context.next = 6;
120
+ _context.next = 2;
121
121
  break;
122
122
  }
123
123
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
124
- case 6:
125
- _context.next = 8;
124
+ case 2:
125
+ _context.next = 3;
126
126
  return _Api.default.sendRequest('/usage_daily_snapshots', 'GET', params, options);
127
- case 8:
127
+ case 3:
128
128
  response = _context.sent;
129
129
  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) {
130
130
  return new _UsageDailySnapshot(obj, options);
131
131
  })) || []);
132
- case 10:
132
+ case 4:
133
133
  case "end":
134
134
  return _context.stop();
135
135
  }
@@ -115,31 +115,31 @@ _UsageSnapshot = UsageSnapshot;
115
115
  options,
116
116
  response,
117
117
  _args = arguments;
118
- return _regenerator.default.wrap(function _callee$(_context) {
118
+ return _regenerator.default.wrap(function (_context) {
119
119
  while (1) switch (_context.prev = _context.next) {
120
120
  case 0:
121
121
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
122
122
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
123
123
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
124
- _context.next = 4;
124
+ _context.next = 1;
125
125
  break;
126
126
  }
127
127
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
128
- case 4:
128
+ case 1:
129
129
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
130
- _context.next = 6;
130
+ _context.next = 2;
131
131
  break;
132
132
  }
133
133
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
134
- case 6:
135
- _context.next = 8;
134
+ case 2:
135
+ _context.next = 3;
136
136
  return _Api.default.sendRequest('/usage_snapshots', 'GET', params, options);
137
- case 8:
137
+ case 3:
138
138
  response = _context.sent;
139
139
  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) {
140
140
  return new _UsageSnapshot(obj, options);
141
141
  })) || []);
142
- case 10:
142
+ case 4:
143
143
  case "end":
144
144
  return _context.stop();
145
145
  }