files.com 1.0.235 → 1.0.237

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 (77) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +9 -2
  3. package/docs/models/BundleNotification.md +35 -0
  4. package/docs/models/BundleRegistration.md +3 -1
  5. package/docs/models/InboxRegistration.md +3 -1
  6. package/docs/models/Site.md +2 -0
  7. package/lib/Api.js +153 -159
  8. package/lib/isomorphic/File.node.js +24 -28
  9. package/lib/models/ActionNotificationExport.js +97 -101
  10. package/lib/models/ActionNotificationExportResult.js +44 -46
  11. package/lib/models/ActionWebhookFailure.js +42 -44
  12. package/lib/models/ApiKey.js +271 -287
  13. package/lib/models/App.js +26 -28
  14. package/lib/models/As2IncomingMessage.js +32 -34
  15. package/lib/models/As2OutgoingMessage.js +32 -34
  16. package/lib/models/As2Partner.js +231 -241
  17. package/lib/models/As2Station.js +219 -229
  18. package/lib/models/Automation.js +333 -343
  19. package/lib/models/AutomationRun.js +75 -79
  20. package/lib/models/BandwidthSnapshot.js +26 -28
  21. package/lib/models/Behavior.js +323 -337
  22. package/lib/models/Bundle.js +381 -387
  23. package/lib/models/BundleDownload.js +38 -40
  24. package/lib/models/BundleNotification.js +223 -173
  25. package/lib/models/BundleRecipient.js +104 -108
  26. package/lib/models/BundleRegistration.js +41 -40
  27. package/lib/models/Clickwrap.js +213 -223
  28. package/lib/models/DnsRecord.js +26 -28
  29. package/lib/models/ExternalEvent.js +93 -99
  30. package/lib/models/File.js +726 -766
  31. package/lib/models/FileComment.js +180 -188
  32. package/lib/models/FileCommentReaction.js +84 -88
  33. package/lib/models/FileMigration.js +31 -33
  34. package/lib/models/Folder.js +94 -98
  35. package/lib/models/FormFieldSet.js +189 -199
  36. package/lib/models/Group.js +207 -217
  37. package/lib/models/GroupUser.js +230 -238
  38. package/lib/models/History.js +266 -276
  39. package/lib/models/HistoryExport.js +175 -179
  40. package/lib/models/HistoryExportResult.js +44 -46
  41. package/lib/models/InboxRecipient.js +104 -108
  42. package/lib/models/InboxRegistration.js +35 -34
  43. package/lib/models/InboxUpload.js +38 -40
  44. package/lib/models/Invoice.js +57 -61
  45. package/lib/models/IpAddress.js +78 -84
  46. package/lib/models/Lock.js +148 -154
  47. package/lib/models/Message.js +267 -277
  48. package/lib/models/MessageComment.js +207 -217
  49. package/lib/models/MessageCommentReaction.js +147 -155
  50. package/lib/models/MessageReaction.js +147 -155
  51. package/lib/models/Notification.js +255 -265
  52. package/lib/models/Payment.js +57 -61
  53. package/lib/models/Permission.js +128 -134
  54. package/lib/models/Priority.js +45 -47
  55. package/lib/models/Project.js +183 -193
  56. package/lib/models/PublicKey.js +207 -217
  57. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  58. package/lib/models/RemoteServer.js +805 -819
  59. package/lib/models/Request.js +166 -174
  60. package/lib/models/Session.js +47 -51
  61. package/lib/models/SettingsChange.js +26 -28
  62. package/lib/models/SftpHostKey.js +177 -187
  63. package/lib/models/Site.js +415 -418
  64. package/lib/models/SsoStrategy.js +99 -105
  65. package/lib/models/Style.js +127 -133
  66. package/lib/models/UsageDailySnapshot.js +26 -28
  67. package/lib/models/UsageSnapshot.js +26 -28
  68. package/lib/models/User.js +587 -603
  69. package/lib/models/UserCipherUse.js +32 -34
  70. package/lib/models/UserRequest.js +147 -155
  71. package/lib/models/WebhookTest.js +54 -56
  72. package/package.json +1 -1
  73. package/src/models/Bundle.js +10 -1
  74. package/src/models/BundleNotification.js +39 -1
  75. package/src/models/BundleRegistration.js +3 -0
  76. package/src/models/InboxRegistration.js +3 -0
  77. package/src/models/Site.js +3 -0
@@ -69,52 +69,50 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
69
69
  response,
70
70
  _args = arguments;
