files.com 1.2.101 → 1.2.103

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 (218) hide show
  1. package/_VERSION +1 -1
  2. package/docs/Errors.md +2 -0
  3. package/docs/models/Action.md +2 -0
  4. package/docs/models/ActionNotificationExportResult.md +0 -2
  5. package/docs/models/ApiKey.md +1 -3
  6. package/docs/models/ApiRequestLog.md +2 -2
  7. package/docs/models/App.md +1 -3
  8. package/docs/models/As2IncomingMessage.md +1 -3
  9. package/docs/models/As2OutgoingMessage.md +1 -3
  10. package/docs/models/As2Partner.md +0 -2
  11. package/docs/models/As2Station.md +0 -2
  12. package/docs/models/Automation.md +1 -10
  13. package/docs/models/AutomationLog.md +0 -2
  14. package/docs/models/AutomationRun.md +1 -3
  15. package/docs/models/BandwidthSnapshot.md +1 -3
  16. package/docs/models/Behavior.md +2 -8
  17. package/docs/models/Bundle.md +1 -3
  18. package/docs/models/BundleAction.md +1 -3
  19. package/docs/models/BundleDownload.md +1 -3
  20. package/docs/models/BundleNotification.md +1 -3
  21. package/docs/models/BundleRecipient.md +1 -3
  22. package/docs/models/BundleRegistration.md +0 -2
  23. package/docs/models/Clickwrap.md +0 -2
  24. package/docs/models/DnsRecord.md +0 -2
  25. package/docs/models/EmailIncomingMessage.md +1 -3
  26. package/docs/models/EmailLog.md +0 -2
  27. package/docs/models/ExavaultApiRequestLog.md +0 -2
  28. package/docs/models/ExternalEvent.md +1 -3
  29. package/docs/models/FileComment.md +0 -2
  30. package/docs/models/FileMigrationLog.md +0 -2
  31. package/docs/models/Folder.md +0 -1
  32. package/docs/models/FormFieldSet.md +0 -2
  33. package/docs/models/FtpActionLog.md +0 -2
  34. package/docs/models/GpgKey.md +1 -3
  35. package/docs/models/Group.md +1 -3
  36. package/docs/models/GroupUser.md +0 -2
  37. package/docs/models/History.md +7 -15
  38. package/docs/models/HistoryExportResult.md +2 -2
  39. package/docs/models/InboxRecipient.md +1 -3
  40. package/docs/models/InboxRegistration.md +0 -2
  41. package/docs/models/InboxUpload.md +1 -3
  42. package/docs/models/Invoice.md +0 -2
  43. package/docs/models/IpAddress.md +0 -8
  44. package/docs/models/Lock.md +0 -2
  45. package/docs/models/Message.md +0 -2
  46. package/docs/models/MessageComment.md +0 -2
  47. package/docs/models/MessageCommentReaction.md +0 -2
  48. package/docs/models/MessageReaction.md +0 -2
  49. package/docs/models/Notification.md +1 -5
  50. package/docs/models/OutboundConnectionLog.md +0 -2
  51. package/docs/models/Payment.md +0 -2
  52. package/docs/models/Permission.md +1 -3
  53. package/docs/models/Priority.md +0 -2
  54. package/docs/models/Project.md +0 -2
  55. package/docs/models/PublicHostingRequestLog.md +0 -2
  56. package/docs/models/PublicKey.md +0 -2
  57. package/docs/models/RemoteBandwidthSnapshot.md +1 -3
  58. package/docs/models/RemoteServer.md +0 -2
  59. package/docs/models/Request.md +2 -6
  60. package/docs/models/SettingsChange.md +3 -3
  61. package/docs/models/SftpActionLog.md +0 -2
  62. package/docs/models/SftpHostKey.md +0 -2
  63. package/docs/models/ShareGroup.md +0 -2
  64. package/docs/models/Site.md +2 -1
  65. package/docs/models/Snapshot.md +0 -2
  66. package/docs/models/SsoStrategy.md +0 -2
  67. package/docs/models/SyncLog.md +0 -2
  68. package/docs/models/UsageDailySnapshot.md +1 -3
  69. package/docs/models/UsageSnapshot.md +0 -2
  70. package/docs/models/User.md +1 -3
  71. package/docs/models/UserCipherUse.md +0 -2
  72. package/docs/models/UserRequest.md +0 -2
  73. package/docs/models/WebDavActionLog.md +0 -2
  74. package/lib/Errors.js +546 -522
  75. package/lib/Files.js +1 -1
  76. package/lib/models/Action.js +4 -0
  77. package/lib/models/ActionNotificationExportResult.js +5 -19
  78. package/lib/models/ApiKey.js +4 -18
  79. package/lib/models/ApiRequestLog.js +7 -17
  80. package/lib/models/App.js +4 -18
  81. package/lib/models/As2IncomingMessage.js +6 -20
  82. package/lib/models/As2OutgoingMessage.js +6 -20
  83. package/lib/models/As2Partner.js +3 -17
  84. package/lib/models/As2Station.js +3 -17
  85. package/lib/models/Automation.js +87 -124
  86. package/lib/models/AutomationLog.js +3 -17
  87. package/lib/models/AutomationRun.js +6 -20
  88. package/lib/models/BandwidthSnapshot.js +4 -18
  89. package/lib/models/Behavior.js +10 -45
  90. package/lib/models/Bundle.js +4 -18
  91. package/lib/models/BundleAction.js +8 -22
  92. package/lib/models/BundleDownload.js +8 -22
  93. package/lib/models/BundleNotification.js +4 -18
  94. package/lib/models/BundleRecipient.js +6 -20
  95. package/lib/models/BundleRegistration.js +5 -19
  96. package/lib/models/Clickwrap.js +3 -17
  97. package/lib/models/DnsRecord.js +3 -17
  98. package/lib/models/EmailIncomingMessage.js +4 -18
  99. package/lib/models/EmailLog.js +3 -17
  100. package/lib/models/ExavaultApiRequestLog.js +3 -17
  101. package/lib/models/ExternalEvent.js +4 -18
  102. package/lib/models/FileComment.js +5 -19
  103. package/lib/models/FileMigrationLog.js +3 -17
  104. package/lib/models/Folder.js +13 -20
  105. package/lib/models/FormFieldSet.js +3 -17
  106. package/lib/models/FtpActionLog.js +3 -17
  107. package/lib/models/GpgKey.js +4 -18
  108. package/lib/models/Group.js +6 -20
  109. package/lib/models/GroupUser.js +5 -19
  110. package/lib/models/History.js +30 -96
  111. package/lib/models/HistoryExportResult.js +9 -19
  112. package/lib/models/InboxRecipient.js +6 -20
  113. package/lib/models/InboxRegistration.js +5 -19
  114. package/lib/models/InboxUpload.js +8 -22
  115. package/lib/models/Invoice.js +3 -17
  116. package/lib/models/IpAddress.js +12 -68
  117. package/lib/models/Lock.js +5 -19
  118. package/lib/models/Message.js +5 -19
  119. package/lib/models/MessageComment.js +5 -19
  120. package/lib/models/MessageCommentReaction.js +5 -19
  121. package/lib/models/MessageReaction.js +5 -19
  122. package/lib/models/Notification.js +12 -33
  123. package/lib/models/OutboundConnectionLog.js +3 -17
  124. package/lib/models/Payment.js +3 -17
  125. package/lib/models/Permission.js +10 -24
  126. package/lib/models/Priority.js +5 -19
  127. package/lib/models/Project.js +3 -17
  128. package/lib/models/PublicHostingRequestLog.js +3 -17
  129. package/lib/models/PublicKey.js +3 -17
  130. package/lib/models/RemoteBandwidthSnapshot.js +4 -18
  131. package/lib/models/RemoteServer.js +3 -17
  132. package/lib/models/Request.js +12 -40
  133. package/lib/models/SettingsChange.js +8 -18
  134. package/lib/models/SftpActionLog.js +3 -17
  135. package/lib/models/SftpHostKey.js +3 -17
  136. package/lib/models/ShareGroup.js +3 -17
  137. package/lib/models/Snapshot.js +3 -17
  138. package/lib/models/SsoStrategy.js +3 -17
  139. package/lib/models/SyncLog.js +3 -17
  140. package/lib/models/UsageDailySnapshot.js +4 -18
  141. package/lib/models/UsageSnapshot.js +3 -17
  142. package/lib/models/User.js +8 -22
  143. package/lib/models/UserCipherUse.js +3 -17
  144. package/lib/models/UserRequest.js +3 -17
  145. package/lib/models/WebDavActionLog.js +3 -17
  146. package/package.json +1 -1
  147. package/src/Errors.js +2 -0
  148. package/src/Files.js +1 -1
  149. package/src/models/Action.js +3 -0
  150. package/src/models/ActionNotificationExportResult.js +0 -10
  151. package/src/models/ApiKey.js +1 -11
  152. package/src/models/ApiRequestLog.js +3 -10
  153. package/src/models/App.js +1 -11
  154. package/src/models/As2IncomingMessage.js +1 -11
  155. package/src/models/As2OutgoingMessage.js +1 -11
  156. package/src/models/As2Partner.js +0 -10
  157. package/src/models/As2Station.js +0 -10
  158. package/src/models/Automation.js +1 -30
  159. package/src/models/AutomationLog.js +0 -10
  160. package/src/models/AutomationRun.js +1 -11
  161. package/src/models/BandwidthSnapshot.js +1 -11
  162. package/src/models/Behavior.js +2 -27
  163. package/src/models/Bundle.js +1 -11
  164. package/src/models/BundleAction.js +1 -11
  165. package/src/models/BundleDownload.js +1 -11
  166. package/src/models/BundleNotification.js +1 -11
  167. package/src/models/BundleRecipient.js +1 -11
  168. package/src/models/BundleRegistration.js +0 -10
  169. package/src/models/Clickwrap.js +0 -10
  170. package/src/models/DnsRecord.js +0 -10
  171. package/src/models/EmailIncomingMessage.js +1 -11
  172. package/src/models/EmailLog.js +0 -10
  173. package/src/models/ExavaultApiRequestLog.js +0 -10
  174. package/src/models/ExternalEvent.js +1 -11
  175. package/src/models/FileComment.js +0 -10
  176. package/src/models/FileMigrationLog.js +0 -10
  177. package/src/models/Folder.js +0 -5
  178. package/src/models/FormFieldSet.js +0 -10
  179. package/src/models/FtpActionLog.js +0 -10
  180. package/src/models/GpgKey.js +1 -11
  181. package/src/models/Group.js +1 -11
  182. package/src/models/GroupUser.js +0 -10
  183. package/src/models/History.js +8 -55
  184. package/src/models/HistoryExportResult.js +3 -10
  185. package/src/models/InboxRecipient.js +1 -11
  186. package/src/models/InboxRegistration.js +0 -10
  187. package/src/models/InboxUpload.js +1 -11
  188. package/src/models/Invoice.js +0 -10
  189. package/src/models/IpAddress.js +0 -40
  190. package/src/models/Lock.js +0 -10
  191. package/src/models/Message.js +0 -10
  192. package/src/models/MessageComment.js +0 -10
  193. package/src/models/MessageCommentReaction.js +0 -10
  194. package/src/models/MessageReaction.js +0 -10
  195. package/src/models/Notification.js +1 -16
  196. package/src/models/OutboundConnectionLog.js +0 -10
  197. package/src/models/Payment.js +0 -10
  198. package/src/models/Permission.js +1 -11
  199. package/src/models/Priority.js +0 -10
  200. package/src/models/Project.js +0 -10
  201. package/src/models/PublicHostingRequestLog.js +0 -10
  202. package/src/models/PublicKey.js +0 -10
  203. package/src/models/RemoteBandwidthSnapshot.js +1 -11
  204. package/src/models/RemoteServer.js +0 -10
  205. package/src/models/Request.js +2 -22
  206. package/src/models/SettingsChange.js +4 -11
  207. package/src/models/SftpActionLog.js +0 -10
  208. package/src/models/SftpHostKey.js +0 -10
  209. package/src/models/ShareGroup.js +0 -10
  210. package/src/models/Snapshot.js +0 -10
  211. package/src/models/SsoStrategy.js +0 -10
  212. package/src/models/SyncLog.js +0 -10
  213. package/src/models/UsageDailySnapshot.js +1 -11
  214. package/src/models/UsageSnapshot.js +0 -10
  215. package/src/models/User.js +1 -11
  216. package/src/models/UserCipherUse.js +0 -10
  217. package/src/models/UserRequest.js +0 -10
  218. package/src/models/WebDavActionLog.js +0 -10
