files.com 1.0.165 → 1.0.168
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -5
- package/_VERSION +1 -1
- package/lib/models/ActionWebhookFailure.js +8 -2
- package/lib/models/ApiKey.js +16 -4
- package/lib/models/As2Partner.js +78 -14
- package/lib/models/As2Station.js +74 -80
- package/lib/models/Automation.js +16 -4
- package/lib/models/Behavior.js +16 -4
- package/lib/models/Bundle.js +24 -6
- package/lib/models/Clickwrap.js +16 -4
- package/lib/models/File.js +309 -311
- package/lib/models/FileComment.js +16 -4
- package/lib/models/FileCommentReaction.js +8 -2
- package/lib/models/FormFieldSet.js +16 -4
- package/lib/models/Group.js +16 -4
- package/lib/models/GroupUser.js +16 -4
- package/lib/models/Lock.js +8 -2
- package/lib/models/Message.js +16 -4
- package/lib/models/MessageComment.js +16 -4
- package/lib/models/MessageCommentReaction.js +8 -2
- package/lib/models/MessageReaction.js +8 -2
- package/lib/models/Notification.js +16 -4
- package/lib/models/Permission.js +8 -2
- package/lib/models/Project.js +16 -4
- package/lib/models/PublicKey.js +16 -4
- package/lib/models/RemoteServer.js +16 -4
- package/lib/models/Request.js +8 -2
- package/lib/models/SsoStrategy.js +8 -2
- package/lib/models/Style.js +16 -4
- package/lib/models/User.js +40 -10
- package/lib/models/UserRequest.js +8 -2
- package/package.json +1 -1
- package/src/models/ActionWebhookFailure.js +3 -1
- package/src/models/ApiKey.js +6 -2
- package/src/models/As2Partner.js +57 -2
- package/src/models/As2Station.js +48 -35
- package/src/models/Automation.js +6 -2
- package/src/models/Behavior.js +6 -2
- package/src/models/Bundle.js +9 -3
- package/src/models/Clickwrap.js +6 -2
- package/src/models/File.js +26 -19
- package/src/models/FileComment.js +6 -2
- package/src/models/FileCommentReaction.js +3 -1
- package/src/models/FormFieldSet.js +6 -2
- package/src/models/Group.js +6 -2
- package/src/models/GroupUser.js +6 -2
- package/src/models/Lock.js +3 -1
- package/src/models/Message.js +6 -2
- package/src/models/MessageComment.js +6 -2
- package/src/models/MessageCommentReaction.js +3 -1
- package/src/models/MessageReaction.js +3 -1
- package/src/models/Notification.js +6 -2
- package/src/models/Permission.js +3 -1
- package/src/models/Project.js +6 -2
- package/src/models/PublicKey.js +6 -2
- package/src/models/RemoteServer.js +6 -2
- package/src/models/Request.js +3 -1
- package/src/models/SsoStrategy.js +3 -1
- package/src/models/Style.js +6 -2
- package/src/models/User.js +15 -5
- package/src/models/UserRequest.js +3 -1
- package/test/src/index.js +7 -3
@@ -172,6 +172,7 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
172
172
|
});
|
173
173
|
(0, _defineProperty2.default)(this, "sync", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
174
174
|
var params,
|
175
|
+
response,
|
175
176
|
_args = arguments;
|
176
177
|
return _regenerator.default.wrap(function _callee$(_context) {
|
177
178
|
while (1) {
|
@@ -223,9 +224,14 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
223
224
|
throw new Error('Parameter missing: id');
|
224
225
|
|
225
226
|
case 14:
|
226
|
-
|
227
|
+
_context.next = 16;
|
228
|
+
return _Api.default.sendRequest("/sso_strategies/".concat(params['id'], "/sync"), 'POST', params, _this.options);
|
229
|
+
|
230
|
+
case 16:
|
231
|
+
response = _context.sent;
|
232
|
+
return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
227
233
|
|
228
|
-
case
|
234
|
+
case 18:
|
229
235
|
case "end":
|
230
236
|
return _context.stop();
|
231
237
|
}
|
package/lib/models/Style.js
CHANGED
@@ -73,6 +73,7 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
73
73
|
});
|
74
74
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
75
75
|
var params,
|
76
|
+
response,
|
76
77
|
_args = arguments;
|
77
78
|
return _regenerator.default.wrap(function _callee$(_context) {
|
78
79
|
while (1) {
|
@@ -142,9 +143,14 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
142
143
|
throw new Error('Parameter missing: file');
|
143
144
|
|
144
145
|
case 20:
|
145
|
-
|
146
|
+
_context.next = 22;
|
147
|
+
return _Api.default.sendRequest("/styles/".concat(params['path']), 'PATCH', params, _this.options);
|
148
|
+
|
149
|
+
case 22:
|
150
|
+
response = _context.sent;
|
151
|
+
return _context.abrupt("return", new Style(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
146
152
|
|
147
|
-
case
|
153
|
+
case 24:
|
148
154
|
case "end":
|
149
155
|
return _context.stop();
|
150
156
|
}
|
@@ -153,6 +159,7 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
153
159
|
})));
|
154
160
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
155
161
|
var params,
|
162
|
+
response,
|
156
163
|
_args2 = arguments;
|
157
164
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
158
165
|
while (1) {
|
@@ -204,9 +211,14 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
204
211
|
throw new Error('Parameter missing: path');
|
205
212
|
|
206
213
|
case 14:
|
207
|
-
|
214
|
+
_context2.next = 16;
|
215
|
+
return _Api.default.sendRequest("/styles/".concat(params['path']), 'DELETE', params, _this.options);
|
216
|
+
|
217
|
+
case 16:
|
218
|
+
response = _context2.sent;
|
219
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
208
220
|
|
209
|
-
case
|
221
|
+
case 18:
|
210
222
|
case "end":
|
211
223
|
return _context2.stop();
|
212
224
|
}
|
package/lib/models/User.js
CHANGED
@@ -388,6 +388,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
388
388
|
});
|
389
389
|
(0, _defineProperty2.default)(this, "unlock", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
390
390
|
var params,
|
391
|
+
response,
|
391
392
|
_args = arguments;
|
392
393
|
return _regenerator.default.wrap(function _callee$(_context) {
|
393
394
|
while (1) {
|
@@ -439,9 +440,14 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
439
440
|
throw new Error('Parameter missing: id');
|
440
441
|
|
441
442
|
case 14:
|
442
|
-
|
443
|
+
_context.next = 16;
|
444
|
+
return _Api.default.sendRequest("/users/".concat(params['id'], "/unlock"), 'POST', params, _this.options);
|
445
|
+
|
446
|
+
case 16:
|
447
|
+
response = _context.sent;
|
448
|
+
return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
443
449
|
|
444
|
-
case
|
450
|
+
case 18:
|
445
451
|
case "end":
|
446
452
|
return _context.stop();
|
447
453
|
}
|
@@ -450,6 +456,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
450
456
|
})));
|
451
457
|
(0, _defineProperty2.default)(this, "resendWelcomeEmail", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
452
458
|
var params,
|
459
|
+
response,
|
453
460
|
_args2 = arguments;
|
454
461
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
455
462
|
while (1) {
|
@@ -501,9 +508,14 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
501
508
|
throw new Error('Parameter missing: id');
|
502
509
|
|
503
510
|
case 14:
|
504
|
-
|
511
|
+
_context2.next = 16;
|
512
|
+
return _Api.default.sendRequest("/users/".concat(params['id'], "/resend_welcome_email"), 'POST', params, _this.options);
|
505
513
|
|
506
|
-
case
|
514
|
+
case 16:
|
515
|
+
response = _context2.sent;
|
516
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
517
|
+
|
518
|
+
case 18:
|
507
519
|
case "end":
|
508
520
|
return _context2.stop();
|
509
521
|
}
|
@@ -512,6 +524,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
512
524
|
})));
|
513
525
|
(0, _defineProperty2.default)(this, "user2faReset", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
514
526
|
var params,
|
527
|
+
response,
|
515
528
|
_args3 = arguments;
|
516
529
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
517
530
|
while (1) {
|
@@ -563,9 +576,14 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
563
576
|
throw new Error('Parameter missing: id');
|
564
577
|
|
565
578
|
case 14:
|
566
|
-
|
579
|
+
_context3.next = 16;
|
580
|
+
return _Api.default.sendRequest("/users/".concat(params['id'], "/2fa/reset"), 'POST', params, _this.options);
|
567
581
|
|
568
|
-
case
|
582
|
+
case 16:
|
583
|
+
response = _context3.sent;
|
584
|
+
return _context3.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
585
|
+
|
586
|
+
case 18:
|
569
587
|
case "end":
|
570
588
|
return _context3.stop();
|
571
589
|
}
|
@@ -574,6 +592,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
574
592
|
})));
|
575
593
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
576
594
|
var params,
|
595
|
+
response,
|
577
596
|
_args4 = arguments;
|
578
597
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
579
598
|
while (1) {
|
@@ -825,9 +844,14 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
825
844
|
throw new Error('Parameter missing: id');
|
826
845
|
|
827
846
|
case 64:
|
828
|
-
|
847
|
+
_context4.next = 66;
|
848
|
+
return _Api.default.sendRequest("/users/".concat(params['id']), 'PATCH', params, _this.options);
|
849
|
+
|
850
|
+
case 66:
|
851
|
+
response = _context4.sent;
|
852
|
+
return _context4.abrupt("return", new User(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
829
853
|
|
830
|
-
case
|
854
|
+
case 68:
|
831
855
|
case "end":
|
832
856
|
return _context4.stop();
|
833
857
|
}
|
@@ -836,6 +860,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
836
860
|
})));
|
837
861
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
838
862
|
var params,
|
863
|
+
response,
|
839
864
|
_args5 = arguments;
|
840
865
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
841
866
|
while (1) {
|
@@ -887,9 +912,14 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
887
912
|
throw new Error('Parameter missing: id');
|
888
913
|
|
889
914
|
case 14:
|
890
|
-
|
915
|
+
_context5.next = 16;
|
916
|
+
return _Api.default.sendRequest("/users/".concat(params['id']), 'DELETE', params, _this.options);
|
917
|
+
|
918
|
+
case 16:
|
919
|
+
response = _context5.sent;
|
920
|
+
return _context5.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
891
921
|
|
892
|
-
case
|
922
|
+
case 18:
|
893
923
|
case "end":
|
894
924
|
return _context5.stop();
|
895
925
|
}
|
@@ -67,6 +67,7 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
67
67
|
});
|
68
68
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
69
69
|
var params,
|
70
|
+
response,
|
70
71
|
_args = arguments;
|
71
72
|
return _regenerator.default.wrap(function _callee$(_context) {
|
72
73
|
while (1) {
|
@@ -118,9 +119,14 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
118
119
|
throw new Error('Parameter missing: id');
|
119
120
|
|
120
121
|
case 14:
|
121
|
-
|
122
|
+
_context.next = 16;
|
123
|
+
return _Api.default.sendRequest("/user_requests/".concat(params['id']), 'DELETE', params, _this.options);
|
124
|
+
|
125
|
+
case 16:
|
126
|
+
response = _context.sent;
|
127
|
+
return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
122
128
|
|
123
|
-
case
|
129
|
+
case 18:
|
124
130
|
case "end":
|
125
131
|
return _context.stop();
|
126
132
|
}
|
package/package.json
CHANGED
@@ -46,7 +46,9 @@ class ActionWebhookFailure {
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
49
|
-
|
49
|
+
const response = await Api.sendRequest(`/action_webhook_failures/${params['id']}/retry`, 'POST', params, this.options)
|
50
|
+
|
51
|
+
return response?.data
|
50
52
|
}
|
51
53
|
}
|
52
54
|
|
package/src/models/ApiKey.js
CHANGED
@@ -131,7 +131,9 @@ class ApiKey {
|
|
131
131
|
}
|
132
132
|
}
|
133
133
|
|
134
|
-
|
134
|
+
const response = await Api.sendRequest(`/api_keys/${params['id']}`, 'PATCH', params, this.options)
|
135
|
+
|
136
|
+
return new ApiKey(response?.data, this.options)
|
135
137
|
}
|
136
138
|
|
137
139
|
delete = async (params = {}) => {
|
@@ -156,7 +158,9 @@ class ApiKey {
|
|
156
158
|
}
|
157
159
|
}
|
158
160
|
|
159
|
-
|
161
|
+
const response = await Api.sendRequest(`/api_keys/${params['id']}`, 'DELETE', params, this.options)
|
162
|
+
|
163
|
+
return response?.data
|
160
164
|
}
|
161
165
|
|
162
166
|
destroy = (params = {}) =>
|
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
|
|
@@ -57,6 +64,41 @@ class As2Partner {
|
|
57
64
|
this.attributes.public_certificate_md5 = value
|
58
65
|
}
|
59
66
|
|
67
|
+
// string # Subject of public certificate used for message security.
|
68
|
+
getPublicCertificateSubject = () => this.attributes.public_certificate_subject
|
69
|
+
|
70
|
+
setPublicCertificateSubject = value => {
|
71
|
+
this.attributes.public_certificate_subject = value
|
72
|
+
}
|
73
|
+
|
74
|
+
// string # Issuer of public certificate used for message security.
|
75
|
+
getPublicCertificateIssuer = () => this.attributes.public_certificate_issuer
|
76
|
+
|
77
|
+
setPublicCertificateIssuer = value => {
|
78
|
+
this.attributes.public_certificate_issuer = value
|
79
|
+
}
|
80
|
+
|
81
|
+
// string # Serial of public certificate used for message security.
|
82
|
+
getPublicCertificateSerial = () => this.attributes.public_certificate_serial
|
83
|
+
|
84
|
+
setPublicCertificateSerial = value => {
|
85
|
+
this.attributes.public_certificate_serial = value
|
86
|
+
}
|
87
|
+
|
88
|
+
// string # Not before value of public certificate used for message security.
|
89
|
+
getPublicCertificateNotBefore = () => this.attributes.public_certificate_not_before
|
90
|
+
|
91
|
+
setPublicCertificateNotBefore = value => {
|
92
|
+
this.attributes.public_certificate_not_before = value
|
93
|
+
}
|
94
|
+
|
95
|
+
// string # Not after value of public certificate used for message security.
|
96
|
+
getPublicCertificateNotAfter = () => this.attributes.public_certificate_not_after
|
97
|
+
|
98
|
+
setPublicCertificateNotAfter = value => {
|
99
|
+
this.attributes.public_certificate_not_after = value
|
100
|
+
}
|
101
|
+
|
60
102
|
// string
|
61
103
|
getPublicCertificate = () => this.attributes.public_certificate
|
62
104
|
|
@@ -68,6 +110,7 @@ class As2Partner {
|
|
68
110
|
// Parameters:
|
69
111
|
// name - string - AS2 Name
|
70
112
|
// uri - string - URL base for AS2 responses
|
113
|
+
// server_certificate - string - Remote server certificate security setting
|
71
114
|
// public_certificate - string
|
72
115
|
update = async (params = {}) => {
|
73
116
|
if (!this.attributes.id) {
|
@@ -88,6 +131,9 @@ class As2Partner {
|
|
88
131
|
if (params['uri'] && !isString(params['uri'])) {
|
89
132
|
throw new Error(`Bad parameter: uri must be of type String, received ${getType(uri)}`)
|
90
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
|
+
}
|
91
137
|
if (params['public_certificate'] && !isString(params['public_certificate'])) {
|
92
138
|
throw new Error(`Bad parameter: public_certificate must be of type String, received ${getType(public_certificate)}`)
|
93
139
|
}
|
@@ -100,7 +146,9 @@ class As2Partner {
|
|
100
146
|
}
|
101
147
|
}
|
102
148
|
|
103
|
-
|
149
|
+
const response = await Api.sendRequest(`/as2_partners/${params['id']}`, 'PATCH', params, this.options)
|
150
|
+
|
151
|
+
return new As2Partner(response?.data, this.options)
|
104
152
|
}
|
105
153
|
|
106
154
|
delete = async (params = {}) => {
|
@@ -125,7 +173,9 @@ class As2Partner {
|
|
125
173
|
}
|
126
174
|
}
|
127
175
|
|
128
|
-
|
176
|
+
const response = await Api.sendRequest(`/as2_partners/${params['id']}`, 'DELETE', params, this.options)
|
177
|
+
|
178
|
+
return response?.data
|
129
179
|
}
|
130
180
|
|
131
181
|
destroy = (params = {}) =>
|
@@ -191,6 +241,7 @@ class As2Partner {
|
|
191
241
|
// uri (required) - string - URL base for AS2 responses
|
192
242
|
// public_certificate (required) - string
|
193
243
|
// as2_station_id (required) - int64 - Id of As2Station for this partner
|
244
|
+
// server_certificate - string - Remote server certificate security setting
|
194
245
|
static create = async (params = {}, options = {}) => {
|
195
246
|
if (!params['name']) {
|
196
247
|
throw new Error('Parameter missing: name')
|
@@ -224,6 +275,10 @@ class As2Partner {
|
|
224
275
|
throw new Error(`Bad parameter: as2_station_id must be of type Int, received ${getType(as2_station_id)}`)
|
225
276
|
}
|
226
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
|
+
|
227
282
|
const response = await Api.sendRequest(`/as2_partners`, 'POST', params, options)
|
228
283
|
|
229
284
|
return new As2Partner(response?.data, options)
|
package/src/models/As2Station.js
CHANGED
@@ -50,13 +50,6 @@ class As2Station {
|
|
50
50
|
this.attributes.domain = value
|
51
51
|
}
|
52
52
|
|
53
|
-
// string # Public certificate used for message security.
|
54
|
-
getPublicCertificate = () => this.attributes.public_certificate
|
55
|
-
|
56
|
-
setPublicCertificate = value => {
|
57
|
-
this.attributes.public_certificate = value
|
58
|
-
}
|
59
|
-
|
60
53
|
// string # MD5 hash of public certificate used for message security.
|
61
54
|
getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
|
62
55
|
|
@@ -71,6 +64,48 @@ class As2Station {
|
|
71
64
|
this.attributes.private_key_md5 = value
|
72
65
|
}
|
73
66
|
|
67
|
+
// string # Subject of public certificate used for message security.
|
68
|
+
getPublicCertificateSubject = () => this.attributes.public_certificate_subject
|
69
|
+
|
70
|
+
setPublicCertificateSubject = value => {
|
71
|
+
this.attributes.public_certificate_subject = value
|
72
|
+
}
|
73
|
+
|
74
|
+
// string # Issuer of public certificate used for message security.
|
75
|
+
getPublicCertificateIssuer = () => this.attributes.public_certificate_issuer
|
76
|
+
|
77
|
+
setPublicCertificateIssuer = value => {
|
78
|
+
this.attributes.public_certificate_issuer = value
|
79
|
+
}
|
80
|
+
|
81
|
+
// string # Serial of public certificate used for message security.
|
82
|
+
getPublicCertificateSerial = () => this.attributes.public_certificate_serial
|
83
|
+
|
84
|
+
setPublicCertificateSerial = value => {
|
85
|
+
this.attributes.public_certificate_serial = value
|
86
|
+
}
|
87
|
+
|
88
|
+
// string # Not before value of public certificate used for message security.
|
89
|
+
getPublicCertificateNotBefore = () => this.attributes.public_certificate_not_before
|
90
|
+
|
91
|
+
setPublicCertificateNotBefore = value => {
|
92
|
+
this.attributes.public_certificate_not_before = value
|
93
|
+
}
|
94
|
+
|
95
|
+
// string # Not after value of public certificate used for message security.
|
96
|
+
getPublicCertificateNotAfter = () => this.attributes.public_certificate_not_after
|
97
|
+
|
98
|
+
setPublicCertificateNotAfter = value => {
|
99
|
+
this.attributes.public_certificate_not_after = value
|
100
|
+
}
|
101
|
+
|
102
|
+
// string
|
103
|
+
getPublicCertificate = () => this.attributes.public_certificate
|
104
|
+
|
105
|
+
setPublicCertificate = value => {
|
106
|
+
this.attributes.public_certificate = value
|
107
|
+
}
|
108
|
+
|
74
109
|
// string
|
75
110
|
getPrivateKey = () => this.attributes.private_key
|
76
111
|
|
@@ -81,8 +116,6 @@ class As2Station {
|
|
81
116
|
|
82
117
|
// Parameters:
|
83
118
|
// name - string - AS2 Name
|
84
|
-
// domain - string - AS2 Domain
|
85
|
-
// uri - string - URL base for AS2 responses
|
86
119
|
// public_certificate - string
|
87
120
|
// private_key - string
|
88
121
|
update = async (params = {}) => {
|
@@ -101,12 +134,6 @@ class As2Station {
|
|
101
134
|
if (params['name'] && !isString(params['name'])) {
|
102
135
|
throw new Error(`Bad parameter: name must be of type String, received ${getType(name)}`)
|
103
136
|
}
|
104
|
-
if (params['domain'] && !isString(params['domain'])) {
|
105
|
-
throw new Error(`Bad parameter: domain must be of type String, received ${getType(domain)}`)
|
106
|
-
}
|
107
|
-
if (params['uri'] && !isString(params['uri'])) {
|
108
|
-
throw new Error(`Bad parameter: uri must be of type String, received ${getType(uri)}`)
|
109
|
-
}
|
110
137
|
if (params['public_certificate'] && !isString(params['public_certificate'])) {
|
111
138
|
throw new Error(`Bad parameter: public_certificate must be of type String, received ${getType(public_certificate)}`)
|
112
139
|
}
|
@@ -122,7 +149,9 @@ class As2Station {
|
|
122
149
|
}
|
123
150
|
}
|
124
151
|
|
125
|
-
|
152
|
+
const response = await Api.sendRequest(`/as2_stations/${params['id']}`, 'PATCH', params, this.options)
|
153
|
+
|
154
|
+
return new As2Station(response?.data, this.options)
|
126
155
|
}
|
127
156
|
|
128
157
|
delete = async (params = {}) => {
|
@@ -147,7 +176,9 @@ class As2Station {
|
|
147
176
|
}
|
148
177
|
}
|
149
178
|
|
150
|
-
|
179
|
+
const response = await Api.sendRequest(`/as2_stations/${params['id']}`, 'DELETE', params, this.options)
|
180
|
+
|
181
|
+
return response?.data
|
151
182
|
}
|
152
183
|
|
153
184
|
destroy = (params = {}) =>
|
@@ -210,8 +241,6 @@ class As2Station {
|
|
210
241
|
|
211
242
|
// Parameters:
|
212
243
|
// name (required) - string - AS2 Name
|
213
|
-
// domain (required) - string - AS2 Domain
|
214
|
-
// uri (required) - string - URL base for AS2 responses
|
215
244
|
// public_certificate (required) - string
|
216
245
|
// private_key (required) - string
|
217
246
|
static create = async (params = {}, options = {}) => {
|
@@ -219,14 +248,6 @@ class As2Station {
|
|
219
248
|
throw new Error('Parameter missing: name')
|
220
249
|
}
|
221
250
|
|
222
|
-
if (!params['domain']) {
|
223
|
-
throw new Error('Parameter missing: domain')
|
224
|
-
}
|
225
|
-
|
226
|
-
if (!params['uri']) {
|
227
|
-
throw new Error('Parameter missing: uri')
|
228
|
-
}
|
229
|
-
|
230
251
|
if (!params['public_certificate']) {
|
231
252
|
throw new Error('Parameter missing: public_certificate')
|
232
253
|
}
|
@@ -239,14 +260,6 @@ class As2Station {
|
|
239
260
|
throw new Error(`Bad parameter: name must be of type String, received ${getType(name)}`)
|
240
261
|
}
|
241
262
|
|
242
|
-
if (params['domain'] && !isString(params['domain'])) {
|
243
|
-
throw new Error(`Bad parameter: domain must be of type String, received ${getType(domain)}`)
|
244
|
-
}
|
245
|
-
|
246
|
-
if (params['uri'] && !isString(params['uri'])) {
|
247
|
-
throw new Error(`Bad parameter: uri must be of type String, received ${getType(uri)}`)
|
248
|
-
}
|
249
|
-
|
250
263
|
if (params['public_certificate'] && !isString(params['public_certificate'])) {
|
251
264
|
throw new Error(`Bad parameter: public_certificate must be of type String, received ${getType(public_certificate)}`)
|
252
265
|
}
|
package/src/models/Automation.js
CHANGED
@@ -245,7 +245,9 @@ class Automation {
|
|
245
245
|
}
|
246
246
|
}
|
247
247
|
|
248
|
-
|
248
|
+
const response = await Api.sendRequest(`/automations/${params['id']}`, 'PATCH', params, this.options)
|
249
|
+
|
250
|
+
return new Automation(response?.data, this.options)
|
249
251
|
}
|
250
252
|
|
251
253
|
delete = async (params = {}) => {
|
@@ -270,7 +272,9 @@ class Automation {
|
|
270
272
|
}
|
271
273
|
}
|
272
274
|
|
273
|
-
|
275
|
+
const response = await Api.sendRequest(`/automations/${params['id']}`, 'DELETE', params, this.options)
|
276
|
+
|
277
|
+
return response?.data
|
274
278
|
}
|
275
279
|
|
276
280
|
destroy = (params = {}) =>
|
package/src/models/Behavior.js
CHANGED
@@ -131,7 +131,9 @@ class Behavior {
|
|
131
131
|
}
|
132
132
|
}
|
133
133
|
|
134
|
-
|
134
|
+
const response = await Api.sendRequest(`/behaviors/${params['id']}`, 'PATCH', params, this.options)
|
135
|
+
|
136
|
+
return new Behavior(response?.data, this.options)
|
135
137
|
}
|
136
138
|
|
137
139
|
delete = async (params = {}) => {
|
@@ -156,7 +158,9 @@ class Behavior {
|
|
156
158
|
}
|
157
159
|
}
|
158
160
|
|
159
|
-
|
161
|
+
const response = await Api.sendRequest(`/behaviors/${params['id']}`, 'DELETE', params, this.options)
|
162
|
+
|
163
|
+
return response?.data
|
160
164
|
}
|
161
165
|
|
162
166
|
destroy = (params = {}) =>
|
package/src/models/Bundle.js
CHANGED
@@ -238,7 +238,9 @@ class Bundle {
|
|
238
238
|
}
|
239
239
|
}
|
240
240
|
|
241
|
-
|
241
|
+
const response = await Api.sendRequest(`/bundles/${params['id']}/share`, 'POST', params, this.options)
|
242
|
+
|
243
|
+
return response?.data
|
242
244
|
}
|
243
245
|
|
244
246
|
// Parameters:
|
@@ -309,7 +311,9 @@ class Bundle {
|
|
309
311
|
}
|
310
312
|
}
|
311
313
|
|
312
|
-
|
314
|
+
const response = await Api.sendRequest(`/bundles/${params['id']}`, 'PATCH', params, this.options)
|
315
|
+
|
316
|
+
return new Bundle(response?.data, this.options)
|
313
317
|
}
|
314
318
|
|
315
319
|
delete = async (params = {}) => {
|
@@ -334,7 +338,9 @@ class Bundle {
|
|
334
338
|
}
|
335
339
|
}
|
336
340
|
|
337
|
-
|
341
|
+
const response = await Api.sendRequest(`/bundles/${params['id']}`, 'DELETE', params, this.options)
|
342
|
+
|
343
|
+
return response?.data
|
338
344
|
}
|
339
345
|
|
340
346
|
destroy = (params = {}) =>
|
package/src/models/Clickwrap.js
CHANGED
@@ -108,7 +108,9 @@ class Clickwrap {
|
|
108
108
|
}
|
109
109
|
}
|
110
110
|
|
111
|
-
|
111
|
+
const response = await Api.sendRequest(`/clickwraps/${params['id']}`, 'PATCH', params, this.options)
|
112
|
+
|
113
|
+
return new Clickwrap(response?.data, this.options)
|
112
114
|
}
|
113
115
|
|
114
116
|
delete = async (params = {}) => {
|
@@ -133,7 +135,9 @@ class Clickwrap {
|
|
133
135
|
}
|
134
136
|
}
|
135
137
|
|
136
|
-
|
138
|
+
const response = await Api.sendRequest(`/clickwraps/${params['id']}`, 'DELETE', params, this.options)
|
139
|
+
|
140
|
+
return response?.data
|
137
141
|
}
|
138
142
|
|
139
143
|
destroy = (params = {}) =>
|