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.
Files changed (165) hide show
  1. package/.eslintrc.js +0 -3
  2. package/_VERSION +1 -1
  3. package/docs/Errors.md +1 -0
  4. package/lib/Api.js +1 -1
  5. package/lib/Errors.js +957 -933
  6. package/lib/Files.js +1 -1
  7. package/lib/models/ActionNotificationExport.js +25 -25
  8. package/lib/models/ActionNotificationExportResult.js +10 -10
  9. package/lib/models/ActionWebhookFailure.js +5 -9
  10. package/lib/models/ApiKey.js +62 -70
  11. package/lib/models/App.js +5 -5
  12. package/lib/models/As2IncomingMessage.js +7 -7
  13. package/lib/models/As2OutgoingMessage.js +7 -7
  14. package/lib/models/As2Partner.js +54 -58
  15. package/lib/models/As2Station.js +51 -55
  16. package/lib/models/Automation.js +102 -110
  17. package/lib/models/AutomationRun.js +13 -13
  18. package/lib/models/BandwidthSnapshot.js +5 -5
  19. package/lib/models/Behavior.js +77 -85
  20. package/lib/models/Bundle.js +102 -110
  21. package/lib/models/BundleDownload.js +9 -9
  22. package/lib/models/BundleNotification.js +37 -41
  23. package/lib/models/BundleRecipient.js +22 -22
  24. package/lib/models/BundleRegistration.js +7 -7
  25. package/lib/models/Clickwrap.js +52 -56
  26. package/lib/models/DnsRecord.js +5 -5
  27. package/lib/models/EmailIncomingMessage.js +5 -5
  28. package/lib/models/ExternalEvent.js +18 -18
  29. package/lib/models/File.js +89 -93
  30. package/lib/models/FileComment.js +41 -45
  31. package/lib/models/FileCommentReaction.js +15 -19
  32. package/lib/models/FileMigration.js +5 -5
  33. package/lib/models/Folder.js +24 -24
  34. package/lib/models/FormFieldSet.js +44 -48
  35. package/lib/models/GpgKey.js +53 -57
  36. package/lib/models/Group.js +51 -55
  37. package/lib/models/GroupUser.js +53 -57
  38. package/lib/models/History.js +72 -72
  39. package/lib/models/HistoryExport.js +51 -51
  40. package/lib/models/HistoryExportResult.js +10 -10
  41. package/lib/models/InboxRecipient.js +22 -22
  42. package/lib/models/InboxRegistration.js +7 -7
  43. package/lib/models/InboxUpload.js +9 -9
  44. package/lib/models/Invoice.js +12 -12
  45. package/lib/models/IpAddress.js +17 -17
  46. package/lib/models/Lock.js +27 -31
  47. package/lib/models/Message.js +60 -64
  48. package/lib/models/MessageComment.js +46 -50
  49. package/lib/models/MessageCommentReaction.js +27 -31
  50. package/lib/models/MessageReaction.js +27 -31
  51. package/lib/models/Notification.js +66 -70
  52. package/lib/models/Payment.js +12 -12
  53. package/lib/models/Permission.js +28 -32
  54. package/lib/models/Priority.js +9 -9
  55. package/lib/models/Project.js +39 -43
  56. package/lib/models/PublicKey.js +46 -50
  57. package/lib/models/RemoteBandwidthSnapshot.js +5 -5
  58. package/lib/models/RemoteServer.js +306 -310
  59. package/lib/models/Request.js +33 -37
  60. package/lib/models/Session.js +11 -15
  61. package/lib/models/SettingsChange.js +5 -5
  62. package/lib/models/SftpHostKey.js +40 -44
  63. package/lib/models/ShareGroup.js +50 -54
  64. package/lib/models/Site.js +138 -138
  65. package/lib/models/Snapshot.js +44 -48
  66. package/lib/models/SsoStrategy.js +15 -19
  67. package/lib/models/Style.js +17 -21
  68. package/lib/models/UsageDailySnapshot.js +5 -5
  69. package/lib/models/UsageSnapshot.js +5 -5
  70. package/lib/models/User.js +156 -172
  71. package/lib/models/UserCipherUse.js +7 -7
  72. package/lib/models/UserRequest.js +26 -30
  73. package/lib/models/WebhookTest.js +15 -15
  74. package/package.json +6 -2
  75. package/src/Api.js +2 -1
  76. package/src/Errors.js +189 -177
  77. package/src/Files.js +1 -1
  78. package/src/models/AccountLineItem.js +5 -2
  79. package/src/models/Action.js +5 -2
  80. package/src/models/ActionNotificationExport.js +36 -35
  81. package/src/models/ActionNotificationExportResult.js +15 -13
  82. package/src/models/ActionWebhookFailure.js +9 -8
  83. package/src/models/ApiKey.js +69 -72
  84. package/src/models/App.js +10 -8
  85. package/src/models/As2IncomingMessage.js +12 -10
  86. package/src/models/As2OutgoingMessage.js +12 -10
  87. package/src/models/As2Partner.js +61 -60
  88. package/src/models/As2Station.js +58 -57
  89. package/src/models/Auto.js +5 -2
  90. package/src/models/Automation.js +121 -110
  91. package/src/models/AutomationRun.js +18 -17
  92. package/src/models/BandwidthSnapshot.js +10 -8
  93. package/src/models/Behavior.js +85 -86
  94. package/src/models/Bundle.js +121 -110
  95. package/src/models/BundleDownload.js +14 -12
  96. package/src/models/BundleNotification.js +40 -43
  97. package/src/models/BundleRecipient.js +33 -32
  98. package/src/models/BundleRegistration.js +12 -10
  99. package/src/models/Clickwrap.js +60 -58
  100. package/src/models/DnsRecord.js +10 -8
  101. package/src/models/EmailIncomingMessage.js +10 -8
  102. package/src/models/Errors.js +5 -2
  103. package/src/models/ExternalEvent.js +29 -29
  104. package/src/models/File.js +116 -108
  105. package/src/models/FileAction.js +5 -2
  106. package/src/models/FileComment.js +45 -46
  107. package/src/models/FileCommentReaction.js +26 -26
  108. package/src/models/FileMigration.js +10 -8
  109. package/src/models/FileUploadPart.js +5 -2
  110. package/src/models/Folder.js +32 -29
  111. package/src/models/FormField.js +5 -2
  112. package/src/models/FormFieldSet.js +49 -50
  113. package/src/models/GpgKey.js +60 -59
  114. package/src/models/Group.js +58 -57
  115. package/src/models/GroupUser.js +60 -58
  116. package/src/models/History.js +77 -74
  117. package/src/models/HistoryExport.js +62 -61
  118. package/src/models/HistoryExportResult.js +15 -13
  119. package/src/models/Image.js +5 -2
  120. package/src/models/InboxRecipient.js +33 -32
  121. package/src/models/InboxRegistration.js +12 -10
  122. package/src/models/InboxUpload.js +14 -12
  123. package/src/models/Invoice.js +17 -14
  124. package/src/models/InvoiceLineItem.js +5 -2
  125. package/src/models/IpAddress.js +22 -20
  126. package/src/models/Lock.js +36 -36
  127. package/src/models/Message.js +66 -66
  128. package/src/models/MessageComment.js +50 -52
  129. package/src/models/MessageCommentReaction.js +38 -40
  130. package/src/models/MessageReaction.js +38 -40
  131. package/src/models/Notification.js +74 -72
  132. package/src/models/Payment.js +17 -14
  133. package/src/models/PaymentLineItem.js +5 -2
  134. package/src/models/Permission.js +39 -40
  135. package/src/models/Preview.js +5 -2
  136. package/src/models/Priority.js +14 -12
  137. package/src/models/Project.js +43 -45
  138. package/src/models/PublicIpAddress.js +5 -2
  139. package/src/models/PublicKey.js +50 -52
  140. package/src/models/RemoteBandwidthSnapshot.js +10 -8
  141. package/src/models/RemoteServer.js +380 -312
  142. package/src/models/RemoteServerConfigurationFile.js +5 -2
  143. package/src/models/Request.js +44 -46
  144. package/src/models/Session.js +22 -22
  145. package/src/models/SettingsChange.js +10 -8
  146. package/src/models/SftpHostKey.js +45 -46
  147. package/src/models/ShareGroup.js +56 -56
  148. package/src/models/ShareGroupMember.js +5 -2
  149. package/src/models/Site.js +143 -142
  150. package/src/models/Snapshot.js +50 -50
  151. package/src/models/SsoStrategy.js +20 -21
  152. package/src/models/Status.js +5 -2
  153. package/src/models/Style.js +22 -23
  154. package/src/models/UsageDailySnapshot.js +10 -8
  155. package/src/models/UsageSnapshot.js +10 -8
  156. package/src/models/User.js +185 -168
  157. package/src/models/UserCipherUse.js +12 -10
  158. package/src/models/UserRequest.js +37 -39
  159. package/src/models/WebhookTest.js +26 -24
  160. package/test/Api.test.js +163 -0
  161. package/test/{package.json → integration/package.json} +1 -1
  162. package/test/{src → integration/src}/index.js +1 -1
  163. package/test.sh +2 -1
  164. /package/test/{.babelrc → integration/.babelrc} +0 -0
  165. /package/test/{index.js → integration/index.js} +0 -0