@@ -73,6 +73,10 @@ var History = /*#__PURE__*/(0, _createClass2.default)(function History() {
73
73
  (0, _defineProperty2.default)(this, "getUsername", function () {
74
74
  return _this.attributes.username;
75
75
  });
76
+ // boolean # true if this change was performed by a user on a parent site.
77
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
78
+ return _this.attributes.user_is_from_parent_site;
79
+ });
76
80
  // string # Type of action
77
81
  (0, _defineProperty2.default)(this, "getAction", function () {
78
82
  return _this.attributes.action;
@@ -105,9 +109,7 @@ _History = History;
105
109
  // display - string - Display format. Leave blank or set to `full` or `parent`.
106
110
  // 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.
107
111
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
108
- // action - string
109
- // page - int64
110
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
112
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
111
113
  // path (required) - string - Path to operate on.
112
114
  (0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
113
115
  var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(path) {
@@ -165,33 +167,21 @@ _History = History;
165
167
  }
166
168
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
167
169
  case 17:
168
- if (!(params.action && !(0, _utils.isString)(params.action))) {
169
- _context.next = 19;
170
- break;
171
- }
172
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
173
- case 19:
174
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
175
- _context.next = 21;
176
- break;
177
- }
178
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
179
- case 21:
180
170
  if (!(params.path && !(0, _utils.isString)(params.path))) {
181
- _context.next = 23;
171
+ _context.next = 19;
182
172
  break;
183
173
  }
184
174
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
185
- case 23:
186
- _context.next = 25;
175
+ case 19:
176
+ _context.next = 21;
187
177
  return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
188
- case 25:
178
+ case 21:
189
179
  response = _context.sent;
190
180
  Action = require('./Action.js').default;
191
181
  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) {
192
182
  return new Action(obj, options);
193
183
  })) || []);
