files.com 1.2.86 → 1.2.88
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/ActionNotificationExportResult.md +3 -0
- package/docs/models/ApiKey.md +6 -0
- package/docs/models/ApiRequestLog.md +3 -0
- package/docs/models/App.md +3 -0
- package/docs/models/As2IncomingMessage.md +3 -0
- package/docs/models/As2OutgoingMessage.md +3 -0
- package/docs/models/As2Partner.md +42 -29
- package/docs/models/As2Station.md +3 -0
- package/docs/models/Automation.md +17 -3
- package/docs/models/AutomationLog.md +3 -0
- package/docs/models/AutomationRun.md +3 -0
- package/docs/models/BandwidthSnapshot.md +3 -0
- package/docs/models/Behavior.md +26 -19
- package/docs/models/Bundle.md +4 -5
- package/docs/models/BundleAction.md +4 -0
- package/docs/models/BundleDownload.md +3 -0
- package/docs/models/BundleNotification.md +3 -0
- package/docs/models/BundleRecipient.md +3 -0
- package/docs/models/BundleRegistration.md +3 -0
- package/docs/models/Clickwrap.md +3 -0
- package/docs/models/DnsRecord.md +3 -0
- package/docs/models/EmailIncomingMessage.md +3 -0
- package/docs/models/EmailLog.md +3 -0
- package/docs/models/ExavaultApiRequestLog.md +3 -0
- package/docs/models/ExternalEvent.md +3 -0
- package/docs/models/FileComment.md +3 -0
- package/docs/models/FileMigration.md +1 -1
- package/docs/models/FileMigrationLog.md +3 -0
- package/docs/models/Folder.md +2 -0
- package/docs/models/FormFieldSet.md +3 -0
- package/docs/models/FtpActionLog.md +3 -0
- package/docs/models/GpgKey.md +3 -0
- package/docs/models/Group.md +3 -0
- package/docs/models/GroupUser.md +3 -0
- package/docs/models/History.md +20 -0
- package/docs/models/HistoryExportResult.md +4 -0
- package/docs/models/InboxRecipient.md +3 -0
- package/docs/models/InboxRegistration.md +3 -0
- package/docs/models/InboxUpload.md +3 -0
- package/docs/models/Invoice.md +3 -0
- package/docs/models/IpAddress.md +12 -0
- package/docs/models/Lock.md +6 -3
- package/docs/models/Message.md +3 -0
- package/docs/models/MessageComment.md +3 -0
- package/docs/models/MessageCommentReaction.md +3 -0
- package/docs/models/MessageReaction.md +3 -0
- package/docs/models/Notification.md +4 -1
- package/docs/models/OutboundConnectionLog.md +56 -0
- package/docs/models/Payment.md +3 -0
- package/docs/models/Permission.md +3 -0
- package/docs/models/Priority.md +3 -0
- package/docs/models/Project.md +3 -0
- package/docs/models/PublicHostingRequestLog.md +3 -0
- package/docs/models/PublicKey.md +3 -0
- package/docs/models/RemoteBandwidthSnapshot.md +3 -0
- package/docs/models/RemoteServer.md +3 -0
- package/docs/models/Request.md +6 -0
- package/docs/models/SettingsChange.md +3 -0
- package/docs/models/SftpActionLog.md +3 -0
- package/docs/models/SftpHostKey.md +3 -0
- package/docs/models/ShareGroup.md +3 -0
- package/docs/models/Snapshot.md +3 -0
- package/docs/models/SsoStrategy.md +4 -1
- package/docs/models/SyncLog.md +3 -0
- package/docs/models/UsageDailySnapshot.md +3 -0
- package/docs/models/UsageSnapshot.md +3 -0
- package/docs/models/User.md +6 -3
- package/docs/models/UserCipherUse.md +3 -0
- package/docs/models/UserRequest.md +3 -0
- package/docs/models/WebDavActionLog.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +19 -5
- package/lib/models/ApiKey.js +34 -6
- package/lib/models/ApiRequestLog.js +17 -3
- package/lib/models/App.js +17 -3
- package/lib/models/As2IncomingMessage.js +19 -5
- package/lib/models/As2OutgoingMessage.js +19 -5
- package/lib/models/As2Partner.js +120 -64
- package/lib/models/As2Station.js +17 -3
- package/lib/models/Automation.js +31 -6
- package/lib/models/AutomationLog.js +17 -3
- package/lib/models/AutomationRun.js +19 -5
- package/lib/models/BandwidthSnapshot.js +17 -3
- package/lib/models/Behavior.js +53 -31
- package/lib/models/Bundle.js +18 -6
- package/lib/models/BundleAction.js +21 -7
- package/lib/models/BundleDownload.js +21 -7
- package/lib/models/BundleNotification.js +17 -3
- package/lib/models/BundleRecipient.js +19 -5
- package/lib/models/BundleRegistration.js +19 -5
- package/lib/models/Clickwrap.js +17 -3
- package/lib/models/DnsRecord.js +17 -3
- package/lib/models/EmailIncomingMessage.js +17 -3
- package/lib/models/EmailLog.js +17 -3
- package/lib/models/ExavaultApiRequestLog.js +17 -3
- package/lib/models/ExternalEvent.js +17 -3
- package/lib/models/FileComment.js +19 -5
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/FileMigrationLog.js +17 -3
- package/lib/models/Folder.js +18 -11
- package/lib/models/FormFieldSet.js +17 -3
- package/lib/models/FtpActionLog.js +17 -3
- package/lib/models/GpgKey.js +17 -3
- package/lib/models/Group.js +19 -5
- package/lib/models/GroupUser.js +19 -5
- package/lib/models/History.js +91 -21
- package/lib/models/HistoryExportResult.js +19 -5
- package/lib/models/InboxRecipient.js +19 -5
- package/lib/models/InboxRegistration.js +19 -5
- package/lib/models/InboxUpload.js +21 -7
- package/lib/models/Invoice.js +17 -3
- package/lib/models/IpAddress.js +68 -12
- package/lib/models/Lock.js +22 -8
- package/lib/models/Message.js +19 -5
- package/lib/models/MessageComment.js +19 -5
- package/lib/models/MessageCommentReaction.js +19 -5
- package/lib/models/MessageReaction.js +19 -5
- package/lib/models/Notification.js +22 -8
- package/lib/models/OutboundConnectionLog.js +164 -0
- package/lib/models/Payment.js +17 -3
- package/lib/models/Permission.js +23 -9
- package/lib/models/Priority.js +19 -5
- package/lib/models/Project.js +17 -3
- package/lib/models/PublicHostingRequestLog.js +17 -3
- package/lib/models/PublicKey.js +17 -3
- package/lib/models/RemoteBandwidthSnapshot.js +17 -3
- package/lib/models/RemoteServer.js +17 -3
- package/lib/models/Request.js +38 -10
- package/lib/models/SettingsChange.js +17 -3
- package/lib/models/SftpActionLog.js +17 -3
- package/lib/models/SftpHostKey.js +17 -3
- package/lib/models/ShareGroup.js +17 -3
- package/lib/models/Snapshot.js +17 -3
- package/lib/models/SsoStrategy.js +18 -4
- package/lib/models/SyncLog.js +17 -3
- package/lib/models/UsageDailySnapshot.js +17 -3
- package/lib/models/UsageSnapshot.js +17 -3
- package/lib/models/User.js +24 -10
- package/lib/models/UserCipherUse.js +17 -3
- package/lib/models/UserRequest.js +17 -3
- package/lib/models/WebDavActionLog.js +17 -3
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +10 -0
- package/src/models/ApiKey.js +22 -0
- package/src/models/ApiRequestLog.js +10 -0
- package/src/models/App.js +10 -0
- package/src/models/As2IncomingMessage.js +10 -0
- package/src/models/As2OutgoingMessage.js +10 -0
- package/src/models/As2Partner.js +82 -38
- package/src/models/As2Station.js +10 -0
- package/src/models/Automation.js +24 -3
- package/src/models/AutomationLog.js +10 -0
- package/src/models/AutomationRun.js +10 -0
- package/src/models/BandwidthSnapshot.js +10 -0
- package/src/models/Behavior.js +39 -23
- package/src/models/Bundle.js +11 -3
- package/src/models/BundleAction.js +10 -0
- package/src/models/BundleDownload.js +10 -0
- package/src/models/BundleNotification.js +10 -0
- package/src/models/BundleRecipient.js +10 -0
- package/src/models/BundleRegistration.js +10 -0
- package/src/models/Clickwrap.js +10 -0
- package/src/models/DnsRecord.js +10 -0
- package/src/models/EmailIncomingMessage.js +10 -0
- package/src/models/EmailLog.js +10 -0
- package/src/models/ExavaultApiRequestLog.js +10 -0
- package/src/models/ExternalEvent.js +10 -0
- package/src/models/FileComment.js +10 -0
- package/src/models/FileMigration.js +1 -1
- package/src/models/FileMigrationLog.js +10 -0
- package/src/models/Folder.js +5 -0
- package/src/models/FormFieldSet.js +10 -0
- package/src/models/FtpActionLog.js +10 -0
- package/src/models/GpgKey.js +10 -0
- package/src/models/Group.js +10 -0
- package/src/models/GroupUser.js +10 -0
- package/src/models/History.js +50 -0
- package/src/models/HistoryExportResult.js +10 -0
- package/src/models/InboxRecipient.js +10 -0
- package/src/models/InboxRegistration.js +10 -0
- package/src/models/InboxUpload.js +10 -0
- package/src/models/Invoice.js +10 -0
- package/src/models/IpAddress.js +40 -0
- package/src/models/Lock.js +13 -3
- package/src/models/Message.js +10 -0
- package/src/models/MessageComment.js +10 -0
- package/src/models/MessageCommentReaction.js +10 -0
- package/src/models/MessageReaction.js +10 -0
- package/src/models/Notification.js +11 -1
- package/src/models/OutboundConnectionLog.js +106 -0
- package/src/models/Payment.js +10 -0
- package/src/models/Permission.js +10 -0
- package/src/models/Priority.js +10 -0
- package/src/models/Project.js +10 -0
- package/src/models/PublicHostingRequestLog.js +10 -0
- package/src/models/PublicKey.js +10 -0
- package/src/models/RemoteBandwidthSnapshot.js +10 -0
- package/src/models/RemoteServer.js +10 -0
- package/src/models/Request.js +20 -0
- package/src/models/SettingsChange.js +10 -0
- package/src/models/SftpActionLog.js +10 -0
- package/src/models/SftpHostKey.js +10 -0
- package/src/models/ShareGroup.js +10 -0
- package/src/models/Snapshot.js +10 -0
- package/src/models/SsoStrategy.js +11 -1
- package/src/models/SyncLog.js +10 -0
- package/src/models/UsageDailySnapshot.js +10 -0
- package/src/models/UsageSnapshot.js +10 -0
- package/src/models/User.js +13 -3
- package/src/models/UserCipherUse.js +10 -0
- package/src/models/UserRequest.js +10 -0
- package/src/models/WebDavActionLog.js +10 -0
package/lib/models/As2Partner.js
CHANGED
@@ -33,14 +33,14 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
33
33
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
34
34
|
return !!_this.attributes.id;
|
35
35
|
});
|
36
|
-
// int64 #
|
36
|
+
// int64 # ID of the AS2 Partner.
|
37
37
|
(0, _defineProperty2.default)(this, "getId", function () {
|
38
38
|
return _this.attributes.id;
|
39
39
|
});
|
40
40
|
(0, _defineProperty2.default)(this, "setId", function (value) {
|
41
41
|
_this.attributes.id = value;
|
42
42
|
});
|
43
|
-
// int64 #
|
43
|
+
// int64 # ID of the AS2 Station associated with this partner.
|
44
44
|
(0, _defineProperty2.default)(this, "getAs2StationId", function () {
|
45
45
|
return _this.attributes.as2_station_id;
|
46
46
|
});
|
@@ -54,28 +54,35 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
54
54
|
(0, _defineProperty2.default)(this, "setName", function (value) {
|
55
55
|
_this.attributes.name = value;
|
56
56
|
});
|
57
|
-
// string # Public URI
|
57
|
+
// string # Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
58
58
|
(0, _defineProperty2.default)(this, "getUri", function () {
|
59
59
|
return _this.attributes.uri;
|
60
60
|
});
|
61
61
|
(0, _defineProperty2.default)(this, "setUri", function (value) {
|
62
62
|
_this.attributes.uri = value;
|
63
63
|
});
|
64
|
-
// string #
|
64
|
+
// string # Should we require that the remote HTTP server have a valid SSL Certificate for HTTPS?
|
65
65
|
(0, _defineProperty2.default)(this, "getServerCertificate", function () {
|
66
66
|
return _this.attributes.server_certificate;
|
67
67
|
});
|
68
68
|
(0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
|
69
69
|
_this.attributes.server_certificate = value;
|
70
70
|
});
|
71
|
-
// string #
|
71
|
+
// string # Username to send to server for HTTP Authentication.
|
72
|
+
(0, _defineProperty2.default)(this, "getHttpAuthUsername", function () {
|
73
|
+
return _this.attributes.http_auth_username;
|
74
|
+
});
|
75
|
+
(0, _defineProperty2.default)(this, "setHttpAuthUsername", function (value) {
|
76
|
+
_this.attributes.http_auth_username = value;
|
77
|
+
});
|
78
|
+
// string # How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
|
72
79
|
(0, _defineProperty2.default)(this, "getMdnValidationLevel", function () {
|
73
80
|
return _this.attributes.mdn_validation_level;
|
74
81
|
});
|
75
82
|
(0, _defineProperty2.default)(this, "setMdnValidationLevel", function (value) {
|
76
83
|
_this.attributes.mdn_validation_level = value;
|
77
84
|
});
|
78
|
-
// boolean # `true
|
85
|
+
// boolean # If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 PArtner.
|
79
86
|
(0, _defineProperty2.default)(this, "getEnableDedicatedIps", function () {
|
80
87
|
return _this.attributes.enable_dedicated_ips;
|
81
88
|
});
|
@@ -131,7 +138,14 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
131
138
|
(0, _defineProperty2.default)(this, "setPublicCertificateNotAfter", function (value) {
|
132
139
|
_this.attributes.public_certificate_not_after = value;
|
133
140
|
});
|
134
|
-
// string
|
141
|
+
// string # Password to send to server for HTTP Authentication.
|
142
|
+
(0, _defineProperty2.default)(this, "getHttpAuthPassword", function () {
|
143
|
+
return _this.attributes.http_auth_password;
|
144
|
+
});
|
145
|
+
(0, _defineProperty2.default)(this, "setHttpAuthPassword", function (value) {
|
146
|
+
_this.attributes.http_auth_password = value;
|
147
|
+
});
|
148
|
+
// string # Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
135
149
|
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
136
150
|
return _this.attributes.public_certificate;
|
137
151
|
});
|
@@ -139,12 +153,14 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
139
153
|
_this.attributes.public_certificate = value;
|
140
154
|
});
|
141
155
|
// Parameters:
|
142
|
-
//
|
143
|
-
//
|
144
|
-
//
|
145
|
-
// mdn_validation_level - string - MDN
|
146
|
-
//
|
147
|
-
//
|
156
|
+
// enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 PArtner.
|
157
|
+
// http_auth_username - string - Username to send to server for HTTP Authentication.
|
158
|
+
// http_auth_password - string - Password to send to server for HTTP Authentication.
|
159
|
+
// mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
|
160
|
+
// server_certificate - string - Should we require that the remote HTTP server have a valid SSL Certificate for HTTPS?
|
161
|
+
// name - string - The partner's formal AS2 name.
|
162
|
+
// uri - string - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
163
|
+
// public_certificate - string - Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
148
164
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
149
165
|
var params,
|
150
166
|
response,
|
@@ -172,56 +188,68 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
172
188
|
}
|
173
189
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
174
190
|
case 8:
|
175
|
-
if (!(params.
|
191
|
+
if (!(params.http_auth_username && !(0, _utils.isString)(params.http_auth_username))) {
|
176
192
|
_context.next = 10;
|
177
193
|
break;
|
178
194
|
}
|
179
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
195
|
+
throw new errors.InvalidParameterError("Bad parameter: http_auth_username must be of type String, received ".concat((0, _utils.getType)(params.http_auth_username)));
|
180
196
|
case 10:
|
181
|
-
if (!(params.
|
197
|
+
if (!(params.http_auth_password && !(0, _utils.isString)(params.http_auth_password))) {
|
182
198
|
_context.next = 12;
|
183
199
|
break;
|
184
200
|
}
|
185
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
201
|
+
throw new errors.InvalidParameterError("Bad parameter: http_auth_password must be of type String, received ".concat((0, _utils.getType)(params.http_auth_password)));
|
186
202
|
case 12:
|
187
|
-
if (!(params.
|
203
|
+
if (!(params.mdn_validation_level && !(0, _utils.isString)(params.mdn_validation_level))) {
|
188
204
|
_context.next = 14;
|
189
205
|
break;
|
190
206
|
}
|
191
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
207
|
+
throw new errors.InvalidParameterError("Bad parameter: mdn_validation_level must be of type String, received ".concat((0, _utils.getType)(params.mdn_validation_level)));
|
192
208
|
case 14:
|
193
|
-
if (!(params.
|
209
|
+
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
194
210
|
_context.next = 16;
|
195
211
|
break;
|
196
212
|
}
|
197
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
213
|
+
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
198
214
|
case 16:
|
199
|
-
if (!(params.
|
215
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
200
216
|
_context.next = 18;
|
201
217
|
break;
|
202
218
|
}
|
203
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
219
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
204
220
|
case 18:
|
221
|
+
if (!(params.uri && !(0, _utils.isString)(params.uri))) {
|
222
|
+
_context.next = 20;
|
223
|
+
break;
|
224
|
+
}
|
225
|
+
throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params.uri)));
|
226
|
+
case 20:
|
227
|
+
if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
|
228
|
+
_context.next = 22;
|
229
|
+
break;
|
230
|
+
}
|
231
|
+
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
|
232
|
+
case 22:
|
205
233
|
if (params.id) {
|
206
|
-
_context.next =
|
234
|
+
_context.next = 28;
|
207
235
|
break;
|
208
236
|
}
|
209
237
|
if (!_this.attributes.id) {
|
210
|
-
_context.next =
|
238
|
+
_context.next = 27;
|
211
239
|
break;
|
212
240
|
}
|
213
241
|
params.id = _this.id;
|
214
|
-
_context.next =
|
242
|
+
_context.next = 28;
|
215
243
|
break;
|
216
|
-
case
|
244
|
+
case 27:
|
217
245
|
throw new errors.MissingParameterError('Parameter missing: id');
|
218
|
-
case
|
219
|
-
_context.next =
|
246
|
+
case 28:
|
247
|
+
_context.next = 30;
|
220
248
|
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
221
|
-
case
|
249
|
+
case 30:
|
222
250
|
response = _context.sent;
|
223
251
|
return _context.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
224
|
-
case
|
252
|
+
case 32:
|
225
253
|
case "end":
|
226
254
|
return _context.stop();
|
227
255
|
}
|
@@ -324,6 +352,8 @@ _As2Partner = As2Partner;
|
|
324
352
|
// Parameters:
|
325
353
|
// 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.
|
326
354
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
355
|
+
// action - string
|
356
|
+
// page - int64
|
327
357
|
(0, _defineProperty2.default)(As2Partner, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
328
358
|
var _response$data;
|
329
359
|
var params,
|
@@ -347,14 +377,26 @@ _As2Partner = As2Partner;
|
|
347
377
|
}
|
348
378
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
349
379
|
case 6:
|
350
|
-
|
351
|
-
|
380
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
381
|
+
_context4.next = 8;
|
382
|
+
break;
|
383
|
+
}
|
384
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
352
385
|
case 8:
|
386
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
387
|
+
_context4.next = 10;
|
388
|
+
break;
|
389
|
+
}
|
390
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
391
|
+
case 10:
|
392
|
+
_context4.next = 12;
|
393
|
+
return _Api.default.sendRequest('/as2_partners', 'GET', params, options);
|
394
|
+
case 12:
|
353
395
|
response = _context4.sent;
|
354
396
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
355
397
|
return new _As2Partner(obj, options);
|
356
398
|
})) || []);
|
357
|
-
case
|
399
|
+
case 14:
|
358
400
|
case "end":
|
359
401
|
return _context4.stop();
|
360
402
|
}
|
@@ -418,13 +460,15 @@ _As2Partner = As2Partner;
|
|
418
460
|
return _As2Partner.find(id, params, options);
|
419
461
|
});
|
420
462
|
// Parameters:
|
421
|
-
//
|
422
|
-
//
|
423
|
-
//
|
424
|
-
//
|
425
|
-
// server_certificate - string -
|
426
|
-
//
|
427
|
-
//
|
463
|
+
// enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 PArtner.
|
464
|
+
// http_auth_username - string - Username to send to server for HTTP Authentication.
|
465
|
+
// http_auth_password - string - Password to send to server for HTTP Authentication.
|
466
|
+
// mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
|
467
|
+
// server_certificate - string - Should we require that the remote HTTP server have a valid SSL Certificate for HTTPS?
|
468
|
+
// as2_station_id (required) - int64 - ID of the AS2 Station associated with this partner.
|
469
|
+
// name (required) - string - The partner's formal AS2 name.
|
470
|
+
// uri (required) - string - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
|
471
|
+
// public_certificate (required) - string - Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
428
472
|
(0, _defineProperty2.default)(As2Partner, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
429
473
|
var params,
|
430
474
|
options,
|
@@ -435,72 +479,84 @@ _As2Partner = As2Partner;
|
|
435
479
|
case 0:
|
436
480
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
437
481
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
438
|
-
if (params.
|
482
|
+
if (params.as2_station_id) {
|
439
483
|
_context6.next = 4;
|
440
484
|
break;
|
441
485
|
}
|
442
|
-
throw new errors.MissingParameterError('Parameter missing:
|
486
|
+
throw new errors.MissingParameterError('Parameter missing: as2_station_id');
|
443
487
|
case 4:
|
444
|
-
if (params.
|
488
|
+
if (params.name) {
|
445
489
|
_context6.next = 6;
|
446
490
|
break;
|
447
491
|
}
|
448
|
-
throw new errors.MissingParameterError('Parameter missing:
|
492
|
+
throw new errors.MissingParameterError('Parameter missing: name');
|
449
493
|
case 6:
|
450
|
-
if (params.
|
494
|
+
if (params.uri) {
|
451
495
|
_context6.next = 8;
|
452
496
|
break;
|
453
497
|
}
|
454
|
-
throw new errors.MissingParameterError('Parameter missing:
|
498
|
+
throw new errors.MissingParameterError('Parameter missing: uri');
|
455
499
|
case 8:
|
456
|
-
if (params.
|
500
|
+
if (params.public_certificate) {
|
457
501
|
_context6.next = 10;
|
458
502
|
break;
|
459
503
|
}
|
460
|
-
throw new errors.MissingParameterError('Parameter missing:
|
504
|
+
throw new errors.MissingParameterError('Parameter missing: public_certificate');
|
461
505
|
case 10:
|
462
|
-
if (!(params.
|
506
|
+
if (!(params.http_auth_username && !(0, _utils.isString)(params.http_auth_username))) {
|
463
507
|
_context6.next = 12;
|
464
508
|
break;
|
465
509
|
}
|
466
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
510
|
+
throw new errors.InvalidParameterError("Bad parameter: http_auth_username must be of type String, received ".concat((0, _utils.getType)(params.http_auth_username)));
|
467
511
|
case 12:
|
468
|
-
if (!(params.
|
512
|
+
if (!(params.http_auth_password && !(0, _utils.isString)(params.http_auth_password))) {
|
469
513
|
_context6.next = 14;
|
470
514
|
break;
|
471
515
|
}
|
472
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
516
|
+
throw new errors.InvalidParameterError("Bad parameter: http_auth_password must be of type String, received ".concat((0, _utils.getType)(params.http_auth_password)));
|
473
517
|
case 14:
|
474
|
-
if (!(params.
|
518
|
+
if (!(params.mdn_validation_level && !(0, _utils.isString)(params.mdn_validation_level))) {
|
475
519
|
_context6.next = 16;
|
476
520
|
break;
|
477
521
|
}
|
478
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
522
|
+
throw new errors.InvalidParameterError("Bad parameter: mdn_validation_level must be of type String, received ".concat((0, _utils.getType)(params.mdn_validation_level)));
|
479
523
|
case 16:
|
480
|
-
if (!(params.
|
524
|
+
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
481
525
|
_context6.next = 18;
|
482
526
|
break;
|
483
527
|
}
|
484
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
528
|
+
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
485
529
|
case 18:
|
486
|
-
if (!(params.
|
530
|
+
if (!(params.as2_station_id && !(0, _utils.isInt)(params.as2_station_id))) {
|
487
531
|
_context6.next = 20;
|
488
532
|
break;
|
489
533
|
}
|
490
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
534
|
+
throw new errors.InvalidParameterError("Bad parameter: as2_station_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_station_id)));
|
491
535
|
case 20:
|
492
|
-
if (!(params.
|
536
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
493
537
|
_context6.next = 22;
|
494
538
|
break;
|
495
539
|
}
|
496
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
540
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
497
541
|
case 22:
|
498
|
-
|
499
|
-
|
542
|
+
if (!(params.uri && !(0, _utils.isString)(params.uri))) {
|
543
|
+
_context6.next = 24;
|
544
|
+
break;
|
545
|
+
}
|
546
|
+
throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params.uri)));
|
500
547
|
case 24:
|
548
|
+
if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
|
549
|
+
_context6.next = 26;
|
550
|
+
break;
|
551
|
+
}
|
552
|
+
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
|
553
|
+
case 26:
|
554
|
+
_context6.next = 28;
|
555
|
+
return _Api.default.sendRequest('/as2_partners', 'POST', params, options);
|
556
|
+
case 28:
|
501
557
|
response = _context6.sent;
|
502
558
|
return _context6.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
|
503
|
-
case
|
559
|
+
case 30:
|
504
560
|
case "end":
|
505
561
|
return _context6.stop();
|
506
562
|
}
|
package/lib/models/As2Station.js
CHANGED
@@ -323,6 +323,8 @@ _As2Station = As2Station;
|
|
323
323
|
// Parameters:
|
324
324
|
// 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.
|
325
325
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
326
|
+
// action - string
|
327
|
+
// page - int64
|
326
328
|
(0, _defineProperty2.default)(As2Station, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
327
329
|
var _response$data;
|
328
330
|
var params,
|
@@ -346,14 +348,26 @@ _As2Station = As2Station;
|
|
346
348
|
}
|
347
349
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
348
350
|
case 6:
|
349
|
-
|
350
|
-
|
351
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
352
|
+
_context4.next = 8;
|
353
|
+
break;
|
354
|
+
}
|
355
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
351
356
|
case 8:
|
357
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
358
|
+
_context4.next = 10;
|
359
|
+
break;
|
360
|
+
}
|
361
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
362
|
+
case 10:
|
363
|
+
_context4.next = 12;
|
364
|
+
return _Api.default.sendRequest('/as2_stations', 'GET', params, options);
|
365
|
+
case 12:
|
352
366
|
response = _context4.sent;
|
353
367
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
354
368
|
return new _As2Station(obj, options);
|
355
369
|
})) || []);
|
356
|
-
case
|
370
|
+
case 14:
|
357
371
|
case "end":
|
358
372
|
return _context4.stop();
|
359
373
|
}
|
package/lib/models/Automation.js
CHANGED
@@ -131,6 +131,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
131
131
|
(0, _defineProperty2.default)(this, "setLastModifiedAt", function (value) {
|
132
132
|
_this.attributes.last_modified_at = value;
|
133
133
|
});
|
134
|
+
// boolean # If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
135
|
+
(0, _defineProperty2.default)(this, "getLegacyFolderMatching", function () {
|
136
|
+
return _this.attributes.legacy_folder_matching;
|
137
|
+
});
|
138
|
+
(0, _defineProperty2.default)(this, "setLegacyFolderMatching", function (value) {
|
139
|
+
_this.attributes.legacy_folder_matching = value;
|
140
|
+
});
|
134
141
|
// string # Name for this automation.
|
135
142
|
(0, _defineProperty2.default)(this, "getName", function () {
|
136
143
|
return _this.attributes.name;
|
@@ -257,7 +264,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
257
264
|
(0, _defineProperty2.default)(this, "setWebhookUrl", function (value) {
|
258
265
|
_this.attributes.webhook_url = value;
|
259
266
|
});
|
260
|
-
// string
|
267
|
+
// string
|
261
268
|
(0, _defineProperty2.default)(this, "getDestination", function () {
|
262
269
|
return _this.attributes.destination;
|
263
270
|
});
|
@@ -315,7 +322,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
315
322
|
})));
|
316
323
|
// Parameters:
|
317
324
|
// source - string - Source Path
|
318
|
-
// destination - string
|
325
|
+
// destination - string
|
319
326
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
320
327
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
321
328
|
// destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
@@ -324,6 +331,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
324
331
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
325
332
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
326
333
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
334
|
+
// schedule - object
|
327
335
|
// schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
328
336
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
329
337
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
@@ -332,6 +340,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
332
340
|
// disabled - boolean - If true, this automation will not run.
|
333
341
|
// flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
334
342
|
// ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
343
|
+
// legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
335
344
|
// name - string - Name for this automation.
|
336
345
|
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
337
346
|
// path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
@@ -609,6 +618,8 @@ _Automation = Automation;
|
|
609
618
|
// Parameters:
|
610
619
|
// 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.
|
611
620
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
621
|
+
// action - string
|
622
|
+
// page - int64
|
612
623
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
613
624
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
614
625
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
@@ -639,14 +650,26 @@ _Automation = Automation;
|
|
639
650
|
}
|
640
651
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
641
652
|
case 6:
|
642
|
-
|
643
|
-
|
653
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
654
|
+
_context5.next = 8;
|
655
|
+
break;
|
656
|
+
}
|
657
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
644
658
|
case 8:
|
659
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
660
|
+
_context5.next = 10;
|
661
|
+
break;
|
662
|
+
}
|
663
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
664
|
+
case 10:
|
665
|
+
_context5.next = 12;
|
666
|
+
return _Api.default.sendRequest('/automations', 'GET', params, options);
|
667
|
+
case 12:
|
645
668
|
response = _context5.sent;
|
646
669
|
return _context5.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
647
670
|
return new _Automation(obj, options);
|
648
671
|
})) || []);
|
649
|
-
case
|
672
|
+
case 14:
|
650
673
|
case "end":
|
651
674
|
return _context5.stop();
|
652
675
|
}
|
@@ -711,7 +734,7 @@ _Automation = Automation;
|
|
711
734
|
});
|
712
735
|
// Parameters:
|
713
736
|
// source - string - Source Path
|
714
|
-
// destination - string
|
737
|
+
// destination - string
|
715
738
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
716
739
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
717
740
|
// destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
@@ -720,6 +743,7 @@ _Automation = Automation;
|
|
720
743
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
721
744
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
722
745
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
746
|
+
// schedule - object
|
723
747
|
// schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
724
748
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
725
749
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
@@ -728,6 +752,7 @@ _Automation = Automation;
|
|
728
752
|
// disabled - boolean - If true, this automation will not run.
|
729
753
|
// flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
730
754
|
// ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
755
|
+
// legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
731
756
|
// name - string - Name for this automation.
|
732
757
|
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
733
758
|
// path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
@@ -86,6 +86,8 @@ _AutomationLog = AutomationLog;
|
|
86
86
|
// Parameters:
|
87
87
|
// 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.
|
88
88
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
|
+
// action - string
|
90
|
+
// page - int64
|
89
91
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `automation_id`, `automation_run_id`, `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
|
90
92
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
|
91
93
|
(0, _defineProperty2.default)(AutomationLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -111,14 +113,26 @@ _AutomationLog = AutomationLog;
|
|
111
113
|
}
|
112
114
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
113
115
|
case 6:
|
114
|
-
|
115
|
-
|
116
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
117
|
+
_context.next = 8;
|
118
|
+
break;
|
119
|
+
}
|
120
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
116
121
|
case 8:
|
122
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
123
|
+
_context.next = 10;
|
124
|
+
break;
|
125
|
+
}
|
126
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
127
|
+
case 10:
|
128
|
+
_context.next = 12;
|
129
|
+
return _Api.default.sendRequest('/automation_logs', 'GET', params, options);
|
130
|
+
case 12:
|
117
131
|
response = _context.sent;
|
118
132
|
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) {
|
119
133
|
return new _AutomationLog(obj, options);
|
120
134
|
})) || []);
|
121
|
-
case
|
135
|
+
case 14:
|
122
136
|
case "end":
|
123
137
|
return _context.stop();
|
124
138
|
}
|
@@ -86,6 +86,8 @@ _AutomationRun = AutomationRun;
|
|
86
86
|
// Parameters:
|
87
87
|
// 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.
|
88
88
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
|
+
// action - string
|
90
|
+
// page - int64
|
89
91
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
90
92
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
91
93
|
// automation_id (required) - int64 - ID of the associated Automation.
|
@@ -118,20 +120,32 @@ _AutomationRun = AutomationRun;
|
|
118
120
|
}
|
119
121
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
120
122
|
case 8:
|
121
|
-
if (!(params.
|
123
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
122
124
|
_context.next = 10;
|
123
125
|
break;
|
124
126
|
}
|
125
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
127
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
126
128
|
case 10:
|
127
|
-
|
128
|
-
|
129
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
130
|
+
_context.next = 12;
|
131
|
+
break;
|
132
|
+
}
|
133
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
129
134
|
case 12:
|
135
|
+
if (!(params.automation_id && !(0, _utils.isInt)(params.automation_id))) {
|
136
|
+
_context.next = 14;
|
137
|
+
break;
|
138
|
+
}
|
139
|
+
throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params.automation_id)));
|
140
|
+
case 14:
|
141
|
+
_context.next = 16;
|
142
|
+
return _Api.default.sendRequest('/automation_runs', 'GET', params, options);
|
143
|
+
case 16:
|
130
144
|
response = _context.sent;
|
131
145
|
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) {
|
132
146
|
return new _AutomationRun(obj, options);
|
133
147
|
})) || []);
|
134
|
-
case
|
148
|
+
case 18:
|
135
149
|
case "end":
|
136
150
|
return _context.stop();
|
137
151
|
}
|