@@ -77,20 +77,20 @@ _class = DnsRecord;
77
77
  case 0:
78
78
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
79
79
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
80
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
80
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
81
81
  _context.next = 4;
82
82
  break;
83
83
  }
84
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
84
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
85
85
  case 4:
86
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
86
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
87
87
  _context.next = 6;
88
88
  break;
89
89
  }
90
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
90
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
91
91
  case 6:
92
92
  _context.next = 8;
93
- return _Api.default.sendRequest("/dns_records", 'GET', params, options);
93
+ return _Api.default.sendRequest('/dns_records', 'GET', params, options);
94
94
  case 8:
95
95
  response = _context.sent;
96
96
  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) {
@@ -104,20 +104,20 @@ _class = EmailIncomingMessage;
104
104
  case 0:
105
105
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
106
106
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
107
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
107
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
108
108
  _context.next = 4;
109
109
  break;
110
110
  }
111
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
111
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
112
112
  case 4:
113
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
113
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
114
114
  _context.next = 6;
115
115
  break;
116
116
  }
117
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
117
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
118
118
  case 6:
119
119
  _context.next = 8;
120
- return _Api.default.sendRequest("/email_incoming_messages", 'GET', params, options);
120
+ return _Api.default.sendRequest('/email_incoming_messages', 'GET', params, options);
121
121
  case 8:
122
122
  response = _context.sent;
123
123
  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) {
@@ -112,7 +112,7 @@ var ExternalEvent = /*#__PURE__*/(0, _createClass2.default)(function ExternalEve
112
112
  return _regenerator.default.wrap(function _callee$(_context) {
113
113
  while (1) switch (_context.prev = _context.next) {
114
114
  case 0:
115
- if (!_this.attributes['id']) {
115
+ if (!_this.attributes.id) {
116
116
  _context.next = 4;
117
117
  break;
118
118
  }
@@ -165,20 +165,20 @@ _class = ExternalEvent;
165
165
  case 0:
166
166
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
167
167
  options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
168
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
168
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
169
169
  _context2.next = 4;
170
170
  break;
171
171
  }
172
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
172
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
173
173
  case 4:
174
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
174
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
175
175
  _context2.next = 6;
176
176
  break;
177
177
  }
178
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
178
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
179
179
  case 6:
180
180
  _context2.next = 8;
181
- return _Api.default.sendRequest("/external_events", 'GET', params, options);
181
+ return _Api.default.sendRequest('/external_events', 'GET', params, options);
182
182
  case 8:
183
183
  response = _context2.sent;
184
184
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
@@ -214,21 +214,21 @@ _class = ExternalEvent;
214
214
  }
215
215
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
216
216
  case 4:
217
- params['id'] = id;
218
- if (params['id']) {
217
+ params.id = id;
218
+ if (params.id) {
219
219
  _context3.next = 7;
220
220
  break;
221
221
  }
222
222
  throw new errors.MissingParameterError('Parameter missing: id');
223
223
  case 7:
224
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
224
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
225
225
  _context3.next = 9;
226
226
  break;
227
227
  }
228
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
228
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
229
229
  case 9:
230
230
  _context3.next = 11;
231
- return _Api.default.sendRequest("/external_events/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
231
+ return _Api.default.sendRequest("/external_events/".concat(encodeURIComponent(params.id)), 'GET', params, options);
232
232
  case 11:
233
233
  response = _context3.sent;
234
234
  return _context3.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -260,32 +260,32 @@ _class = ExternalEvent;
260
260
  case 0:
261
261
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
262
262
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
263
- if (params['status']) {
263
+ if (params.status) {
264
264
  _context4.next = 4;
265
265
  break;
266
266
  }
267
267
  throw new errors.MissingParameterError('Parameter missing: status');
268
268
  case 4:
269
- if (params['body']) {
269
+ if (params.body) {
270
270
  _context4.next = 6;
271
271
  break;
272
272
  }
273
273
  throw new errors.MissingParameterError('Parameter missing: body');
274
274
  case 6:
275
- if (!(params['status'] && !(0, _utils.isString)(params['status']))) {
275
+ if (!(params.status && !(0, _utils.isString)(params.status))) {
276
276
  _context4.next = 8;
277
277
  break;
278
278
  }
279
- throw new errors.InvalidParameterError("Bad parameter: status must be of type String, received ".concat((0, _utils.getType)(params['status'])));
279
+ throw new errors.InvalidParameterError("Bad parameter: status must be of type String, received ".concat((0, _utils.getType)(params.status)));
280
280
  case 8:
281
- if (!(params['body'] && !(0, _utils.isString)(params['body']))) {
281
+ if (!(params.body && !(0, _utils.isString)(params.body))) {
282
282
  _context4.next = 10;
283
283
  break;
284
284
  }
285
- throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params['body'])));
285
+ throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params.body)));
286
286
  case 10:
287
287
  _context4.next = 12;
288
- return _Api.default.sendRequest("/external_events", 'POST', params, options);
288
+ return _Api.default.sendRequest('/external_events', 'POST', params, options);
289
289
  case 12:
290
290
  response = _context4.sent;
291
291
  return _context4.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));