files.com 1.0.196 → 1.0.199
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/AccountLineItem.md +24 -20
- package/docs/models/App.md +1 -1
- package/docs/models/Automation.md +10 -6
- package/docs/models/Bundle.md +39 -28
- package/docs/models/File.md +4 -0
- package/docs/models/FileComment.md +13 -9
- package/docs/models/Folder.md +2 -0
- package/docs/models/FormField.md +1 -1
- package/docs/models/FormFieldSet.md +36 -32
- package/docs/models/Group.md +13 -25
- package/docs/models/Invoice.md +24 -20
- package/docs/models/InvoiceLineItem.md +1 -1
- package/docs/models/Message.md +21 -13
- package/docs/models/MessageComment.md +13 -9
- package/docs/models/Notification.md +2 -2
- package/docs/models/Payment.md +24 -20
- package/docs/models/RemoteServer.md +10 -0
- package/docs/models/SettingsChange.md +1 -1
- package/docs/models/Site.md +8 -0
- package/docs/models/Status.md +9 -7
- package/docs/models/UsageDailySnapshot.md +1 -1
- package/lib/models/ActionNotificationExport.js +1 -1
- package/lib/models/ActionWebhookFailure.js +1 -1
- package/lib/models/ApiKey.js +3 -3
- package/lib/models/As2Partner.js +3 -3
- package/lib/models/As2Station.js +3 -3
- package/lib/models/Automation.js +3 -3
- package/lib/models/AutomationRun.js +1 -1
- package/lib/models/Behavior.js +4 -4
- package/lib/models/Bundle.js +41 -19
- package/lib/models/Clickwrap.js +3 -3
- package/lib/models/ExternalEvent.js +1 -1
- package/lib/models/File.js +11 -8
- package/lib/models/FileComment.js +3 -3
- package/lib/models/FileCommentReaction.js +1 -1
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/Folder.js +5 -2
- package/lib/models/FormFieldSet.js +3 -3
- package/lib/models/Group.js +3 -3
- package/lib/models/GroupUser.js +2 -2
- package/lib/models/History.js +3 -3
- package/lib/models/HistoryExport.js +1 -1
- package/lib/models/Invoice.js +1 -1
- package/lib/models/Lock.js +3 -3
- package/lib/models/Message.js +3 -3
- package/lib/models/MessageComment.js +3 -3
- package/lib/models/MessageCommentReaction.js +2 -2
- package/lib/models/MessageReaction.js +2 -2
- package/lib/models/Notification.js +3 -3
- package/lib/models/Payment.js +1 -1
- package/lib/models/Permission.js +1 -1
- package/lib/models/Project.js +3 -3
- package/lib/models/PublicKey.js +3 -3
- package/lib/models/RemoteServer.js +15 -3
- package/lib/models/Request.js +2 -2
- package/lib/models/Site.js +6 -0
- package/lib/models/SsoStrategy.js +2 -2
- package/lib/models/Style.js +3 -3
- package/lib/models/User.js +6 -6
- package/lib/models/UserRequest.js +2 -2
- package/package.json +1 -1
- package/src/models/AccountLineItem.js +2 -2
- package/src/models/ActionNotificationExport.js +1 -1
- package/src/models/ActionWebhookFailure.js +1 -1
- package/src/models/ApiKey.js +3 -3
- package/src/models/App.js +1 -1
- package/src/models/As2Partner.js +3 -3
- package/src/models/As2Station.js +3 -3
- package/src/models/Automation.js +5 -5
- package/src/models/AutomationRun.js +1 -1
- package/src/models/Behavior.js +4 -4
- package/src/models/Bundle.js +20 -4
- package/src/models/Clickwrap.js +3 -3
- package/src/models/ExternalEvent.js +1 -1
- package/src/models/File.js +11 -8
- package/src/models/FileComment.js +4 -4
- package/src/models/FileCommentReaction.js +1 -1
- package/src/models/FileMigration.js +1 -1
- package/src/models/Folder.js +5 -2
- package/src/models/FormField.js +1 -1
- package/src/models/FormFieldSet.js +5 -5
- package/src/models/Group.js +6 -6
- package/src/models/GroupUser.js +2 -2
- package/src/models/History.js +3 -3
- package/src/models/HistoryExport.js +1 -1
- package/src/models/Invoice.js +3 -3
- package/src/models/Lock.js +3 -3
- package/src/models/Message.js +4 -4
- package/src/models/MessageComment.js +4 -4
- package/src/models/MessageCommentReaction.js +2 -2
- package/src/models/MessageReaction.js +2 -2
- package/src/models/Notification.js +5 -5
- package/src/models/Payment.js +3 -3
- package/src/models/Permission.js +1 -1
- package/src/models/Project.js +3 -3
- package/src/models/PublicKey.js +3 -3
- package/src/models/RemoteServer.js +19 -3
- package/src/models/Request.js +2 -2
- package/src/models/SettingsChange.js +1 -1
- package/src/models/Site.js +8 -0
- package/src/models/SsoStrategy.js +2 -2
- package/src/models/Status.js +1 -1
- package/src/models/Style.js +3 -3
- package/src/models/User.js +6 -6
- package/src/models/UserRequest.js +2 -2
package/lib/models/Project.js
CHANGED
@@ -142,7 +142,7 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
142
142
|
|
143
143
|
case 22:
|
144
144
|
_context.next = 24;
|
145
|
-
return _Api.default.sendRequest("/projects/".concat(params['id']), 'PATCH', params, _this.options);
|
145
|
+
return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
146
146
|
|
147
147
|
case 24:
|
148
148
|
response = _context.sent;
|
@@ -210,7 +210,7 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
210
210
|
|
211
211
|
case 14:
|
212
212
|
_context2.next = 16;
|
213
|
-
return _Api.default.sendRequest("/projects/".concat(params['id']), 'DELETE', params, _this.options);
|
213
|
+
return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
214
214
|
|
215
215
|
case 16:
|
216
216
|
response = _context2.sent;
|
@@ -341,7 +341,7 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
|
|
341
341
|
|
342
342
|
case 9:
|
343
343
|
_context4.next = 11;
|
344
|
-
return _Api.default.sendRequest("/projects/".concat(params['id']), 'GET', params, options);
|
344
|
+
return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
345
345
|
|
346
346
|
case 11:
|
347
347
|
response = _context4.sent;
|
package/lib/models/PublicKey.js
CHANGED
@@ -163,7 +163,7 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
|
|
163
163
|
|
164
164
|
case 22:
|
165
165
|
_context.next = 24;
|
166
|
-
return _Api.default.sendRequest("/public_keys/".concat(params['id']), 'PATCH', params, _this.options);
|
166
|
+
return _Api.default.sendRequest("/public_keys/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
167
167
|
|
168
168
|
case 24:
|
169
169
|
response = _context.sent;
|
@@ -231,7 +231,7 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
|
|
231
231
|
|
232
232
|
case 14:
|
233
233
|
_context2.next = 16;
|
234
|
-
return _Api.default.sendRequest("/public_keys/".concat(params['id']), 'DELETE', params, _this.options);
|
234
|
+
return _Api.default.sendRequest("/public_keys/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
235
235
|
|
236
236
|
case 16:
|
237
237
|
response = _context2.sent;
|
@@ -370,7 +370,7 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
|
|
370
370
|
|
371
371
|
case 9:
|
372
372
|
_context4.next = 11;
|
373
|
-
return _Api.default.sendRequest("/public_keys/".concat(params['id']), 'GET', params, options);
|
373
|
+
return _Api.default.sendRequest("/public_keys/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
374
374
|
|
375
375
|
case 11:
|
376
376
|
response = _context4.sent;
|
@@ -97,6 +97,18 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
97
97
|
(0, _defineProperty2.default)(this, "setMaxConnections", function (value) {
|
98
98
|
_this.attributes.max_connections = value;
|
99
99
|
});
|
100
|
+
(0, _defineProperty2.default)(this, "getPinToSiteRegion", function () {
|
101
|
+
return _this.attributes.pin_to_site_region;
|
102
|
+
});
|
103
|
+
(0, _defineProperty2.default)(this, "setPinToSiteRegion", function (value) {
|
104
|
+
_this.attributes.pin_to_site_region = value;
|
105
|
+
});
|
106
|
+
(0, _defineProperty2.default)(this, "getPinnedRegion", function () {
|
107
|
+
return _this.attributes.pinned_region;
|
108
|
+
});
|
109
|
+
(0, _defineProperty2.default)(this, "setPinnedRegion", function (value) {
|
110
|
+
_this.attributes.pinned_region = value;
|
111
|
+
});
|
100
112
|
(0, _defineProperty2.default)(this, "getS3Bucket", function () {
|
101
113
|
return _this.attributes.s3_bucket;
|
102
114
|
});
|
@@ -802,7 +814,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
802
814
|
|
803
815
|
case 106:
|
804
816
|
_context.next = 108;
|
805
|
-
return _Api.default.sendRequest("/remote_servers/".concat(params['id']), 'PATCH', params, _this.options);
|
817
|
+
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
806
818
|
|
807
819
|
case 108:
|
808
820
|
response = _context.sent;
|
@@ -870,7 +882,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
870
882
|
|
871
883
|
case 14:
|
872
884
|
_context2.next = 16;
|
873
|
-
return _Api.default.sendRequest("/remote_servers/".concat(params['id']), 'DELETE', params, _this.options);
|
885
|
+
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
874
886
|
|
875
887
|
case 16:
|
876
888
|
response = _context2.sent;
|
@@ -1001,7 +1013,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1001
1013
|
|
1002
1014
|
case 9:
|
1003
1015
|
_context4.next = 11;
|
1004
|
-
return _Api.default.sendRequest("/remote_servers/".concat(params['id']), 'GET', params, options);
|
1016
|
+
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
1005
1017
|
|
1006
1018
|
case 11:
|
1007
1019
|
response = _context4.sent;
|
package/lib/models/Request.js
CHANGED
@@ -152,7 +152,7 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
|
|
152
152
|
|
153
153
|
case 14:
|
154
154
|
_context.next = 16;
|
155
|
-
return _Api.default.sendRequest("/requests/".concat(params['id']), 'DELETE', params, _this.options);
|
155
|
+
return _Api.default.sendRequest("/requests/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
156
156
|
|
157
157
|
case 16:
|
158
158
|
response = _context.sent;
|
@@ -309,7 +309,7 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
|
|
309
309
|
|
310
310
|
case 13:
|
311
311
|
_context3.next = 15;
|
312
|
-
return _Api.default.sendRequest("/requests/folders/".concat(params['path']), 'GET', params, options);
|
312
|
+
return _Api.default.sendRequest("/requests/folders/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
|
313
313
|
|
314
314
|
case 15:
|
315
315
|
response = _context3.sent;
|
package/lib/models/Site.js
CHANGED
@@ -319,6 +319,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
319
319
|
(0, _defineProperty2.default)(this, "getPhone", function () {
|
320
320
|
return _this.attributes.phone;
|
321
321
|
});
|
322
|
+
(0, _defineProperty2.default)(this, "getPinAllRemoteServersToSiteRegion", function () {
|
323
|
+
return _this.attributes.pin_all_remote_servers_to_site_region;
|
324
|
+
});
|
322
325
|
(0, _defineProperty2.default)(this, "getRequire2fa", function () {
|
323
326
|
return _this.attributes.require_2fa;
|
324
327
|
});
|
@@ -415,6 +418,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
415
418
|
(0, _defineProperty2.default)(this, "getUserRequestsEnabled", function () {
|
416
419
|
return _this.attributes.user_requests_enabled;
|
417
420
|
});
|
421
|
+
(0, _defineProperty2.default)(this, "getUserRequestsNotifyAdmins", function () {
|
422
|
+
return _this.attributes.user_requests_notify_admins;
|
423
|
+
});
|
418
424
|
(0, _defineProperty2.default)(this, "getWelcomeCustomText", function () {
|
419
425
|
return _this.attributes.welcome_custom_text;
|
420
426
|
});
|
@@ -233,7 +233,7 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
233
233
|
|
234
234
|
case 14:
|
235
235
|
_context.next = 16;
|
236
|
-
return _Api.default.sendRequest("/sso_strategies/".concat(params['id'], "/sync"), 'POST', params, _this.options);
|
236
|
+
return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params['id']), "/sync"), 'POST', params, _this.options);
|
237
237
|
|
238
238
|
case 16:
|
239
239
|
response = _context.sent;
|
@@ -351,7 +351,7 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
351
351
|
|
352
352
|
case 9:
|
353
353
|
_context3.next = 11;
|
354
|
-
return _Api.default.sendRequest("/sso_strategies/".concat(params['id']), 'GET', params, options);
|
354
|
+
return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
355
355
|
|
356
356
|
case 11:
|
357
357
|
response = _context3.sent;
|
package/lib/models/Style.js
CHANGED
@@ -152,7 +152,7 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
152
152
|
|
153
153
|
case 20:
|
154
154
|
_context.next = 22;
|
155
|
-
return _Api.default.sendRequest("/styles/".concat(params['path']), 'PATCH', params, _this.options);
|
155
|
+
return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params['path'])), 'PATCH', params, _this.options);
|
156
156
|
|
157
157
|
case 22:
|
158
158
|
response = _context.sent;
|
@@ -220,7 +220,7 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
220
220
|
|
221
221
|
case 14:
|
222
222
|
_context2.next = 16;
|
223
|
-
return _Api.default.sendRequest("/styles/".concat(params['path']), 'DELETE', params, _this.options);
|
223
|
+
return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params['path'])), 'DELETE', params, _this.options);
|
224
224
|
|
225
225
|
case 16:
|
226
226
|
response = _context2.sent;
|
@@ -294,7 +294,7 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
|
|
294
294
|
|
295
295
|
case 9:
|
296
296
|
_context3.next = 11;
|
297
|
-
return _Api.default.sendRequest("/styles/".concat(params['path']), 'GET', params, options);
|
297
|
+
return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
|
298
298
|
|
299
299
|
case 11:
|
300
300
|
response = _context3.sent;
|
package/lib/models/User.js
CHANGED
@@ -458,7 +458,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
458
458
|
|
459
459
|
case 14:
|
460
460
|
_context.next = 16;
|
461
|
-
return _Api.default.sendRequest("/users/".concat(params['id'], "/unlock"), 'POST', params, _this.options);
|
461
|
+
return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id']), "/unlock"), 'POST', params, _this.options);
|
462
462
|
|
463
463
|
case 16:
|
464
464
|
response = _context.sent;
|
@@ -526,7 +526,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
526
526
|
|
527
527
|
case 14:
|
528
528
|
_context2.next = 16;
|
529
|
-
return _Api.default.sendRequest("/users/".concat(params['id'], "/resend_welcome_email"), 'POST', params, _this.options);
|
529
|
+
return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id']), "/resend_welcome_email"), 'POST', params, _this.options);
|
530
530
|
|
531
531
|
case 16:
|
532
532
|
response = _context2.sent;
|
@@ -594,7 +594,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
594
594
|
|
595
595
|
case 14:
|
596
596
|
_context3.next = 16;
|
597
|
-
return _Api.default.sendRequest("/users/".concat(params['id'], "/2fa/reset"), 'POST', params, _this.options);
|
597
|
+
return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id']), "/2fa/reset"), 'POST', params, _this.options);
|
598
598
|
|
599
599
|
case 16:
|
600
600
|
response = _context3.sent;
|
@@ -862,7 +862,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
862
862
|
|
863
863
|
case 64:
|
864
864
|
_context4.next = 66;
|
865
|
-
return _Api.default.sendRequest("/users/".concat(params['id']), 'PATCH', params, _this.options);
|
865
|
+
return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
866
866
|
|
867
867
|
case 66:
|
868
868
|
response = _context4.sent;
|
@@ -930,7 +930,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
930
930
|
|
931
931
|
case 14:
|
932
932
|
_context5.next = 16;
|
933
|
-
return _Api.default.sendRequest("/users/".concat(params['id']), 'DELETE', params, _this.options);
|
933
|
+
return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
934
934
|
|
935
935
|
case 16:
|
936
936
|
response = _context5.sent;
|
@@ -1077,7 +1077,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
1077
1077
|
|
1078
1078
|
case 9:
|
1079
1079
|
_context7.next = 11;
|
1080
|
-
return _Api.default.sendRequest("/users/".concat(params['id']), 'GET', params, options);
|
1080
|
+
return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
1081
1081
|
|
1082
1082
|
case 11:
|
1083
1083
|
response = _context7.sent;
|
@@ -128,7 +128,7 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
128
128
|
|
129
129
|
case 14:
|
130
130
|
_context.next = 16;
|
131
|
-
return _Api.default.sendRequest("/user_requests/".concat(params['id']), 'DELETE', params, _this.options);
|
131
|
+
return _Api.default.sendRequest("/user_requests/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
|
132
132
|
|
133
133
|
case 16:
|
134
134
|
response = _context.sent;
|
@@ -259,7 +259,7 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
259
259
|
|
260
260
|
case 9:
|
261
261
|
_context3.next = 11;
|
262
|
-
return _Api.default.sendRequest("/user_requests/".concat(params['id']), 'GET', params, options);
|
262
|
+
return _Api.default.sendRequest("/user_requests/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
263
263
|
|
264
264
|
case 11:
|
265
265
|
response = _context3.sent;
|
package/package.json
CHANGED
@@ -41,13 +41,13 @@ class AccountLineItem {
|
|
41
41
|
// string # Line item download uri
|
42
42
|
getDownloadUri = () => this.attributes.download_uri
|
43
43
|
|
44
|
-
//
|
44
|
+
// array # Associated invoice line items
|
45
45
|
getInvoiceLineItems = () => this.attributes.invoice_line_items
|
46
46
|
|
47
47
|
// string # Line item payment method
|
48
48
|
getMethod = () => this.attributes.method
|
49
49
|
|
50
|
-
//
|
50
|
+
// array # Associated payment line items
|
51
51
|
getPaymentLineItems = () => this.attributes.payment_line_items
|
52
52
|
|
53
53
|
// date-time # Date/time payment was reversed if applicable
|
@@ -149,7 +149,7 @@ class ActionNotificationExport {
|
|
149
149
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
150
150
|
}
|
151
151
|
|
152
|
-
const response = await Api.sendRequest(`/action_notification_exports/${params['id']}`, 'GET', params, options)
|
152
|
+
const response = await Api.sendRequest(`/action_notification_exports/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
153
153
|
|
154
154
|
return new ActionNotificationExport(response?.data, options)
|
155
155
|
}
|
@@ -47,7 +47,7 @@ class ActionWebhookFailure {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
|
50
|
-
const response = await Api.sendRequest(`/action_webhook_failures/${params['id']}/retry`, 'POST', params, this.options)
|
50
|
+
const response = await Api.sendRequest(`/action_webhook_failures/${encodeURIComponent(params['id'])}/retry`, 'POST', params, this.options)
|
51
51
|
|
52
52
|
return response?.data
|
53
53
|
}
|
package/src/models/ApiKey.js
CHANGED
@@ -132,7 +132,7 @@ class ApiKey {
|
|
132
132
|
}
|
133
133
|
}
|
134
134
|
|
135
|
-
const response = await Api.sendRequest(`/api_keys/${params['id']}`, 'PATCH', params, this.options)
|
135
|
+
const response = await Api.sendRequest(`/api_keys/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
136
136
|
|
137
137
|
return new ApiKey(response?.data, this.options)
|
138
138
|
}
|
@@ -159,7 +159,7 @@ class ApiKey {
|
|
159
159
|
}
|
160
160
|
}
|
161
161
|
|
162
|
-
const response = await Api.sendRequest(`/api_keys/${params['id']}`, 'DELETE', params, this.options)
|
162
|
+
const response = await Api.sendRequest(`/api_keys/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
163
163
|
|
164
164
|
return response?.data
|
165
165
|
}
|
@@ -232,7 +232,7 @@ class ApiKey {
|
|
232
232
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
233
233
|
}
|
234
234
|
|
235
|
-
const response = await Api.sendRequest(`/api_keys/${params['id']}`, 'GET', params, options)
|
235
|
+
const response = await Api.sendRequest(`/api_keys/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
236
236
|
|
237
237
|
return new ApiKey(response?.data, options)
|
238
238
|
}
|
package/src/models/App.js
CHANGED
@@ -41,7 +41,7 @@ class App {
|
|
41
41
|
// string # Full size logo for the App
|
42
42
|
getLogoUrl = () => this.attributes.logo_url
|
43
43
|
|
44
|
-
//
|
44
|
+
// array # Screenshots of the App
|
45
45
|
getScreenshotListUrls = () => this.attributes.screenshot_list_urls
|
46
46
|
|
47
47
|
// string # Logo thumbnail for the App
|
package/src/models/As2Partner.js
CHANGED
@@ -154,7 +154,7 @@ class As2Partner {
|
|
154
154
|
}
|
155
155
|
}
|
156
156
|
|
157
|
-
const response = await Api.sendRequest(`/as2_partners/${params['id']}`, 'PATCH', params, this.options)
|
157
|
+
const response = await Api.sendRequest(`/as2_partners/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
158
158
|
|
159
159
|
return new As2Partner(response?.data, this.options)
|
160
160
|
}
|
@@ -181,7 +181,7 @@ class As2Partner {
|
|
181
181
|
}
|
182
182
|
}
|
183
183
|
|
184
|
-
const response = await Api.sendRequest(`/as2_partners/${params['id']}`, 'DELETE', params, this.options)
|
184
|
+
const response = await Api.sendRequest(`/as2_partners/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
185
185
|
|
186
186
|
return response?.data
|
187
187
|
}
|
@@ -236,7 +236,7 @@ class As2Partner {
|
|
236
236
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
237
237
|
}
|
238
238
|
|
239
|
-
const response = await Api.sendRequest(`/as2_partners/${params['id']}`, 'GET', params, options)
|
239
|
+
const response = await Api.sendRequest(`/as2_partners/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
240
240
|
|
241
241
|
return new As2Partner(response?.data, options)
|
242
242
|
}
|
package/src/models/As2Station.js
CHANGED
@@ -175,7 +175,7 @@ class As2Station {
|
|
175
175
|
}
|
176
176
|
}
|
177
177
|
|
178
|
-
const response = await Api.sendRequest(`/as2_stations/${params['id']}`, 'PATCH', params, this.options)
|
178
|
+
const response = await Api.sendRequest(`/as2_stations/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
179
179
|
|
180
180
|
return new As2Station(response?.data, this.options)
|
181
181
|
}
|
@@ -202,7 +202,7 @@ class As2Station {
|
|
202
202
|
}
|
203
203
|
}
|
204
204
|
|
205
|
-
const response = await Api.sendRequest(`/as2_stations/${params['id']}`, 'DELETE', params, this.options)
|
205
|
+
const response = await Api.sendRequest(`/as2_stations/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
206
206
|
|
207
207
|
return response?.data
|
208
208
|
}
|
@@ -257,7 +257,7 @@ class As2Station {
|
|
257
257
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
258
258
|
}
|
259
259
|
|
260
|
-
const response = await Api.sendRequest(`/as2_stations/${params['id']}`, 'GET', params, options)
|
260
|
+
const response = await Api.sendRequest(`/as2_stations/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
261
261
|
|
262
262
|
return new As2Station(response?.data, options)
|
263
263
|
}
|
package/src/models/Automation.js
CHANGED
@@ -93,7 +93,7 @@ class Automation {
|
|
93
93
|
this.attributes.source = value
|
94
94
|
}
|
95
95
|
|
96
|
-
//
|
96
|
+
// array # Destination Path
|
97
97
|
getDestinations = () => this.attributes.destinations
|
98
98
|
|
99
99
|
setDestinations = value => {
|
@@ -156,7 +156,7 @@ class Automation {
|
|
156
156
|
this.attributes.webhook_url = value
|
157
157
|
}
|
158
158
|
|
159
|
-
//
|
159
|
+
// array # If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
160
160
|
getTriggerActions = () => this.attributes.trigger_actions
|
161
161
|
|
162
162
|
setTriggerActions = value => {
|
@@ -260,7 +260,7 @@ class Automation {
|
|
260
260
|
}
|
261
261
|
}
|
262
262
|
|
263
|
-
const response = await Api.sendRequest(`/automations/${params['id']}`, 'PATCH', params, this.options)
|
263
|
+
const response = await Api.sendRequest(`/automations/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
264
264
|
|
265
265
|
return new Automation(response?.data, this.options)
|
266
266
|
}
|
@@ -287,7 +287,7 @@ class Automation {
|
|
287
287
|
}
|
288
288
|
}
|
289
289
|
|
290
|
-
const response = await Api.sendRequest(`/automations/${params['id']}`, 'DELETE', params, this.options)
|
290
|
+
const response = await Api.sendRequest(`/automations/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
291
291
|
|
292
292
|
return response?.data
|
293
293
|
}
|
@@ -355,7 +355,7 @@ class Automation {
|
|
355
355
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
356
356
|
}
|
357
357
|
|
358
|
-
const response = await Api.sendRequest(`/automations/${params['id']}`, 'GET', params, options)
|
358
|
+
const response = await Api.sendRequest(`/automations/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
359
359
|
|
360
360
|
return new Automation(response?.data, options)
|
361
361
|
}
|
@@ -100,7 +100,7 @@ class AutomationRun {
|
|
100
100
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
101
101
|
}
|
102
102
|
|
103
|
-
const response = await Api.sendRequest(`/automation_runs/${params['id']}`, 'GET', params, options)
|
103
|
+
const response = await Api.sendRequest(`/automation_runs/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
104
104
|
|
105
105
|
return new AutomationRun(response?.data, options)
|
106
106
|
}
|
package/src/models/Behavior.js
CHANGED
@@ -132,7 +132,7 @@ class Behavior {
|
|
132
132
|
}
|
133
133
|
}
|
134
134
|
|
135
|
-
const response = await Api.sendRequest(`/behaviors/${params['id']}`, 'PATCH', params, this.options)
|
135
|
+
const response = await Api.sendRequest(`/behaviors/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
136
136
|
|
137
137
|
return new Behavior(response?.data, this.options)
|
138
138
|
}
|
@@ -159,7 +159,7 @@ class Behavior {
|
|
159
159
|
}
|
160
160
|
}
|
161
161
|
|
162
|
-
const response = await Api.sendRequest(`/behaviors/${params['id']}`, 'DELETE', params, this.options)
|
162
|
+
const response = await Api.sendRequest(`/behaviors/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
163
163
|
|
164
164
|
return response?.data
|
165
165
|
}
|
@@ -226,7 +226,7 @@ class Behavior {
|
|
226
226
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
227
227
|
}
|
228
228
|
|
229
|
-
const response = await Api.sendRequest(`/behaviors/${params['id']}`, 'GET', params, options)
|
229
|
+
const response = await Api.sendRequest(`/behaviors/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
230
230
|
|
231
231
|
return new Behavior(response?.data, options)
|
232
232
|
}
|
@@ -278,7 +278,7 @@ class Behavior {
|
|
278
278
|
throw new errors.InvalidParameterError(`Bad parameter: behavior must be of type String, received ${getType(params['behavior'])}`)
|
279
279
|
}
|
280
280
|
|
281
|
-
const response = await Api.sendRequest(`/behaviors/folders/${params['path']}`, 'GET', params, options)
|
281
|
+
const response = await Api.sendRequest(`/behaviors/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
282
282
|
|
283
283
|
return response?.data?.map(obj => new Behavior(obj, options)) || []
|
284
284
|
}
|
package/src/models/Bundle.js
CHANGED
@@ -51,6 +51,13 @@ class Bundle {
|
|
51
51
|
this.attributes.password_protected = value
|
52
52
|
}
|
53
53
|
|
54
|
+
// string # Permissions that apply to Folders in this Share Link.
|
55
|
+
getPermissions = () => this.attributes.permissions
|
56
|
+
|
57
|
+
setPermissions = value => {
|
58
|
+
this.attributes.permissions = value
|
59
|
+
}
|
60
|
+
|
54
61
|
// boolean # Restrict users to previewing files only?
|
55
62
|
getPreviewOnly = () => this.attributes.preview_only
|
56
63
|
|
@@ -260,7 +267,7 @@ class Bundle {
|
|
260
267
|
}
|
261
268
|
}
|
262
269
|
|
263
|
-
const response = await Api.sendRequest(`/bundles/${params['id']}/share`, 'POST', params, this.options)
|
270
|
+
const response = await Api.sendRequest(`/bundles/${encodeURIComponent(params['id'])}/share`, 'POST', params, this.options)
|
264
271
|
|
265
272
|
return response?.data
|
266
273
|
}
|
@@ -276,6 +283,7 @@ class Bundle {
|
|
276
283
|
// inbox_id - int64 - ID of the associated inbox, if available.
|
277
284
|
// max_uses - int64 - Maximum number of times bundle can be accessed
|
278
285
|
// note - string - Bundle internal note
|
286
|
+
// permissions - string - Permissions that apply to Folders in this Share Link.
|
279
287
|
// preview_only - boolean - Restrict users to previewing files only?
|
280
288
|
// require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
281
289
|
// require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
@@ -327,6 +335,9 @@ class Bundle {
|
|
327
335
|
if (params['note'] && !isString(params['note'])) {
|
328
336
|
throw new errors.InvalidParameterError(`Bad parameter: note must be of type String, received ${getType(note)}`)
|
329
337
|
}
|
338
|
+
if (params['permissions'] && !isString(params['permissions'])) {
|
339
|
+
throw new errors.InvalidParameterError(`Bad parameter: permissions must be of type String, received ${getType(permissions)}`)
|
340
|
+
}
|
330
341
|
|
331
342
|
if (!params['id']) {
|
332
343
|
if (this.attributes.id) {
|
@@ -336,7 +347,7 @@ class Bundle {
|
|
336
347
|
}
|
337
348
|
}
|
338
349
|
|
339
|
-
const response = await Api.sendRequest(`/bundles/${params['id']}`, 'PATCH', params, this.options)
|
350
|
+
const response = await Api.sendRequest(`/bundles/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
340
351
|
|
341
352
|
return new Bundle(response?.data, this.options)
|
342
353
|
}
|
@@ -363,7 +374,7 @@ class Bundle {
|
|
363
374
|
}
|
364
375
|
}
|
365
376
|
|
366
|
-
const response = await Api.sendRequest(`/bundles/${params['id']}`, 'DELETE', params, this.options)
|
377
|
+
const response = await Api.sendRequest(`/bundles/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
367
378
|
|
368
379
|
return response?.data
|
369
380
|
}
|
@@ -430,7 +441,7 @@ class Bundle {
|
|
430
441
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
431
442
|
}
|
432
443
|
|
433
|
-
const response = await Api.sendRequest(`/bundles/${params['id']}`, 'GET', params, options)
|
444
|
+
const response = await Api.sendRequest(`/bundles/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
434
445
|
|
435
446
|
return new Bundle(response?.data, options)
|
436
447
|
}
|
@@ -448,6 +459,7 @@ class Bundle {
|
|
448
459
|
// description - string - Public description
|
449
460
|
// note - string - Bundle internal note
|
450
461
|
// code - string - Bundle code. This code forms the end part of the Public URL.
|
462
|
+
// permissions - string - Permissions that apply to Folders in this Share Link.
|
451
463
|
// preview_only - boolean - Restrict users to previewing files only?
|
452
464
|
// require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
453
465
|
// clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
@@ -498,6 +510,10 @@ class Bundle {
|
|
498
510
|
throw new errors.InvalidParameterError(`Bad parameter: code must be of type String, received ${getType(params['code'])}`)
|
499
511
|
}
|
500
512
|
|
513
|
+
if (params['permissions'] && !isString(params['permissions'])) {
|
514
|
+
throw new errors.InvalidParameterError(`Bad parameter: permissions must be of type String, received ${getType(params['permissions'])}`)
|
515
|
+
}
|
516
|
+
|
501
517
|
if (params['clickwrap_id'] && !isInt(params['clickwrap_id'])) {
|
502
518
|
throw new errors.InvalidParameterError(`Bad parameter: clickwrap_id must be of type Int, received ${getType(params['clickwrap_id'])}`)
|
503
519
|
}
|
package/src/models/Clickwrap.js
CHANGED
@@ -109,7 +109,7 @@ class Clickwrap {
|
|
109
109
|
}
|
110
110
|
}
|
111
111
|
|
112
|
-
const response = await Api.sendRequest(`/clickwraps/${params['id']}`, 'PATCH', params, this.options)
|
112
|
+
const response = await Api.sendRequest(`/clickwraps/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
113
113
|
|
114
114
|
return new Clickwrap(response?.data, this.options)
|
115
115
|
}
|
@@ -136,7 +136,7 @@ class Clickwrap {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
|
139
|
-
const response = await Api.sendRequest(`/clickwraps/${params['id']}`, 'DELETE', params, this.options)
|
139
|
+
const response = await Api.sendRequest(`/clickwraps/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
140
140
|
|
141
141
|
return response?.data
|
142
142
|
}
|
@@ -191,7 +191,7 @@ class Clickwrap {
|
|
191
191
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
192
192
|
}
|
193
193
|
|
194
|
-
const response = await Api.sendRequest(`/clickwraps/${params['id']}`, 'GET', params, options)
|
194
|
+
const response = await Api.sendRequest(`/clickwraps/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
195
195
|
|
196
196
|
return new Clickwrap(response?.data, options)
|
197
197
|
}
|
@@ -151,7 +151,7 @@ class ExternalEvent {
|
|
151
151
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
152
152
|
}
|
153
153
|
|
154
|
-
const response = await Api.sendRequest(`/external_events/${params['id']}`, 'GET', params, options)
|
154
|
+
const response = await Api.sendRequest(`/external_events/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
155
155
|
|
156
156
|
return new ExternalEvent(response?.data, options)
|
157
157
|
}
|