194
- case 28:
184
+ case 24:
195
185
  case "end":
196
186
  return _context.stop();
197
187
  }
@@ -207,9 +197,7 @@ _History = History;
207
197
  // display - string - Display format. Leave blank or set to `full` or `parent`.
208
198
  // 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.
209
199
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
210
- // action - string
211
- // page - int64
212
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
200
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
213
201
  // path (required) - string - Path to operate on.
214
202
  (0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
215
203
  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
@@ -267,33 +255,21 @@ _History = History;
267
255
  }
268
256
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
269
257
  case 17:
270
- if (!(params.action && !(0, _utils.isString)(params.action))) {
271
- _context2.next = 19;
272
- break;
273
- }
274
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
275
- case 19:
276
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
277
- _context2.next = 21;
278
- break;
279
- }
280
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
281
- case 21:
282
258
  if (!(params.path && !(0, _utils.isString)(params.path))) {
283
- _context2.next = 23;
259
+ _context2.next = 19;
284
260
  break;
285
261
  }
286
262
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
287
- case 23:
288
- _context2.next = 25;
263
+ case 19:
264
+ _context2.next = 21;
289
265
  return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
290
- case 25:
266
+ case 21:
291
267
  response = _context2.sent;
292
268
  Action = require('./Action.js').default;
