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.
- package/_VERSION +1 -1
- package/docs/models/Bundle.md +9 -2
- package/docs/models/BundleNotification.md +35 -0
- package/docs/models/BundleRegistration.md +3 -1
- package/docs/models/InboxRegistration.md +3 -1
- package/docs/models/Site.md +2 -0
- package/lib/Api.js +153 -159
- package/lib/isomorphic/File.node.js +24 -28
- package/lib/models/ActionNotificationExport.js +97 -101
- package/lib/models/ActionNotificationExportResult.js +44 -46
- package/lib/models/ActionWebhookFailure.js +42 -44
- package/lib/models/ApiKey.js +271 -287
- package/lib/models/App.js +26 -28
- package/lib/models/As2IncomingMessage.js +32 -34
- package/lib/models/As2OutgoingMessage.js +32 -34
- package/lib/models/As2Partner.js +231 -241
- package/lib/models/As2Station.js +219 -229
- package/lib/models/Automation.js +333 -343
- package/lib/models/AutomationRun.js +75 -79
- package/lib/models/BandwidthSnapshot.js +26 -28
- package/lib/models/Behavior.js +323 -337
- package/lib/models/Bundle.js +381 -387
- package/lib/models/BundleDownload.js +38 -40
- package/lib/models/BundleNotification.js +223 -173
- package/lib/models/BundleRecipient.js +104 -108
- package/lib/models/BundleRegistration.js +41 -40
- package/lib/models/Clickwrap.js +213 -223
- package/lib/models/DnsRecord.js +26 -28
- package/lib/models/ExternalEvent.js +93 -99
- package/lib/models/File.js +726 -766
- package/lib/models/FileComment.js +180 -188
- package/lib/models/FileCommentReaction.js +84 -88
- package/lib/models/FileMigration.js +31 -33
- package/lib/models/Folder.js +94 -98
- package/lib/models/FormFieldSet.js +189 -199
- package/lib/models/Group.js +207 -217
- package/lib/models/GroupUser.js +230 -238
- package/lib/models/History.js +266 -276
- package/lib/models/HistoryExport.js +175 -179
- package/lib/models/HistoryExportResult.js +44 -46
- package/lib/models/InboxRecipient.js +104 -108
- package/lib/models/InboxRegistration.js +35 -34
- package/lib/models/InboxUpload.js +38 -40
- package/lib/models/Invoice.js +57 -61
- package/lib/models/IpAddress.js +78 -84
- package/lib/models/Lock.js +148 -154
- package/lib/models/Message.js +267 -277
- package/lib/models/MessageComment.js +207 -217
- package/lib/models/MessageCommentReaction.js +147 -155
- package/lib/models/MessageReaction.js +147 -155
- package/lib/models/Notification.js +255 -265
- package/lib/models/Payment.js +57 -61
- package/lib/models/Permission.js +128 -134
- package/lib/models/Priority.js +45 -47
- package/lib/models/Project.js +183 -193
- package/lib/models/PublicKey.js +207 -217
- package/lib/models/RemoteBandwidthSnapshot.js +26 -28
- package/lib/models/RemoteServer.js +805 -819
- package/lib/models/Request.js +166 -174
- package/lib/models/Session.js +47 -51
- package/lib/models/SettingsChange.js +26 -28
- package/lib/models/SftpHostKey.js +177 -187
- package/lib/models/Site.js +415 -418
- package/lib/models/SsoStrategy.js +99 -105
- package/lib/models/Style.js +127 -133
- package/lib/models/UsageDailySnapshot.js +26 -28
- package/lib/models/UsageSnapshot.js +26 -28
- package/lib/models/User.js +587 -603
- package/lib/models/UserCipherUse.js +32 -34
- package/lib/models/UserRequest.js +147 -155
- package/lib/models/WebhookTest.js +54 -56
- package/package.json +1 -1
- package/src/models/Bundle.js +10 -1
- package/src/models/BundleNotification.js +39 -1
- package/src/models/BundleRegistration.js +3 -0
- package/src/models/InboxRegistration.js +3 -0
- package/src/models/Site.js +3 -0
@@ -108,52 +108,50 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
|
|
108
108
|
response,
|
109
109
|
_args = arguments;
|
110
110
|
return _regenerator.default.wrap(function _callee$(_context) {
|
111
|
-
while (1) {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
return
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
return _context.stop();
|
156
|
-
}
|
111
|
+
while (1) switch (_context.prev = _context.next) {
|
112
|
+
case 0:
|
113
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
114
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
115
|
+
if (params['bundle_id']) {
|
116
|
+
_context.next = 4;
|
117
|
+
break;
|
118
|
+
}
|
119
|
+
throw new errors.MissingParameterError('Parameter missing: bundle_id');
|
120
|
+
case 4:
|
121
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
122
|
+
_context.next = 6;
|
123
|
+
break;
|
124
|
+
}
|
125
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
126
|
+
case 6:
|
127
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
128
|
+
_context.next = 8;
|
129
|
+
break;
|
130
|
+
}
|
131
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
132
|
+
case 8:
|
133
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
134
|
+
_context.next = 10;
|
135
|
+
break;
|
136
|
+
}
|
137
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
138
|
+
case 10:
|
139
|
+
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
140
|
+
_context.next = 12;
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
144
|
+
case 12:
|
145
|
+
_context.next = 14;
|
146
|
+
return _Api.default.sendRequest("/bundle_recipients", 'GET', params, options);
|
147
|
+
case 14:
|
148
|
+
response = _context.sent;
|
149
|
+
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) {
|
150
|
+
return new BundleRecipient(obj, options);
|
151
|
+
})) || []);
|
152
|
+
case 16:
|
153
|
+
case "end":
|
154
|
+
return _context.stop();
|
157
155
|
}
|
158
156
|
}, _callee);
|
159
157
|
})));
|
@@ -168,68 +166,66 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
|
|
168
166
|
response,
|
169
167
|
_args2 = arguments;
|
170
168
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
171
|
-
while (1) {
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
return _context2.stop();
|
232
|
-
}
|
169
|
+
while (1) switch (_context2.prev = _context2.next) {
|
170
|
+
case 0:
|
171
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
172
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
173
|
+
if (params['bundle_id']) {
|
174
|
+
_context2.next = 4;
|
175
|
+
break;
|
176
|
+
}
|
177
|
+
throw new errors.MissingParameterError('Parameter missing: bundle_id');
|
178
|
+
case 4:
|
179
|
+
if (params['recipient']) {
|
180
|
+
_context2.next = 6;
|
181
|
+
break;
|
182
|
+
}
|
183
|
+
throw new errors.MissingParameterError('Parameter missing: recipient');
|
184
|
+
case 6:
|
185
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
186
|
+
_context2.next = 8;
|
187
|
+
break;
|
188
|
+
}
|
189
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
190
|
+
case 8:
|
191
|
+
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
192
|
+
_context2.next = 10;
|
193
|
+
break;
|
194
|
+
}
|
195
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
196
|
+
case 10:
|
197
|
+
if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
|
198
|
+
_context2.next = 12;
|
199
|
+
break;
|
200
|
+
}
|
201
|
+
throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
|
202
|
+
case 12:
|
203
|
+
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
204
|
+
_context2.next = 14;
|
205
|
+
break;
|
206
|
+
}
|
207
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
|
208
|
+
case 14:
|
209
|
+
if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
|
210
|
+
_context2.next = 16;
|
211
|
+
break;
|
212
|
+
}
|
213
|
+
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
|
214
|
+
case 16:
|
215
|
+
if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
|
216
|
+
_context2.next = 18;
|
217
|
+
break;
|
218
|
+
}
|
219
|
+
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
|
220
|
+
case 18:
|
221
|
+
_context2.next = 20;
|
222
|
+
return _Api.default.sendRequest("/bundle_recipients", 'POST', params, options);
|
223
|
+
case 20:
|
224
|
+
response = _context2.sent;
|
225
|
+
return _context2.abrupt("return", new BundleRecipient(response === null || response === void 0 ? void 0 : response.data, options));
|
226
|
+
case 22:
|
227
|
+
case "end":
|
228
|
+
return _context2.stop();
|
233
229
|
}
|
234
230
|
}, _callee2);
|
235
231
|
})));
|
@@ -67,6 +67,9 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
67
67
|
(0, _defineProperty2.default)(this, "getBundleRecipientId", function () {
|
68
68
|
return _this.attributes.bundle_recipient_id;
|
69
69
|
});
|
70
|
+
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
71
|
+
return _this.attributes.created_at;
|
72
|
+
});
|
70
73
|
Object.entries(attributes).forEach(function (_ref) {
|
71
74
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
72
75
|
key = _ref2[0],
|
@@ -87,46 +90,44 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
87
90
|
response,
|
88
91
|
_args = arguments;
|
89
92
|
return _regenerator.default.wrap(function _callee$(_context) {
|
90
|
-
while (1) {
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
return
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
return _context.stop();
|
129
|
-
}
|
93
|
+
while (1) switch (_context.prev = _context.next) {
|
94
|
+
case 0:
|
95
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
96
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
97
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
98
|
+
_context.next = 4;
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
102
|
+
case 4:
|
103
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
104
|
+
_context.next = 6;
|
105
|
+
break;
|
106
|
+
}
|
107
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
108
|
+
case 6:
|
109
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
110
|
+
_context.next = 8;
|
111
|
+
break;
|
112
|
+
}
|
113
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
114
|
+
case 8:
|
115
|
+
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
116
|
+
_context.next = 10;
|
117
|
+
break;
|
118
|
+
}
|
119
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
120
|
+
case 10:
|
121
|
+
_context.next = 12;
|
122
|
+
return _Api.default.sendRequest("/bundle_registrations", 'GET', params, options);
|
123
|
+
case 12:
|
124
|
+
response = _context.sent;
|
125
|
+
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) {
|
126
|
+
return new BundleRegistration(obj, options);
|
127
|
+
})) || []);
|
128
|
+
case 14:
|
129
|
+
case "end":
|
130
|
+
return _context.stop();
|
130
131
|
}
|
131
132
|
}, _callee);
|
132
133
|
})));
|