71
71
  return _regenerator.default.wrap(function _callee$(_context) {
72
- while (1) {
73
- switch (_context.prev = _context.next) {
74
- case 0:
75
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
76
- options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
77
- if (params['automation_id']) {
78
- _context.next = 4;
79
- break;
80
- }
81
- throw new errors.MissingParameterError('Parameter missing: automation_id');
82
- case 4:
83
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
84
- _context.next = 6;
85
- break;
86
- }
87
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
88
- case 6:
89
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
90
- _context.next = 8;
91
- break;
92
- }
93
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
94
- case 8:
95
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
96
- _context.next = 10;
97
- break;
98
- }
99
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
100
- case 10:
101
- if (!(params['automation_id'] && !(0, _utils.isInt)(params['automation_id']))) {
102
- _context.next = 12;
103
- break;
104
- }
105
- throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params['automation_id'])));
106
- case 12:
107
- _context.next = 14;
108
- return _Api.default.sendRequest("/automation_runs", 'GET', params, options);
109
- case 14:
110
- response = _context.sent;
111
- return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
112
- return new AutomationRun(obj, options);
113
- })) || []);
114
- case 16:
115
- case "end":
116
- return _context.stop();
117
- }
72
+ while (1) switch (_context.prev = _context.next) {
73
+ case 0:
74
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
75
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
76
+ if (params['automation_id']) {
77
+ _context.next = 4;
78
+ break;
79
+ }
80
+ throw new errors.MissingParameterError('Parameter missing: automation_id');
81
+ case 4:
82
+ if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
83
+ _context.next = 6;
84
+ break;
85
+ }
86
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
87
+ case 6:
88
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
89
+ _context.next = 8;
90
+ break;
91
+ }
92
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
93
+ case 8:
94
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
95
+ _context.next = 10;
96
+ break;
97
+ }
98
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
99
+ case 10:
100
+ if (!(params['automation_id'] && !(0, _utils.isInt)(params['automation_id']))) {
101
+ _context.next = 12;
102
+ break;
103
+ }
104
+ throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params['automation_id'])));
105
+ case 12:
106
+ _context.next = 14;
107
+ return _Api.default.sendRequest("/automation_runs", 'GET', params, options);
108
+ case 14:
109
+ response = _context.sent;
110
+ return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
111
+ return new AutomationRun(obj, options);
112
+ })) || []);
113
+ case 16:
114
+ case "end":
115
+ return _context.stop();
118
116
  }
119
117
  }, _callee);
120
118
  })));
@@ -130,39 +128,37 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
130
128
  response,
131
129
  _args2 = arguments;
132
130
  return _regenerator.default.wrap(function _callee2$(_context2) {
133
- while (1) {
134
- switch (_context2.prev = _context2.next) {
135
- case 0:
136
- params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
137
- options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
138
- if ((0, _utils.isObject)(params)) {
139
- _context2.next = 4;
140
- break;
141
- }
142
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
143
- case 4:
144
- params['id'] = id;
145
- if (params['id']) {
146
- _context2.next = 7;
147
- break;
148
- }
149
- throw new errors.MissingParameterError('Parameter missing: id');
150
- case 7:
151
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
152
- _context2.next = 9;
153
- break;
154
- }
155
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
156
- case 9:
157
- _context2.next = 11;
158
- return _Api.default.sendRequest("/automation_runs/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
159
- case 11:
160
- response = _context2.sent;
161
- return _context2.abrupt("return", new AutomationRun(response === null || response === void 0 ? void 0 : response.data, options));
162
- case 13:
163
- case "end":
164
- return _context2.stop();
165
- }
131
+ while (1) switch (_context2.prev = _context2.next) {
132
+ case 0:
133
+ params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
134
+ options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
135
+ if ((0, _utils.isObject)(params)) {
136
+ _context2.next = 4;
137
+ break;
138
+ }
139
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
140
+ case 4:
141
+ params['id'] = id;
142
+ if (params['id']) {
143
+ _context2.next = 7;
144
+ break;
145
+ }
146
+ throw new errors.MissingParameterError('Parameter missing: id');
147
+ case 7:
148
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
149
+ _context2.next = 9;
150
+ break;
151
+ }
152
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
153
+ case 9:
154
+ _context2.next = 11;
155
+ return _Api.default.sendRequest("/automation_runs/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
156
+ case 11:
157
+ response = _context2.sent;
158
+ return _context2.abrupt("return", new AutomationRun(response === null || response === void 0 ? void 0 : response.data, options));
159
+ case 13:
160
+ case "end":
161
+ return _context2.stop();
166
162
  }
167
163
  }, _callee2);
168
164
  }));
@@ -78,34 +78,32 @@ var BandwidthSnapshot = /*#__PURE__*/(0, _createClass2.default)(function Bandwid
78
78
  response,
79
79
  _args = arguments;
80
80
  return _regenerator.default.wrap(function _callee$(_context) {
81
- while (1) {
82
- switch (_context.prev = _context.next) {
83
- case 0:
84
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
85
- options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
86
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
87
- _context.next = 4;
88
- break;
89
- }
90
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
91
- case 4:
92
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
93
- _context.next = 6;
94
- break;
95
- }
96
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
97
- case 6:
98
- _context.next = 8;
99
- return _Api.default.sendRequest("/bandwidth_snapshots", 'GET', params, options);
100
- case 8:
101
- response = _context.sent;
102
- return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
103
- return new BandwidthSnapshot(obj, options);
104
- })) || []);
105
- case 10:
106
- case "end":
107
- return _context.stop();
108
- }
81
+ while (1) switch (_context.prev = _context.next) {
82
+ case 0:
83
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
84
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
85
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
86
+ _context.next = 4;
87
+ break;
88
+ }
89
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
90
+ case 4:
91
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
92
+ _context.next = 6;
93
+ break;
94
+ }
95
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
96
+ case 6:
97
+ _context.next = 8;
98
+ return _Api.default.sendRequest("/bandwidth_snapshots", 'GET', params, options);
99
+ case 8:
100
+ response = _context.sent;
101
+ return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
102
+ return new BandwidthSnapshot(obj, options);
103
+ })) || []);
104
+ case 10:
105
+ case "end":
106
+ return _context.stop();
109
107
  }
110
108
  }, _callee);
111
109
  })));