293
269
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
294
270
  return new Action(obj, options);
295
271
  })) || []);
296
- case 28:
272
+ case 24:
297
273
  case "end":
298
274
  return _context2.stop();
299
275
  }
@@ -309,9 +285,7 @@ _History = History;
309
285
  // display - string - Display format. Leave blank or set to `full` or `parent`.
310
286
  // 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.
311
287
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
312
- // action - string
313
- // page - int64
314
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
288
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
315
289
  // user_id (required) - int64 - User ID.
316
290
  (0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
317
291
  var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(userId) {
@@ -369,33 +343,21 @@ _History = History;
369
343
  }
370
344
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
371
345
  case 17:
372
- if (!(params.action && !(0, _utils.isString)(params.action))) {
373
- _context3.next = 19;
374
- break;
375
- }
376
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
377
- case 19:
378
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
379
- _context3.next = 21;
380
- break;
381
- }
382
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
383
- case 21:
384
346
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
385
- _context3.next = 23;
347
+ _context3.next = 19;
386
348
  break;
387
349
  }
388
350
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
389
- case 23:
390
- _context3.next = 25;
351
+ case 19:
352
+ _context3.next = 21;
391
353
  return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
392
- case 25:
354
+ case 21:
393
355
  response = _context3.sent;
394
356
  Action = require('./Action.js').default;
