files.com 1.0.236 → 1.0.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/_VERSION +1 -1
  2. package/docs/Errors.md +1 -0
  3. package/docs/models/BundleNotification.md +35 -0
  4. package/lib/Api.js +153 -159
  5. package/lib/Errors.js +680 -666
  6. package/lib/isomorphic/File.node.js +24 -28
  7. package/lib/models/ActionNotificationExport.js +97 -101
  8. package/lib/models/ActionNotificationExportResult.js +44 -46
  9. package/lib/models/ActionWebhookFailure.js +42 -44
  10. package/lib/models/ApiKey.js +271 -287
  11. package/lib/models/App.js +26 -28
  12. package/lib/models/As2IncomingMessage.js +32 -34
  13. package/lib/models/As2OutgoingMessage.js +32 -34
  14. package/lib/models/As2Partner.js +231 -241
  15. package/lib/models/As2Station.js +219 -229
  16. package/lib/models/Automation.js +333 -343
  17. package/lib/models/AutomationRun.js +75 -79
  18. package/lib/models/BandwidthSnapshot.js +26 -28
  19. package/lib/models/Behavior.js +323 -337
  20. package/lib/models/Bundle.js +375 -387
  21. package/lib/models/BundleDownload.js +38 -40
  22. package/lib/models/BundleNotification.js +223 -173
  23. package/lib/models/BundleRecipient.js +104 -108
  24. package/lib/models/BundleRegistration.js +38 -40
  25. package/lib/models/Clickwrap.js +213 -223
  26. package/lib/models/DnsRecord.js +26 -28
  27. package/lib/models/ExternalEvent.js +93 -99
  28. package/lib/models/File.js +726 -766
  29. package/lib/models/FileComment.js +180 -188
  30. package/lib/models/FileCommentReaction.js +84 -88
  31. package/lib/models/FileMigration.js +31 -33
  32. package/lib/models/Folder.js +94 -98
  33. package/lib/models/FormFieldSet.js +189 -199
  34. package/lib/models/Group.js +207 -217
  35. package/lib/models/GroupUser.js +230 -238
  36. package/lib/models/History.js +266 -276
  37. package/lib/models/HistoryExport.js +175 -179
  38. package/lib/models/HistoryExportResult.js +44 -46
  39. package/lib/models/InboxRecipient.js +104 -108
  40. package/lib/models/InboxRegistration.js +32 -34
  41. package/lib/models/InboxUpload.js +38 -40
  42. package/lib/models/Invoice.js +57 -61
  43. package/lib/models/IpAddress.js +78 -84
  44. package/lib/models/Lock.js +148 -154
  45. package/lib/models/Message.js +267 -277
  46. package/lib/models/MessageComment.js +207 -217
  47. package/lib/models/MessageCommentReaction.js +147 -155
  48. package/lib/models/MessageReaction.js +147 -155
  49. package/lib/models/Notification.js +255 -265
  50. package/lib/models/Payment.js +57 -61
  51. package/lib/models/Permission.js +128 -134
  52. package/lib/models/Priority.js +45 -47
  53. package/lib/models/Project.js +183 -193
  54. package/lib/models/PublicKey.js +207 -217
  55. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  56. package/lib/models/RemoteServer.js +805 -819
  57. package/lib/models/Request.js +166 -174
  58. package/lib/models/Session.js +47 -51
  59. package/lib/models/SettingsChange.js +26 -28
  60. package/lib/models/SftpHostKey.js +177 -187
  61. package/lib/models/Site.js +412 -418
  62. package/lib/models/SsoStrategy.js +99 -105
  63. package/lib/models/Style.js +127 -133
  64. package/lib/models/UsageDailySnapshot.js +26 -28
  65. package/lib/models/UsageSnapshot.js +26 -28
  66. package/lib/models/User.js +587 -603
  67. package/lib/models/UserCipherUse.js +32 -34
  68. package/lib/models/UserRequest.js +147 -155
  69. package/lib/models/WebhookTest.js +54 -56
  70. package/package.json +1 -1
  71. package/src/Errors.js +1 -0
  72. package/src/models/BundleNotification.js +39 -1
@@ -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
  })));