files.com 1.0.163 → 1.0.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_VERSION +1 -1
- package/lib/models/As2Partner.js +30 -0
- package/lib/models/As2Station.js +59 -77
- package/lib/models/SsoStrategy.js +96 -34
- package/package.json +1 -1
- package/src/models/AccountLineItem.js +2 -2
- package/src/models/As2Partner.js +35 -0
- package/src/models/As2Station.js +42 -33
- package/src/models/Bundle.js +2 -2
- package/src/models/BundleDownload.js +1 -0
- package/src/models/File.js +1 -1
- package/src/models/FileComment.js +1 -1
- package/src/models/Folder.js +1 -1
- package/src/models/FormFieldSet.js +1 -1
- package/src/models/InboxUpload.js +1 -0
- package/src/models/Invoice.js +2 -2
- package/src/models/Message.js +1 -1
- package/src/models/MessageComment.js +1 -1
- package/src/models/Payment.js +2 -2
- package/src/models/Site.js +8 -8
- package/src/models/SsoStrategy.js +26 -0
- package/src/models/Status.js +2 -2
- package/src/models/Style.js +2 -2
- package/src/models/WebhookTest.js +1 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.166
|
package/lib/models/As2Partner.js
CHANGED
@@ -71,6 +71,36 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
71
71
|
(0, _defineProperty2.default)(this, "setPublicCertificateMd5", function (value) {
|
72
72
|
_this.attributes.public_certificate_md5 = value;
|
73
73
|
});
|
74
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateSubject", function () {
|
75
|
+
return _this.attributes.public_certificate_subject;
|
76
|
+
});
|
77
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateSubject", function (value) {
|
78
|
+
_this.attributes.public_certificate_subject = value;
|
79
|
+
});
|
80
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateIssuer", function () {
|
81
|
+
return _this.attributes.public_certificate_issuer;
|
82
|
+
});
|
83
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateIssuer", function (value) {
|
84
|
+
_this.attributes.public_certificate_issuer = value;
|
85
|
+
});
|
86
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateSerial", function () {
|
87
|
+
return _this.attributes.public_certificate_serial;
|
88
|
+
});
|
89
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateSerial", function (value) {
|
90
|
+
_this.attributes.public_certificate_serial = value;
|
91
|
+
});
|
92
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateNotBefore", function () {
|
93
|
+
return _this.attributes.public_certificate_not_before;
|
94
|
+
});
|
95
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateNotBefore", function (value) {
|
96
|
+
_this.attributes.public_certificate_not_before = value;
|
97
|
+
});
|
98
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateNotAfter", function () {
|
99
|
+
return _this.attributes.public_certificate_not_after;
|
100
|
+
});
|
101
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateNotAfter", function (value) {
|
102
|
+
_this.attributes.public_certificate_not_after = value;
|
103
|
+
});
|
74
104
|
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
75
105
|
return _this.attributes.public_certificate;
|
76
106
|
});
|
package/lib/models/As2Station.js
CHANGED
@@ -65,12 +65,6 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
65
65
|
(0, _defineProperty2.default)(this, "setDomain", function (value) {
|
66
66
|
_this.attributes.domain = value;
|
67
67
|
});
|
68
|
-
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
69
|
-
return _this.attributes.public_certificate;
|
70
|
-
});
|
71
|
-
(0, _defineProperty2.default)(this, "setPublicCertificate", function (value) {
|
72
|
-
_this.attributes.public_certificate = value;
|
73
|
-
});
|
74
68
|
(0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
|
75
69
|
return _this.attributes.public_certificate_md5;
|
76
70
|
});
|
@@ -83,6 +77,42 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
83
77
|
(0, _defineProperty2.default)(this, "setPrivateKeyMd5", function (value) {
|
84
78
|
_this.attributes.private_key_md5 = value;
|
85
79
|
});
|
80
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateSubject", function () {
|
81
|
+
return _this.attributes.public_certificate_subject;
|
82
|
+
});
|
83
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateSubject", function (value) {
|
84
|
+
_this.attributes.public_certificate_subject = value;
|
85
|
+
});
|
86
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateIssuer", function () {
|
87
|
+
return _this.attributes.public_certificate_issuer;
|
88
|
+
});
|
89
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateIssuer", function (value) {
|
90
|
+
_this.attributes.public_certificate_issuer = value;
|
91
|
+
});
|
92
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateSerial", function () {
|
93
|
+
return _this.attributes.public_certificate_serial;
|
94
|
+
});
|
95
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateSerial", function (value) {
|
96
|
+
_this.attributes.public_certificate_serial = value;
|
97
|
+
});
|
98
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateNotBefore", function () {
|
99
|
+
return _this.attributes.public_certificate_not_before;
|
100
|
+
});
|
101
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateNotBefore", function (value) {
|
102
|
+
_this.attributes.public_certificate_not_before = value;
|
103
|
+
});
|
104
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateNotAfter", function () {
|
105
|
+
return _this.attributes.public_certificate_not_after;
|
106
|
+
});
|
107
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateNotAfter", function (value) {
|
108
|
+
_this.attributes.public_certificate_not_after = value;
|
109
|
+
});
|
110
|
+
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
111
|
+
return _this.attributes.public_certificate;
|
112
|
+
});
|
113
|
+
(0, _defineProperty2.default)(this, "setPublicCertificate", function (value) {
|
114
|
+
_this.attributes.public_certificate = value;
|
115
|
+
});
|
86
116
|
(0, _defineProperty2.default)(this, "getPrivateKey", function () {
|
87
117
|
return _this.attributes.private_key;
|
88
118
|
});
|
@@ -132,59 +162,43 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
132
162
|
throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
|
133
163
|
|
134
164
|
case 10:
|
135
|
-
if (!(params['domain'] && !(0, _utils.isString)(params['domain']))) {
|
136
|
-
_context.next = 12;
|
137
|
-
break;
|
138
|
-
}
|
139
|
-
|
140
|
-
throw new Error("Bad parameter: domain must be of type String, received ".concat((0, _utils.getType)(domain)));
|
141
|
-
|
142
|
-
case 12:
|
143
|
-
if (!(params['uri'] && !(0, _utils.isString)(params['uri']))) {
|
144
|
-
_context.next = 14;
|
145
|
-
break;
|
146
|
-
}
|
147
|
-
|
148
|
-
throw new Error("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(uri)));
|
149
|
-
|
150
|
-
case 14:
|
151
165
|
if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
|
152
|
-
_context.next =
|
166
|
+
_context.next = 12;
|
153
167
|
break;
|
154
168
|
}
|
155
169
|
|
156
170
|
throw new Error("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(public_certificate)));
|
157
171
|
|
158
|
-
case
|
172
|
+
case 12:
|
159
173
|
if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
|
160
|
-
_context.next =
|
174
|
+
_context.next = 14;
|
161
175
|
break;
|
162
176
|
}
|
163
177
|
|
164
178
|
throw new Error("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
|
165
179
|
|
166
|
-
case
|
180
|
+
case 14:
|
167
181
|
if (params['id']) {
|
168
|
-
_context.next =
|
182
|
+
_context.next = 20;
|
169
183
|
break;
|
170
184
|
}
|
171
185
|
|
172
186
|
if (!_this.attributes.id) {
|
173
|
-
_context.next =
|
187
|
+
_context.next = 19;
|
174
188
|
break;
|
175
189
|
}
|
176
190
|
|
177
191
|
params['id'] = _this.id;
|
178
|
-
_context.next =
|
192
|
+
_context.next = 20;
|
179
193
|
break;
|
180
194
|
|
181
|
-
case
|
195
|
+
case 19:
|
182
196
|
throw new Error('Parameter missing: id');
|
183
197
|
|
184
|
-
case
|
198
|
+
case 20:
|
185
199
|
return _context.abrupt("return", _Api.default.sendRequest("/as2_stations/".concat(params['id']), 'PATCH', params, _this.options));
|
186
200
|
|
187
|
-
case
|
201
|
+
case 21:
|
188
202
|
case "end":
|
189
203
|
return _context.stop();
|
190
204
|
}
|
@@ -414,86 +428,54 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
414
428
|
throw new Error('Parameter missing: name');
|
415
429
|
|
416
430
|
case 4:
|
417
|
-
if (params['domain']) {
|
418
|
-
_context5.next = 6;
|
419
|
-
break;
|
420
|
-
}
|
421
|
-
|
422
|
-
throw new Error('Parameter missing: domain');
|
423
|
-
|
424
|
-
case 6:
|
425
|
-
if (params['uri']) {
|
426
|
-
_context5.next = 8;
|
427
|
-
break;
|
428
|
-
}
|
429
|
-
|
430
|
-
throw new Error('Parameter missing: uri');
|
431
|
-
|
432
|
-
case 8:
|
433
431
|
if (params['public_certificate']) {
|
434
|
-
_context5.next =
|
432
|
+
_context5.next = 6;
|
435
433
|
break;
|
436
434
|
}
|
437
435
|
|
438
436
|
throw new Error('Parameter missing: public_certificate');
|
439
437
|
|
440
|
-
case
|
438
|
+
case 6:
|
441
439
|
if (params['private_key']) {
|
442
|
-
_context5.next =
|
440
|
+
_context5.next = 8;
|
443
441
|
break;
|
444
442
|
}
|
445
443
|
|
446
444
|
throw new Error('Parameter missing: private_key');
|
447
445
|
|
448
|
-
case
|
446
|
+
case 8:
|
449
447
|
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
450
|
-
_context5.next =
|
448
|
+
_context5.next = 10;
|
451
449
|
break;
|
452
450
|
}
|
453
451
|
|
454
452
|
throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
|
455
453
|
|
456
|
-
case
|
457
|
-
if (!(params['domain'] && !(0, _utils.isString)(params['domain']))) {
|
458
|
-
_context5.next = 16;
|
459
|
-
break;
|
460
|
-
}
|
461
|
-
|
462
|
-
throw new Error("Bad parameter: domain must be of type String, received ".concat((0, _utils.getType)(domain)));
|
463
|
-
|
464
|
-
case 16:
|
465
|
-
if (!(params['uri'] && !(0, _utils.isString)(params['uri']))) {
|
466
|
-
_context5.next = 18;
|
467
|
-
break;
|
468
|
-
}
|
469
|
-
|
470
|
-
throw new Error("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(uri)));
|
471
|
-
|
472
|
-
case 18:
|
454
|
+
case 10:
|
473
455
|
if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
|
474
|
-
_context5.next =
|
456
|
+
_context5.next = 12;
|
475
457
|
break;
|
476
458
|
}
|
477
459
|
|
478
460
|
throw new Error("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(public_certificate)));
|
479
461
|
|
480
|
-
case
|
462
|
+
case 12:
|
481
463
|
if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
|
482
|
-
_context5.next =
|
464
|
+
_context5.next = 14;
|
483
465
|
break;
|
484
466
|
}
|
485
467
|
|
486
468
|
throw new Error("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
|
487
469
|
|
488
|
-
case
|
489
|
-
_context5.next =
|
470
|
+
case 14:
|
471
|
+
_context5.next = 16;
|
490
472
|
return _Api.default.sendRequest("/as2_stations", 'POST', params, options);
|
491
473
|
|
492
|
-
case
|
474
|
+
case 16:
|
493
475
|
response = _context5.sent;
|
494
476
|
return _context5.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, options));
|
495
477
|
|
496
|
-
case
|
478
|
+
case 18:
|
497
479
|
case "end":
|
498
480
|
return _context5.stop();
|
499
481
|
}
|
@@ -7,10 +7,10 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
9
9
|
|
10
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
11
|
-
|
12
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
13
11
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
13
|
+
|
14
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
15
15
|
|
16
16
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
@@ -170,10 +170,72 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
170
170
|
(0, _defineProperty2.default)(this, "getLdapUsernameField", function () {
|
171
171
|
return _this.attributes.ldap_username_field;
|
172
172
|
});
|
173
|
-
|
174
|
-
var
|
175
|
-
|
176
|
-
|
173
|
+
(0, _defineProperty2.default)(this, "sync", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
174
|
+
var params,
|
175
|
+
_args = arguments;
|
176
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
177
|
+
while (1) {
|
178
|
+
switch (_context.prev = _context.next) {
|
179
|
+
case 0:
|
180
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
181
|
+
|
182
|
+
if (_this.attributes.id) {
|
183
|
+
_context.next = 3;
|
184
|
+
break;
|
185
|
+
}
|
186
|
+
|
187
|
+
throw new Error('Current object has no id');
|
188
|
+
|
189
|
+
case 3:
|
190
|
+
if ((0, _utils.isObject)(params)) {
|
191
|
+
_context.next = 5;
|
192
|
+
break;
|
193
|
+
}
|
194
|
+
|
195
|
+
throw new Error("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
196
|
+
|
197
|
+
case 5:
|
198
|
+
params.id = _this.attributes.id;
|
199
|
+
|
200
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
201
|
+
_context.next = 8;
|
202
|
+
break;
|
203
|
+
}
|
204
|
+
|
205
|
+
throw new Error("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
206
|
+
|
207
|
+
case 8:
|
208
|
+
if (params['id']) {
|
209
|
+
_context.next = 14;
|
210
|
+
break;
|
211
|
+
}
|
212
|
+
|
213
|
+
if (!_this.attributes.id) {
|
214
|
+
_context.next = 13;
|
215
|
+
break;
|
216
|
+
}
|
217
|
+
|
218
|
+
params['id'] = _this.id;
|
219
|
+
_context.next = 14;
|
220
|
+
break;
|
221
|
+
|
222
|
+
case 13:
|
223
|
+
throw new Error('Parameter missing: id');
|
224
|
+
|
225
|
+
case 14:
|
226
|
+
return _context.abrupt("return", _Api.default.sendRequest("/sso_strategies/".concat(params['id'], "/sync"), 'POST', params, _this.options));
|
227
|
+
|
228
|
+
case 15:
|
229
|
+
case "end":
|
230
|
+
return _context.stop();
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}, _callee);
|
234
|
+
})));
|
235
|
+
Object.entries(attributes).forEach(function (_ref2) {
|
236
|
+
var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
|
237
|
+
key = _ref3[0],
|
238
|
+
value = _ref3[1];
|
177
239
|
|
178
240
|
var normalizedKey = key.replace('?', '');
|
179
241
|
_this.attributes[normalizedKey] = value;
|
@@ -184,22 +246,22 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
184
246
|
});
|
185
247
|
this.options = _objectSpread({}, options);
|
186
248
|
});
|
187
|
-
(0, _defineProperty2.default)(SsoStrategy, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
249
|
+
(0, _defineProperty2.default)(SsoStrategy, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
188
250
|
var _response$data;
|
189
251
|
|
190
252
|
var params,
|
191
253
|
options,
|
192
254
|
response,
|
193
|
-
|
194
|
-
return _regenerator.default.wrap(function
|
255
|
+
_args2 = arguments;
|
256
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
195
257
|
while (1) {
|
196
|
-
switch (
|
258
|
+
switch (_context2.prev = _context2.next) {
|
197
259
|
case 0:
|
198
|
-
params =
|
199
|
-
options =
|
260
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
261
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
200
262
|
|
201
263
|
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
202
|
-
|
264
|
+
_context2.next = 4;
|
203
265
|
break;
|
204
266
|
}
|
205
267
|
|
@@ -207,28 +269,28 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
207
269
|
|
208
270
|
case 4:
|
209
271
|
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
210
|
-
|
272
|
+
_context2.next = 6;
|
211
273
|
break;
|
212
274
|
}
|
213
275
|
|
214
276
|
throw new Error("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
|
215
277
|
|
216
278
|
case 6:
|
217
|
-
|
279
|
+
_context2.next = 8;
|
218
280
|
return _Api.default.sendRequest("/sso_strategies", 'GET', params, options);
|
219
281
|
|
220
282
|
case 8:
|
221
|
-
response =
|
222
|
-
return
|
283
|
+
response = _context2.sent;
|
284
|
+
return _context2.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
223
285
|
return new SsoStrategy(obj, options);
|
224
286
|
})) || []);
|
225
287
|
|
226
288
|
case 10:
|
227
289
|
case "end":
|
228
|
-
return
|
290
|
+
return _context2.stop();
|
229
291
|
}
|
230
292
|
}
|
231
|
-
},
|
293
|
+
}, _callee2);
|
232
294
|
})));
|
233
295
|
(0, _defineProperty2.default)(SsoStrategy, "all", function () {
|
234
296
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
@@ -236,20 +298,20 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
236
298
|
return SsoStrategy.list(params, options);
|
237
299
|
});
|
238
300
|
(0, _defineProperty2.default)(SsoStrategy, "find", /*#__PURE__*/function () {
|
239
|
-
var
|
301
|
+
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
|
240
302
|
var params,
|
241
303
|
options,
|
242
304
|
response,
|
243
|
-
|
244
|
-
return _regenerator.default.wrap(function
|
305
|
+
_args3 = arguments;
|
306
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
245
307
|
while (1) {
|
246
|
-
switch (
|
308
|
+
switch (_context3.prev = _context3.next) {
|
247
309
|
case 0:
|
248
|
-
params =
|
249
|
-
options =
|
310
|
+
params = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
311
|
+
options = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {};
|
250
312
|
|
251
313
|
if ((0, _utils.isObject)(params)) {
|
252
|
-
|
314
|
+
_context3.next = 4;
|
253
315
|
break;
|
254
316
|
}
|
255
317
|
|
@@ -259,7 +321,7 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
259
321
|
params['id'] = id;
|
260
322
|
|
261
323
|
if (params['id']) {
|
262
|
-
|
324
|
+
_context3.next = 7;
|
263
325
|
break;
|
264
326
|
}
|
265
327
|
|
@@ -267,30 +329,30 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
267
329
|
|
268
330
|
case 7:
|
269
331
|
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
270
|
-
|
332
|
+
_context3.next = 9;
|
271
333
|
break;
|
272
334
|
}
|
273
335
|
|
274
336
|
throw new Error("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
|
275
337
|
|
276
338
|
case 9:
|
277
|
-
|
339
|
+
_context3.next = 11;
|
278
340
|
return _Api.default.sendRequest("/sso_strategies/".concat(params['id']), 'GET', params, options);
|
279
341
|
|
280
342
|
case 11:
|
281
|
-
response =
|
282
|
-
return
|
343
|
+
response = _context3.sent;
|
344
|
+
return _context3.abrupt("return", new SsoStrategy(response === null || response === void 0 ? void 0 : response.data, options));
|
283
345
|
|
284
346
|
case 13:
|
285
347
|
case "end":
|
286
|
-
return
|
348
|
+
return _context3.stop();
|
287
349
|
}
|
288
350
|
}
|
289
|
-
},
|
351
|
+
}, _callee3);
|
290
352
|
}));
|
291
353
|
|
292
354
|
return function (_x) {
|
293
|
-
return
|
355
|
+
return _ref5.apply(this, arguments);
|
294
356
|
};
|
295
357
|
}());
|
296
358
|
(0, _defineProperty2.default)(SsoStrategy, "get", function (id) {
|
package/package.json
CHANGED
@@ -40,13 +40,13 @@ class AccountLineItem {
|
|
40
40
|
// string # Line item download uri
|
41
41
|
getDownloadUri = () => this.attributes.download_uri
|
42
42
|
|
43
|
-
// Associated invoice line items
|
43
|
+
// InvoiceLineItem # Associated invoice line items
|
44
44
|
getInvoiceLineItems = () => this.attributes.invoice_line_items
|
45
45
|
|
46
46
|
// string # Line item payment method
|
47
47
|
getMethod = () => this.attributes.method
|
48
48
|
|
49
|
-
// Associated payment line items
|
49
|
+
// PaymentLineItem # Associated payment line items
|
50
50
|
getPaymentLineItems = () => this.attributes.payment_line_items
|
51
51
|
|
52
52
|
// date-time # Date/time payment was reversed if applicable
|
package/src/models/As2Partner.js
CHANGED
@@ -57,6 +57,41 @@ class As2Partner {
|
|
57
57
|
this.attributes.public_certificate_md5 = value
|
58
58
|
}
|
59
59
|
|
60
|
+
// string # Subject of public certificate used for message security.
|
61
|
+
getPublicCertificateSubject = () => this.attributes.public_certificate_subject
|
62
|
+
|
63
|
+
setPublicCertificateSubject = value => {
|
64
|
+
this.attributes.public_certificate_subject = value
|
65
|
+
}
|
66
|
+
|
67
|
+
// string # Issuer of public certificate used for message security.
|
68
|
+
getPublicCertificateIssuer = () => this.attributes.public_certificate_issuer
|
69
|
+
|
70
|
+
setPublicCertificateIssuer = value => {
|
71
|
+
this.attributes.public_certificate_issuer = value
|
72
|
+
}
|
73
|
+
|
74
|
+
// string # Serial of public certificate used for message security.
|
75
|
+
getPublicCertificateSerial = () => this.attributes.public_certificate_serial
|
76
|
+
|
77
|
+
setPublicCertificateSerial = value => {
|
78
|
+
this.attributes.public_certificate_serial = value
|
79
|
+
}
|
80
|
+
|
81
|
+
// string # Not before value of public certificate used for message security.
|
82
|
+
getPublicCertificateNotBefore = () => this.attributes.public_certificate_not_before
|
83
|
+
|
84
|
+
setPublicCertificateNotBefore = value => {
|
85
|
+
this.attributes.public_certificate_not_before = value
|
86
|
+
}
|
87
|
+
|
88
|
+
// string # Not after value of public certificate used for message security.
|
89
|
+
getPublicCertificateNotAfter = () => this.attributes.public_certificate_not_after
|
90
|
+
|
91
|
+
setPublicCertificateNotAfter = value => {
|
92
|
+
this.attributes.public_certificate_not_after = value
|
93
|
+
}
|
94
|
+
|
60
95
|
// string
|
61
96
|
getPublicCertificate = () => this.attributes.public_certificate
|
62
97
|
|
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
|
}
|
@@ -210,8 +237,6 @@ class As2Station {
|
|
210
237
|
|
211
238
|
// Parameters:
|
212
239
|
// name (required) - string - AS2 Name
|
213
|
-
// domain (required) - string - AS2 Domain
|
214
|
-
// uri (required) - string - URL base for AS2 responses
|
215
240
|
// public_certificate (required) - string
|
216
241
|
// private_key (required) - string
|
217
242
|
static create = async (params = {}, options = {}) => {
|
@@ -219,14 +244,6 @@ class As2Station {
|
|
219
244
|
throw new Error('Parameter missing: name')
|
220
245
|
}
|
221
246
|
|
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
247
|
if (!params['public_certificate']) {
|
231
248
|
throw new Error('Parameter missing: public_certificate')
|
232
249
|
}
|
@@ -239,14 +256,6 @@ class As2Station {
|
|
239
256
|
throw new Error(`Bad parameter: name must be of type String, received ${getType(name)}`)
|
240
257
|
}
|
241
258
|
|
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
259
|
if (params['public_certificate'] && !isString(params['public_certificate'])) {
|
251
260
|
throw new Error(`Bad parameter: public_certificate must be of type String, received ${getType(public_certificate)}`)
|
252
261
|
}
|
package/src/models/Bundle.js
CHANGED
@@ -78,7 +78,7 @@ class Bundle {
|
|
78
78
|
this.attributes.clickwrap_body = value
|
79
79
|
}
|
80
80
|
|
81
|
-
// Custom Form to use
|
81
|
+
// FormFieldSet # Custom Form to use
|
82
82
|
getFormFieldSet = () => this.attributes.form_field_set
|
83
83
|
|
84
84
|
setFormFieldSet = value => {
|
@@ -144,7 +144,7 @@ class Bundle {
|
|
144
144
|
this.attributes.inbox_id = value
|
145
145
|
}
|
146
146
|
|
147
|
-
// Preview watermark image applied to all bundle items.
|
147
|
+
// Image # Preview watermark image applied to all bundle items.
|
148
148
|
getWatermarkAttachment = () => this.attributes.watermark_attachment
|
149
149
|
|
150
150
|
setWatermarkAttachment = value => {
|
package/src/models/File.js
CHANGED
package/src/models/Folder.js
CHANGED
@@ -22,6 +22,7 @@ class InboxUpload {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
isLoaded = () => !!this.attributes.id
|
25
|
+
// InboxRegistration
|
25
26
|
getInboxRegistration = () => this.attributes.inbox_registration
|
26
27
|
|
27
28
|
// string # Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
package/src/models/Invoice.js
CHANGED
@@ -40,13 +40,13 @@ class Invoice {
|
|
40
40
|
// string # Line item download uri
|
41
41
|
getDownloadUri = () => this.attributes.download_uri
|
42
42
|
|
43
|
-
// Associated invoice line items
|
43
|
+
// InvoiceLineItem # Associated invoice line items
|
44
44
|
getInvoiceLineItems = () => this.attributes.invoice_line_items
|
45
45
|
|
46
46
|
// string # Line item payment method
|
47
47
|
getMethod = () => this.attributes.method
|
48
48
|
|
49
|
-
// Associated payment line items
|
49
|
+
// PaymentLineItem # Associated payment line items
|
50
50
|
getPaymentLineItems = () => this.attributes.payment_line_items
|
51
51
|
|
52
52
|
// date-time # Date/time payment was reversed if applicable
|
package/src/models/Message.js
CHANGED
package/src/models/Payment.js
CHANGED
@@ -40,13 +40,13 @@ class Payment {
|
|
40
40
|
// string # Line item download uri
|
41
41
|
getDownloadUri = () => this.attributes.download_uri
|
42
42
|
|
43
|
-
// Associated invoice line items
|
43
|
+
// InvoiceLineItem # Associated invoice line items
|
44
44
|
getInvoiceLineItems = () => this.attributes.invoice_line_items
|
45
45
|
|
46
46
|
// string # Line item payment method
|
47
47
|
getMethod = () => this.attributes.method
|
48
48
|
|
49
|
-
// Associated payment line items
|
49
|
+
// PaymentLineItem # Associated payment line items
|
50
50
|
getPaymentLineItems = () => this.attributes.payment_line_items
|
51
51
|
|
52
52
|
// date-time # Date/time payment was reversed if applicable
|
package/src/models/Site.js
CHANGED
@@ -64,7 +64,7 @@ class Site {
|
|
64
64
|
// boolean # Do Bundles require recipients for sharing?
|
65
65
|
getBundleRequireShareRecipient = () => this.attributes.bundle_require_share_recipient
|
66
66
|
|
67
|
-
// Preview watermark image applied to all bundle items.
|
67
|
+
// Image # Preview watermark image applied to all bundle items.
|
68
68
|
getBundleWatermarkAttachment = () => this.attributes.bundle_watermark_attachment
|
69
69
|
|
70
70
|
// object # Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
@@ -160,16 +160,16 @@ class Site {
|
|
160
160
|
// boolean # Is there a signed HIPAA BAA between Files.com and this site?
|
161
161
|
getHipaa = () => this.attributes.hipaa
|
162
162
|
|
163
|
-
// Branded icon 128x128
|
163
|
+
// Image # Branded icon 128x128
|
164
164
|
getIcon128 = () => this.attributes.icon128
|
165
165
|
|
166
|
-
// Branded icon 16x16
|
166
|
+
// Image # Branded icon 16x16
|
167
167
|
getIcon16 = () => this.attributes.icon16
|
168
168
|
|
169
|
-
// Branded icon 32x32
|
169
|
+
// Image # Branded icon 32x32
|
170
170
|
getIcon32 = () => this.attributes.icon32
|
171
171
|
|
172
|
-
// Branded icon 48x48
|
172
|
+
// Image # Branded icon 48x48
|
173
173
|
getIcon48 = () => this.attributes.icon48
|
174
174
|
|
175
175
|
// date-time # Can files be modified?
|
@@ -232,7 +232,7 @@ class Site {
|
|
232
232
|
// string # Login help text
|
233
233
|
getLoginHelpText = () => this.attributes.login_help_text
|
234
234
|
|
235
|
-
// Branded logo
|
235
|
+
// Image # Branded logo
|
236
236
|
getLogo = () => this.attributes.logo
|
237
237
|
|
238
238
|
// int64 # Number of prior passwords to disallow
|
@@ -298,7 +298,7 @@ class Site {
|
|
298
298
|
// string # What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
299
299
|
getRequire2faUserType = () => this.attributes.require_2fa_user_type
|
300
300
|
|
301
|
-
// Current session
|
301
|
+
// Session # Current session
|
302
302
|
getSession = () => this.attributes.session
|
303
303
|
|
304
304
|
// boolean # Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
@@ -367,7 +367,7 @@ class Site {
|
|
367
367
|
// boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
|
368
368
|
getUseProvidedModifiedAt = () => this.attributes.use_provided_modified_at
|
369
369
|
|
370
|
-
// User of current session
|
370
|
+
// User # User of current session
|
371
371
|
getUser = () => this.attributes.user
|
372
372
|
|
373
373
|
// boolean # Will users be locked out after incorrect login attempts?
|
@@ -152,6 +152,32 @@ class SsoStrategy {
|
|
152
152
|
getLdapUsernameField = () => this.attributes.ldap_username_field
|
153
153
|
|
154
154
|
|
155
|
+
// Synchronize provisioning data with the SSO remote server
|
156
|
+
sync = async (params = {}) => {
|
157
|
+
if (!this.attributes.id) {
|
158
|
+
throw new Error('Current object has no id')
|
159
|
+
}
|
160
|
+
|
161
|
+
if (!isObject(params)) {
|
162
|
+
throw new Error(`Bad parameter: params must be of type object, received ${getType(params)}`)
|
163
|
+
}
|
164
|
+
|
165
|
+
params.id = this.attributes.id
|
166
|
+
if (params['id'] && !isInt(params['id'])) {
|
167
|
+
throw new Error(`Bad parameter: id must be of type Int, received ${getType(id)}`)
|
168
|
+
}
|
169
|
+
|
170
|
+
if (!params['id']) {
|
171
|
+
if (this.attributes.id) {
|
172
|
+
params['id'] = this.id
|
173
|
+
} else {
|
174
|
+
throw new Error('Parameter missing: id')
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
return Api.sendRequest(`/sso_strategies/${params['id']}/sync`, 'POST', params, this.options)
|
179
|
+
}
|
180
|
+
|
155
181
|
// Parameters:
|
156
182
|
// 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.
|
157
183
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
package/src/models/Status.js
CHANGED
@@ -31,10 +31,10 @@ class Status {
|
|
31
31
|
// string # Status message
|
32
32
|
getStatus = () => this.attributes.status
|
33
33
|
|
34
|
-
// Additional data
|
34
|
+
// Auto # Additional data
|
35
35
|
getData = () => this.attributes.data
|
36
36
|
|
37
|
-
// A list of api errors
|
37
|
+
// Errors # A list of api errors
|
38
38
|
getErrors = () => this.attributes.errors
|
39
39
|
|
40
40
|
// int64 # Required Clickwrap id
|
package/src/models/Style.js
CHANGED
@@ -36,14 +36,14 @@ class Style {
|
|
36
36
|
this.attributes.path = value
|
37
37
|
}
|
38
38
|
|
39
|
-
// Logo
|
39
|
+
// Image # Logo
|
40
40
|
getLogo = () => this.attributes.logo
|
41
41
|
|
42
42
|
setLogo = value => {
|
43
43
|
this.attributes.logo = value
|
44
44
|
}
|
45
45
|
|
46
|
-
// Logo thumbnail
|
46
|
+
// Image # Logo thumbnail
|
47
47
|
getThumbnail = () => this.attributes.thumbnail
|
48
48
|
|
49
49
|
setThumbnail = value => {
|