395
357
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
396
358
  return new Action(obj, options);
397
359
  })) || []);
398
- case 28:
360
+ case 24:
399
361
  case "end":
400
362
  return _context3.stop();
401
363
  }
@@ -411,9 +373,7 @@ _History = History;
411
373
  // display - string - Display format. Leave blank or set to `full` or `parent`.
412
374
  // 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.
413
375
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
414
- // action - string
415
- // page - int64
416
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
376
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
417
377
  (0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
418
378
  var _response$data4;
419
379
  var params,
@@ -456,27 +416,15 @@ _History = History;
456
416
  }
457
417
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
458
418
  case 12:
459
- if (!(params.action && !(0, _utils.isString)(params.action))) {
460
- _context4.next = 14;
461
- break;
462
- }
463
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
464
- case 14:
465
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
466
- _context4.next = 16;
467
- break;
468
- }
469
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
470
- case 16:
471
- _context4.next = 18;
419
+ _context4.next = 14;
472
420
  return _Api.default.sendRequest('/history/login', 'GET', params, options);
473
- case 18:
421
+ case 14:
474
422
  response = _context4.sent;
475
423
  Action = require('./Action.js').default;
476
424
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.map(function (obj) {
477
425
  return new Action(obj, options);
478
426
  })) || []);
479
- case 21:
427
+ case 17:
480
428
  case "end":
481
429
  return _context4.stop();
482
430
  }
@@ -488,9 +436,7 @@ _History = History;
488
436
  // display - string - Display format. Leave blank or set to `full` or `parent`.
489
437
  // 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.
490
438
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
491
- // action - string
492
- // page - int64
493
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `folder`, `user_id` or `created_at`.
439
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `folder`, `user_id` or `created_at`.
494
440
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
495
441
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
496
442
  (0, _defineProperty2.default)(History, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
@@ -535,27 +481,15 @@ _History = History;
535
481
  }
536
482
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
537
483
  case 12:
538
- if (!(params.action && !(0, _utils.isString)(params.action))) {
539
- _context5.next = 14;
540
- break;
541
- }
542
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
543
- case 14:
544
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
545
- _context5.next = 16;
546
- break;
547
- }
548
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
549
- case 16:
550
- _context5.next = 18;
484
+ _context5.next = 14;
551
485
  return _Api.default.sendRequest('/history', 'GET', params, options);
552
- case 18:
486
+ case 14:
553
487
  response = _context5.sent;
554
488
  Action = require('./Action.js').default;
