files.com 1.0.167 → 1.0.170
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/As2Partner.js +35 -13
- package/lib/models/As2Station.js +39 -11
- package/package.json +1 -1
- package/src/models/As2OutgoingMessage.js +1 -1
- package/src/models/As2Partner.js +16 -0
- package/src/models/As2Station.js +23 -0
- package/src/models/User.js +1 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.170
|
package/lib/models/As2Partner.js
CHANGED
@@ -65,6 +65,12 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
65
65
|
(0, _defineProperty2.default)(this, "setUri", function (value) {
|
66
66
|
_this.attributes.uri = value;
|
67
67
|
});
|
68
|
+
(0, _defineProperty2.default)(this, "getServerCertificate", function () {
|
69
|
+
return _this.attributes.server_certificate;
|
70
|
+
});
|
71
|
+
(0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
|
72
|
+
_this.attributes.server_certificate = value;
|
73
|
+
});
|
68
74
|
(0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
|
69
75
|
return _this.attributes.public_certificate_md5;
|
70
76
|
});
|
@@ -159,40 +165,48 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
159
165
|
throw new Error("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(uri)));
|
160
166
|
|
161
167
|
case 12:
|
162
|
-
if (!(params['
|
168
|
+
if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
|
163
169
|
_context.next = 14;
|
164
170
|
break;
|
165
171
|
}
|
166
172
|
|
167
|
-
throw new Error("Bad parameter:
|
173
|
+
throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
|
168
174
|
|
169
175
|
case 14:
|
176
|
+
if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
|
177
|
+
_context.next = 16;
|
178
|
+
break;
|
179
|
+
}
|
180
|
+
|
181
|
+
throw new Error("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(public_certificate)));
|
182
|
+
|
183
|
+
case 16:
|
170
184
|
if (params['id']) {
|
171
|
-
_context.next =
|
185
|
+
_context.next = 22;
|
172
186
|
break;
|
173
187
|
}
|
174
188
|
|
175
189
|
if (!_this.attributes.id) {
|
176
|
-
_context.next =
|
190
|
+
_context.next = 21;
|
177
191
|
break;
|
178
192
|
}
|
179
193
|
|
180
194
|
params['id'] = _this.id;
|
181
|
-
_context.next =
|
195
|
+
_context.next = 22;
|
182
196
|
break;
|
183
197
|
|
184
|
-
case
|
198
|
+
case 21:
|
185
199
|
throw new Error('Parameter missing: id');
|
186
200
|
|
187
|
-
case
|
188
|
-
_context.next =
|
201
|
+
case 22:
|
202
|
+
_context.next = 24;
|
189
203
|
return _Api.default.sendRequest("/as2_partners/".concat(params['id']), 'PATCH', params, _this.options);
|
190
204
|
|
191
|
-
case
|
205
|
+
case 24:
|
192
206
|
response = _context.sent;
|
193
207
|
return _context.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
194
208
|
|
195
|
-
case
|
209
|
+
case 26:
|
196
210
|
case "end":
|
197
211
|
return _context.stop();
|
198
212
|
}
|
@@ -484,14 +498,22 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
484
498
|
throw new Error("Bad parameter: as2_station_id must be of type Int, received ".concat((0, _utils.getType)(as2_station_id)));
|
485
499
|
|
486
500
|
case 18:
|
487
|
-
|
488
|
-
|
501
|
+
if (!(params['server_certificate'] && !(0, _utils.isString)(params['server_certificate']))) {
|
502
|
+
_context5.next = 20;
|
503
|
+
break;
|
504
|
+
}
|
505
|
+
|
506
|
+
throw new Error("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(server_certificate)));
|
489
507
|
|
490
508
|
case 20:
|
509
|
+
_context5.next = 22;
|
510
|
+
return _Api.default.sendRequest("/as2_partners", 'POST', params, options);
|
511
|
+
|
512
|
+
case 22:
|
491
513
|
response = _context5.sent;
|
492
514
|
return _context5.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
|
493
515
|
|
494
|
-
case
|
516
|
+
case 24:
|
495
517
|
case "end":
|
496
518
|
return _context5.stop();
|
497
519
|
}
|
package/lib/models/As2Station.js
CHANGED
@@ -107,6 +107,12 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
107
107
|
(0, _defineProperty2.default)(this, "setPublicCertificateNotAfter", function (value) {
|
108
108
|
_this.attributes.public_certificate_not_after = value;
|
109
109
|
});
|
110
|
+
(0, _defineProperty2.default)(this, "getPrivateKeyPasswordMd5", function () {
|
111
|
+
return _this.attributes.private_key_password_md5;
|
112
|
+
});
|
113
|
+
(0, _defineProperty2.default)(this, "setPrivateKeyPasswordMd5", function (value) {
|
114
|
+
_this.attributes.private_key_password_md5 = value;
|
115
|
+
});
|
110
116
|
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
111
117
|
return _this.attributes.public_certificate;
|
112
118
|
});
|
@@ -119,6 +125,12 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
119
125
|
(0, _defineProperty2.default)(this, "setPrivateKey", function (value) {
|
120
126
|
_this.attributes.private_key = value;
|
121
127
|
});
|
128
|
+
(0, _defineProperty2.default)(this, "getPrivateKeyPassword", function () {
|
129
|
+
return _this.attributes.private_key_password;
|
130
|
+
});
|
131
|
+
(0, _defineProperty2.default)(this, "setPrivateKeyPassword", function (value) {
|
132
|
+
_this.attributes.private_key_password = value;
|
133
|
+
});
|
122
134
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
123
135
|
var params,
|
124
136
|
response,
|
@@ -179,32 +191,40 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
179
191
|
throw new Error("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
|
180
192
|
|
181
193
|
case 14:
|
194
|
+
if (!(params['private_key_password'] && !(0, _utils.isString)(params['private_key_password']))) {
|
195
|
+
_context.next = 16;
|
196
|
+
break;
|
197
|
+
}
|
198
|
+
|
199
|
+
throw new Error("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(private_key_password)));
|
200
|
+
|
201
|
+
case 16:
|
182
202
|
if (params['id']) {
|
183
|
-
_context.next =
|
203
|
+
_context.next = 22;
|
184
204
|
break;
|
185
205
|
}
|
186
206
|
|
187
207
|
if (!_this.attributes.id) {
|
188
|
-
_context.next =
|
208
|
+
_context.next = 21;
|
189
209
|
break;
|
190
210
|
}
|
191
211
|
|
192
212
|
params['id'] = _this.id;
|
193
|
-
_context.next =
|
213
|
+
_context.next = 22;
|
194
214
|
break;
|
195
215
|
|
196
|
-
case
|
216
|
+
case 21:
|
197
217
|
throw new Error('Parameter missing: id');
|
198
218
|
|
199
|
-
case
|
200
|
-
_context.next =
|
219
|
+
case 22:
|
220
|
+
_context.next = 24;
|
201
221
|
return _Api.default.sendRequest("/as2_stations/".concat(params['id']), 'PATCH', params, _this.options);
|
202
222
|
|
203
|
-
case
|
223
|
+
case 24:
|
204
224
|
response = _context.sent;
|
205
225
|
return _context.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
206
226
|
|
207
|
-
case
|
227
|
+
case 26:
|
208
228
|
case "end":
|
209
229
|
return _context.stop();
|
210
230
|
}
|
@@ -480,14 +500,22 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
480
500
|
throw new Error("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
|
481
501
|
|
482
502
|
case 14:
|
483
|
-
|
484
|
-
|
503
|
+
if (!(params['private_key_password'] && !(0, _utils.isString)(params['private_key_password']))) {
|
504
|
+
_context5.next = 16;
|
505
|
+
break;
|
506
|
+
}
|
507
|
+
|
508
|
+
throw new Error("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(private_key_password)));
|
485
509
|
|
486
510
|
case 16:
|
511
|
+
_context5.next = 18;
|
512
|
+
return _Api.default.sendRequest("/as2_stations", 'POST', params, options);
|
513
|
+
|
514
|
+
case 18:
|
487
515
|
response = _context5.sent;
|
488
516
|
return _context5.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, options));
|
489
517
|
|
490
|
-
case
|
518
|
+
case 20:
|
491
519
|
case "end":
|
492
520
|
return _context5.stop();
|
493
521
|
}
|
package/package.json
CHANGED
@@ -37,7 +37,7 @@ class As2OutgoingMessage {
|
|
37
37
|
// string # JSON Structure of the activity log.
|
38
38
|
getActivityLog = () => this.attributes.activity_log
|
39
39
|
|
40
|
-
// string # Result of processing. Valid values: `send_failed`, `send_success`
|
40
|
+
// string # Result of processing. Valid values: `send_failed`, `send_success`, `send_no_mdn`
|
41
41
|
getProcessingResult = () => this.attributes.processing_result
|
42
42
|
|
43
43
|
// string # AS2 Message Integrity Check
|
package/src/models/As2Partner.js
CHANGED
@@ -50,6 +50,13 @@ class As2Partner {
|
|
50
50
|
this.attributes.uri = value
|
51
51
|
}
|
52
52
|
|
53
|
+
// string # Remote server certificate security setting
|
54
|
+
getServerCertificate = () => this.attributes.server_certificate
|
55
|
+
|
56
|
+
setServerCertificate = value => {
|
57
|
+
this.attributes.server_certificate = value
|
58
|
+
}
|
59
|
+
|
53
60
|
// string # MD5 hash of public certificate used for message security.
|
54
61
|
getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
|
55
62
|
|
@@ -103,6 +110,7 @@ class As2Partner {
|
|
103
110
|
// Parameters:
|
104
111
|
// name - string - AS2 Name
|
105
112
|
// uri - string - URL base for AS2 responses
|
113
|
+
// server_certificate - string - Remote server certificate security setting
|
106
114
|
// public_certificate - string
|
107
115
|
update = async (params = {}) => {
|
108
116
|
if (!this.attributes.id) {
|
@@ -123,6 +131,9 @@ class As2Partner {
|
|
123
131
|
if (params['uri'] && !isString(params['uri'])) {
|
124
132
|
throw new Error(`Bad parameter: uri must be of type String, received ${getType(uri)}`)
|
125
133
|
}
|
134
|
+
if (params['server_certificate'] && !isString(params['server_certificate'])) {
|
135
|
+
throw new Error(`Bad parameter: server_certificate must be of type String, received ${getType(server_certificate)}`)
|
136
|
+
}
|
126
137
|
if (params['public_certificate'] && !isString(params['public_certificate'])) {
|
127
138
|
throw new Error(`Bad parameter: public_certificate must be of type String, received ${getType(public_certificate)}`)
|
128
139
|
}
|
@@ -230,6 +241,7 @@ class As2Partner {
|
|
230
241
|
// uri (required) - string - URL base for AS2 responses
|
231
242
|
// public_certificate (required) - string
|
232
243
|
// as2_station_id (required) - int64 - Id of As2Station for this partner
|
244
|
+
// server_certificate - string - Remote server certificate security setting
|
233
245
|
static create = async (params = {}, options = {}) => {
|
234
246
|
if (!params['name']) {
|
235
247
|
throw new Error('Parameter missing: name')
|
@@ -263,6 +275,10 @@ class As2Partner {
|
|
263
275
|
throw new Error(`Bad parameter: as2_station_id must be of type Int, received ${getType(as2_station_id)}`)
|
264
276
|
}
|
265
277
|
|
278
|
+
if (params['server_certificate'] && !isString(params['server_certificate'])) {
|
279
|
+
throw new Error(`Bad parameter: server_certificate must be of type String, received ${getType(server_certificate)}`)
|
280
|
+
}
|
281
|
+
|
266
282
|
const response = await Api.sendRequest(`/as2_partners`, 'POST', params, options)
|
267
283
|
|
268
284
|
return new As2Partner(response?.data, options)
|
package/src/models/As2Station.js
CHANGED
@@ -99,6 +99,13 @@ class As2Station {
|
|
99
99
|
this.attributes.public_certificate_not_after = value
|
100
100
|
}
|
101
101
|
|
102
|
+
// string # MD5 hash of private key password used for message security.
|
103
|
+
getPrivateKeyPasswordMd5 = () => this.attributes.private_key_password_md5
|
104
|
+
|
105
|
+
setPrivateKeyPasswordMd5 = value => {
|
106
|
+
this.attributes.private_key_password_md5 = value
|
107
|
+
}
|
108
|
+
|
102
109
|
// string
|
103
110
|
getPublicCertificate = () => this.attributes.public_certificate
|
104
111
|
|
@@ -113,11 +120,19 @@ class As2Station {
|
|
113
120
|
this.attributes.private_key = value
|
114
121
|
}
|
115
122
|
|
123
|
+
// string
|
124
|
+
getPrivateKeyPassword = () => this.attributes.private_key_password
|
125
|
+
|
126
|
+
setPrivateKeyPassword = value => {
|
127
|
+
this.attributes.private_key_password = value
|
128
|
+
}
|
129
|
+
|
116
130
|
|
117
131
|
// Parameters:
|
118
132
|
// name - string - AS2 Name
|
119
133
|
// public_certificate - string
|
120
134
|
// private_key - string
|
135
|
+
// private_key_password - string
|
121
136
|
update = async (params = {}) => {
|
122
137
|
if (!this.attributes.id) {
|
123
138
|
throw new Error('Current object has no id')
|
@@ -140,6 +155,9 @@ class As2Station {
|
|
140
155
|
if (params['private_key'] && !isString(params['private_key'])) {
|
141
156
|
throw new Error(`Bad parameter: private_key must be of type String, received ${getType(private_key)}`)
|
142
157
|
}
|
158
|
+
if (params['private_key_password'] && !isString(params['private_key_password'])) {
|
159
|
+
throw new Error(`Bad parameter: private_key_password must be of type String, received ${getType(private_key_password)}`)
|
160
|
+
}
|
143
161
|
|
144
162
|
if (!params['id']) {
|
145
163
|
if (this.attributes.id) {
|
@@ -243,6 +261,7 @@ class As2Station {
|
|
243
261
|
// name (required) - string - AS2 Name
|
244
262
|
// public_certificate (required) - string
|
245
263
|
// private_key (required) - string
|
264
|
+
// private_key_password - string
|
246
265
|
static create = async (params = {}, options = {}) => {
|
247
266
|
if (!params['name']) {
|
248
267
|
throw new Error('Parameter missing: name')
|
@@ -268,6 +287,10 @@ class As2Station {
|
|
268
287
|
throw new Error(`Bad parameter: private_key must be of type String, received ${getType(private_key)}`)
|
269
288
|
}
|
270
289
|
|
290
|
+
if (params['private_key_password'] && !isString(params['private_key_password'])) {
|
291
|
+
throw new Error(`Bad parameter: private_key_password must be of type String, received ${getType(private_key_password)}`)
|
292
|
+
}
|
293
|
+
|
271
294
|
const response = await Api.sendRequest(`/as2_stations`, 'POST', params, options)
|
272
295
|
|
273
296
|
return new As2Station(response?.data, options)
|
package/src/models/User.js
CHANGED
@@ -699,7 +699,7 @@ class User {
|
|
699
699
|
// Parameters:
|
700
700
|
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
701
701
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
702
|
-
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
702
|
+
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `authenticate_until`, `active`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
703
703
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
704
704
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
705
705
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|