555
489
  return _context5.abrupt("return", (response === null || response === void 0 || (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : _response$data5.map(function (obj) {
556
490
  return new Action(obj, options);
557
491
  })) || []);
558
- case 21:
492
+ case 17:
559
493
  case "end":
560
494
  return _context5.stop();
561
495
  }
@@ -81,6 +81,10 @@ var HistoryExportResult = /*#__PURE__*/(0, _createClass2.default)(function Histo
81
81
  (0, _defineProperty2.default)(this, "getUsername", function () {
82
82
  return _this.attributes.username;
83
83
  });
84
+ // boolean # true if this change was performed by a user on a parent site.
85
+ (0, _defineProperty2.default)(this, "getUserIsFromParentSite", function () {
86
+ return _this.attributes.user_is_from_parent_site;
87
+ });
84
88
  // string # What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
85
89
  (0, _defineProperty2.default)(this, "getAction", function () {
86
90
  return _this.attributes.action;
@@ -151,8 +155,6 @@ _HistoryExportResult = HistoryExportResult;
151
155
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
152
156
  // 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.
153
157
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
154
- // action - string
155
- // page - int64
156
158
  // history_export_id (required) - int64 - ID of the associated history export.
157
159
  (0, _defineProperty2.default)(HistoryExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
158
160
  var _response$data;
@@ -189,32 +191,20 @@ _HistoryExportResult = HistoryExportResult;
189
191
  }
190
192
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
191
193
  case 10:
192
- if (!(params.action && !(0, _utils.isString)(params.action))) {
193
- _context.next = 12;
194
- break;
195
- }
196
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
197
- case 12:
198
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
199
- _context.next = 14;
200
- break;
201
- }
202
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
203
- case 14:
204
194
  if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
205
- _context.next = 16;
195
+ _context.next = 12;
206
196
  break;
207
197
  }
208
198
  throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
209
- case 16:
210
- _context.next = 18;
199
+ case 12:
200
+ _context.next = 14;
211
201
  return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
212
- case 18:
202
+ case 14:
213
203
  response = _context.sent;
214
204
  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) {
215
205
  return new _HistoryExportResult(obj, options);
216
206
  })) || []);
217
- case 20:
207
+ case 16:
218
208
  case "end":
219
209
  return _context.stop();
220
210
  }
@@ -122,9 +122,7 @@ _InboxRecipient = InboxRecipient;
122
122
  // Parameters:
123
123
  // 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.
124
124
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
125
- // action - string
126
- // page - int64
127
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
125
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `has_registrations`.
128
126
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
129
127
  // inbox_id (required) - int64 - List recipients for the inbox with this ID.
130
128
  (0, _defineProperty2.default)(InboxRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
@@ -156,32 +154,20 @@ _InboxRecipient = InboxRecipient;
156
154
  }
157
155
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
158
156
  case 8:
159
- if (!(params.action && !(0, _utils.isString)(params.action))) {
160
- _context2.next = 10;
161
- break;
162
- }
163
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
164
- case 10:
165
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
166
- _context2.next = 12;
167
- break;
168
- }
169
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
170
- case 12:
171
157
  if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
172
- _context2.next = 14;
158
+ _context2.next = 10;
173
159
  break;
174
160
  }
175
161
  throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
176
- case 14:
177
- _context2.next = 16;
162
+ case 10:
163
+ _context2.next = 12;
178
164
  return _Api.default.sendRequest('/inbox_recipients', 'GET', params, options);
179
- case 16:
165
+ case 12:
180
166
  response = _context2.sent;
181
167
  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) {
182
168
  return new _InboxRecipient(obj, options);
183
169
  })) || []);
184
- case 18:
170
+ case 14:
185
171
  case "end":
186
172
  return _context2.stop();
187
173
  }
@@ -98,8 +98,6 @@ _InboxRegistration = InboxRegistration;
98
98
  // Parameters:
99
99
  // 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.
100
100
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
101
- // action - string
102
- // page - int64
103
101
  // folder_behavior_id - int64 - ID of the associated Inbox.
104
102
  (0, _defineProperty2.default)(InboxRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
105
103
  var _response$data;
@@ -124,32 +122,20 @@ _InboxRegistration = InboxRegistration;
124
122
  }
125
123
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
126
124
  case 6:
127
- if (!(params.action && !(0, _utils.isString)(params.action))) {
128
- _context.next = 8;
129
- break;
130
- }
131
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
132
- case 8:
133
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
134
- _context.next = 10;
135
- break;
136
- }
137
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
138
- case 10:
139
125
  if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
140
- _context.next = 12;
126
+ _context.next = 8;
141
127
  break;
142
128
  }
143
129
  throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
144
- case 12:
145
- _context.next = 14;
130
+ case 8:
131
+ _context.next = 10;
146
132
  return _Api.default.sendRequest('/inbox_registrations', 'GET', params, options);
147
- case 14:
133
+ case 10:
148
134
  response = _context.sent;
149
135
  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) {
150
136
  return new _InboxRegistration(obj, options);
151
137
  })) || []);
152
- case 16:
138
+ case 12:
153
139
  case "end":
154
140
  return _context.stop();
155
141
  }
@@ -62,9 +62,7 @@ _InboxUpload = InboxUpload;
62
62
  // Parameters:
63
63
  // 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.
64
64
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
65
- // action - string
66
- // page - int64
67
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`.
65
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
68
66
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
69
67
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
70
68
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
@@ -95,38 +93,26 @@ _InboxUpload = InboxUpload;
95
93
  }
96
94
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
97
95
  case 6:
98
- if (!(params.action && !(0, _utils.isString)(params.action))) {
99
- _context.next = 8;
100
- break;
101
- }
102
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
103
- case 8:
104
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
105
- _context.next = 10;
106
- break;
107
- }
108
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
109
- case 10:
110
96
  if (!(params.inbox_registration_id && !(0, _utils.isInt)(params.inbox_registration_id))) {
111
- _context.next = 12;
97
+ _context.next = 8;
112
98
  break;
113
99
  }
114
100
  throw new errors.InvalidParameterError("Bad parameter: inbox_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_registration_id)));
115
- case 12:
101
+ case 8:
116
102
  if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
117
- _context.next = 14;
103
+ _context.next = 10;
118
104
  break;
119
105
  }
120
106
  throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
121
- case 14:
122
- _context.next = 16;
107
+ case 10:
108
+ _context.next = 12;
123
109
  return _Api.default.sendRequest('/inbox_uploads', 'GET', params, options);
124
- case 16:
110
+ case 12:
125
111
  response = _context.sent;
126
112
  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) {
127
113
  return new _InboxUpload(obj, options);
128
114
  })) || []);
129
- case 18:
115
+ case 14:
130
116
  case "end":
131
117
  return _context.stop();
132
118
  }
@@ -102,8 +102,6 @@ _Invoice = Invoice;
102
102
  // Parameters:
103
103
  // 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.
104
104
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
105
- // action - string
106
- // page - int64
107
105
  (0, _defineProperty2.default)(Invoice, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
108
106
  var _response$data;
109
107
  var params,
@@ -128,27 +126,15 @@ _Invoice = Invoice;
128
126
  }
129
127
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
130
128
  case 6:
131
- if (!(params.action && !(0, _utils.isString)(params.action))) {
132
- _context.next = 8;
133
- break;
134
- }
135
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
136
- case 8:
137
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
138
- _context.next = 10;
139
- break;
140
- }
141
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
142
- case 10:
143
- _context.next = 12;
129
+ _context.next = 8;
144
130
  return _Api.default.sendRequest('/invoices', 'GET', params, options);
145
- case 12:
131
+ case 8:
146
132
  response = _context.sent;
147
133
  AccountLineItem = require('./AccountLineItem.js').default;
148
134
  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) {
149
135
  return new AccountLineItem(obj, options);
150
136
  })) || []);
151
- case 15:
137
+ case 11:
152
138
  case "end":
153
139
  return _context.stop();
154
140
  }