files.com 1.0.198 → 1.0.199
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/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/FileComment.md +13 -9
- 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/Bundle.js +37 -15
- package/lib/models/RemoteServer.js +12 -0
- package/lib/models/Site.js +6 -0
- package/package.json +1 -1
- package/src/models/AccountLineItem.js +2 -2
- package/src/models/App.js +1 -1
- package/src/models/Automation.js +2 -2
- package/src/models/Bundle.js +16 -0
- package/src/models/FileComment.js +1 -1
- package/src/models/FormField.js +1 -1
- package/src/models/FormFieldSet.js +2 -2
- package/src/models/Group.js +3 -3
- package/src/models/Invoice.js +2 -2
- package/src/models/Message.js +1 -1
- package/src/models/MessageComment.js +1 -1
- package/src/models/Notification.js +2 -2
- package/src/models/Payment.js +2 -2
- package/src/models/RemoteServer.js +16 -0
- package/src/models/SettingsChange.js +1 -1
- package/src/models/Site.js +8 -0
- package/src/models/Status.js +1 -1
@@ -40,8 +40,8 @@
|
|
40
40
|
* `path` (string): Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
41
41
|
* `group_id` (int64): Notification group id
|
42
42
|
* `group_name` (string): Group name if applicable
|
43
|
-
* `triggering_group_ids` (
|
44
|
-
* `triggering_user_ids` (
|
43
|
+
* `triggering_group_ids` (array): Only notify on actions made by a member of one of the specified groups
|
44
|
+
* `triggering_user_ids` (array): Only notify on actions made one of the specified users
|
45
45
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
46
46
|
* `notify_user_actions` (boolean): Trigger notification on notification user actions?
|
47
47
|
* `notify_on_copy` (boolean): Triggers notification when copying files to this path
|
package/docs/models/Payment.md
CHANGED
@@ -10,25 +10,29 @@
|
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
|
-
"invoice_line_items":
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
"invoice_line_items": [
|
14
|
+
{
|
15
|
+
"amount": 1.0,
|
16
|
+
"created_at": "2000-01-01T01:00:00Z",
|
17
|
+
"description": "Service from 2019-01-01 through 2019-12-31",
|
18
|
+
"type": "invoice",
|
19
|
+
"service_end_at": "2000-01-01T01:00:00Z",
|
20
|
+
"service_start_at": "2000-01-01T01:00:00Z",
|
21
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
22
|
+
"plan": "Premier",
|
23
|
+
"site": "My site"
|
24
|
+
}
|
25
|
+
],
|
24
26
|
"method": "paypal",
|
25
|
-
"payment_line_items":
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
"payment_line_items": [
|
28
|
+
{
|
29
|
+
"amount": 1.0,
|
30
|
+
"created_at": "2000-01-01T01:00:00Z",
|
31
|
+
"invoice_id": 1,
|
32
|
+
"payment_id": 1,
|
33
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
34
|
+
}
|
35
|
+
],
|
32
36
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
33
37
|
"payment_type": "",
|
34
38
|
"site_name": "My Site",
|
@@ -43,9 +47,9 @@
|
|
43
47
|
* `created_at` (date-time): Line item created at
|
44
48
|
* `currency` (string): Line item currency
|
45
49
|
* `download_uri` (string): Line item download uri
|
46
|
-
* `invoice_line_items` (
|
50
|
+
* `invoice_line_items` (array): Associated invoice line items
|
47
51
|
* `method` (string): Line item payment method
|
48
|
-
* `payment_line_items` (
|
52
|
+
* `payment_line_items` (array): Associated payment line items
|
49
53
|
* `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
|
50
54
|
* `payment_type` (string): Type of payment if applicable
|
51
55
|
* `site_name` (string): Site name this line item is for
|
@@ -12,6 +12,8 @@
|
|
12
12
|
"name": "My Remote server",
|
13
13
|
"port": 1,
|
14
14
|
"max_connections": 1,
|
15
|
+
"pin_to_site_region": true,
|
16
|
+
"pinned_region": "us-east-1",
|
15
17
|
"s3_bucket": "my-bucket",
|
16
18
|
"s3_region": "us-east-1",
|
17
19
|
"aws_access_key": "",
|
@@ -56,6 +58,8 @@
|
|
56
58
|
* `name` (string): Internal name for your reference
|
57
59
|
* `port` (int64): Port for remote server. Not needed for S3.
|
58
60
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
61
|
+
* `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
|
62
|
+
* `pinned_region` (string): If set, all communciations with this remote server are made through the provided region.
|
59
63
|
* `s3_bucket` (string): S3 bucket name
|
60
64
|
* `s3_region` (string): S3 region
|
61
65
|
* `aws_access_key` (string): AWS Access Key.
|
@@ -143,6 +147,7 @@ await RemoteServer.create({
|
|
143
147
|
'hostname': "remote-server.com",
|
144
148
|
'name': "My Remote server",
|
145
149
|
'max_connections': 1,
|
150
|
+
'pin_to_site_region': true,
|
146
151
|
'port': 1,
|
147
152
|
's3_bucket': "my-bucket",
|
148
153
|
's3_region': "us-east-1",
|
@@ -195,6 +200,7 @@ await RemoteServer.create({
|
|
195
200
|
* `hostname` (string): Hostname or IP address
|
196
201
|
* `name` (string): Internal name for your reference
|
197
202
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
203
|
+
* `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
|
198
204
|
* `port` (int64): Port for remote server. Not needed for S3.
|
199
205
|
* `s3_bucket` (string): S3 bucket name
|
200
206
|
* `s3_region` (string): S3 region
|
@@ -238,6 +244,7 @@ await remote_server.update({
|
|
238
244
|
'hostname': "remote-server.com",
|
239
245
|
'name': "My Remote server",
|
240
246
|
'max_connections': 1,
|
247
|
+
'pin_to_site_region': true,
|
241
248
|
'port': 1,
|
242
249
|
's3_bucket': "my-bucket",
|
243
250
|
's3_region': "us-east-1",
|
@@ -290,6 +297,7 @@ await remote_server.update({
|
|
290
297
|
* `hostname` (string): Hostname or IP address
|
291
298
|
* `name` (string): Internal name for your reference
|
292
299
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
300
|
+
* `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
|
293
301
|
* `port` (int64): Port for remote server. Not needed for S3.
|
294
302
|
* `s3_bucket` (string): S3 bucket name
|
295
303
|
* `s3_region` (string): S3 region
|
@@ -333,6 +341,8 @@ await remote_server.update({
|
|
333
341
|
"name": "My Remote server",
|
334
342
|
"port": 1,
|
335
343
|
"max_connections": 1,
|
344
|
+
"pin_to_site_region": true,
|
345
|
+
"pinned_region": "us-east-1",
|
336
346
|
"s3_bucket": "my-bucket",
|
337
347
|
"s3_region": "us-east-1",
|
338
348
|
"aws_access_key": "",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
}
|
15
15
|
```
|
16
16
|
|
17
|
-
* `changes` (
|
17
|
+
* `changes` (array): Markdown-formatted change messages.
|
18
18
|
* `created_at` (date-time): The time this change was made
|
19
19
|
* `user_id` (int64): The user id responsible for this change
|
20
20
|
* `user_is_files_support` (boolean): true if this change was performed by Files.com support.
|
package/docs/models/Site.md
CHANGED
@@ -112,6 +112,7 @@
|
|
112
112
|
"password_requirements_apply_to_bundles": true,
|
113
113
|
"password_validity_days": 1,
|
114
114
|
"phone": "555-555-5555",
|
115
|
+
"pin_all_remote_servers_to_site_region": true,
|
115
116
|
"require_2fa": true,
|
116
117
|
"require_2fa_stop_time": "2000-01-01T01:00:00Z",
|
117
118
|
"require_2fa_user_type": "`site_admins`",
|
@@ -218,6 +219,7 @@
|
|
218
219
|
"user_lockout_tries": 1,
|
219
220
|
"user_lockout_within": 6,
|
220
221
|
"user_requests_enabled": true,
|
222
|
+
"user_requests_notify_admins": true,
|
221
223
|
"welcome_custom_text": "Welcome to my site!",
|
222
224
|
"welcome_email_cc": "",
|
223
225
|
"welcome_email_subject": "",
|
@@ -318,6 +320,7 @@
|
|
318
320
|
* `password_requirements_apply_to_bundles` (boolean): Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
|
319
321
|
* `password_validity_days` (int64): Number of days password is valid
|
320
322
|
* `phone` (string): Site phone number
|
323
|
+
* `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
321
324
|
* `require_2fa` (boolean): Require two-factor authentication for all users?
|
322
325
|
* `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
|
323
326
|
* `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
@@ -350,6 +353,7 @@
|
|
350
353
|
* `user_lockout_tries` (int64): Number of login tries within `user_lockout_within` hours before users are locked out
|
351
354
|
* `user_lockout_within` (int64): Number of hours for user lockout window
|
352
355
|
* `user_requests_enabled` (boolean): Enable User Requests feature
|
356
|
+
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
353
357
|
* `welcome_custom_text` (string): Custom text send in user welcome email
|
354
358
|
* `welcome_email_cc` (email): Include this email in welcome emails if enabled
|
355
359
|
* `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
|
@@ -407,6 +411,7 @@ await Site.update({
|
|
407
411
|
'folder_permissions_groups_only': true,
|
408
412
|
'welcome_screen': "user_controlled",
|
409
413
|
'office_integration_available': true,
|
414
|
+
'pin_all_remote_servers_to_site_region': true,
|
410
415
|
'session_expiry': 1.0,
|
411
416
|
'ssl_required': true,
|
412
417
|
'tls_disabled': true,
|
@@ -442,6 +447,7 @@ await Site.update({
|
|
442
447
|
'non_sso_users_allowed': true,
|
443
448
|
'sharing_enabled': true,
|
444
449
|
'user_requests_enabled': true,
|
450
|
+
'user_requests_notify_admins': true,
|
445
451
|
'ftp_enabled': true,
|
446
452
|
'sftp_enabled': true,
|
447
453
|
'allowed_2fa_method_sms': true,
|
@@ -516,6 +522,7 @@ await Site.update({
|
|
516
522
|
* `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
|
517
523
|
* `welcome_screen` (string): Does the welcome screen appear?
|
518
524
|
* `office_integration_available` (boolean): Allow users to use Office for the web?
|
525
|
+
* `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
519
526
|
* `session_expiry` (double): Session expiry in hours
|
520
527
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
521
528
|
* `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
|
@@ -552,6 +559,7 @@ await Site.update({
|
|
552
559
|
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
553
560
|
* `sharing_enabled` (boolean): Allow bundle creation
|
554
561
|
* `user_requests_enabled` (boolean): Enable User Requests feature
|
562
|
+
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
555
563
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
556
564
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
557
565
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
package/docs/models/Status.md
CHANGED
@@ -8,14 +8,16 @@
|
|
8
8
|
"message": "",
|
9
9
|
"status": "",
|
10
10
|
"data": "",
|
11
|
-
"errors":
|
12
|
-
|
11
|
+
"errors": [
|
12
|
+
{
|
13
|
+
"fields": [
|
13
14
|
|
14
|
-
|
15
|
-
|
15
|
+
],
|
16
|
+
"messages": [
|
16
17
|
|
17
|
-
|
18
|
-
|
18
|
+
]
|
19
|
+
}
|
20
|
+
],
|
19
21
|
"clickwrap_id": 1,
|
20
22
|
"clickwrap_body": ""
|
21
23
|
}
|
@@ -25,6 +27,6 @@
|
|
25
27
|
* `message` (string): Error message
|
26
28
|
* `status` (string): Status message
|
27
29
|
* `data` (Auto): Additional data
|
28
|
-
* `errors` (
|
30
|
+
* `errors` (array): A list of api errors
|
29
31
|
* `clickwrap_id` (int64): Required Clickwrap id
|
30
32
|
* `clickwrap_body` (string): Required Clickwrap body
|
package/lib/models/Bundle.js
CHANGED
@@ -73,6 +73,12 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
73
73
|
(0, _defineProperty2.default)(this, "setPasswordProtected", function (value) {
|
74
74
|
_this.attributes.password_protected = value;
|
75
75
|
});
|
76
|
+
(0, _defineProperty2.default)(this, "getPermissions", function () {
|
77
|
+
return _this.attributes.permissions;
|
78
|
+
});
|
79
|
+
(0, _defineProperty2.default)(this, "setPermissions", function (value) {
|
80
|
+
_this.attributes.permissions = value;
|
81
|
+
});
|
76
82
|
(0, _defineProperty2.default)(this, "getPreviewOnly", function () {
|
77
83
|
return _this.attributes.preview_only;
|
78
84
|
});
|
@@ -428,32 +434,40 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
428
434
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(note)));
|
429
435
|
|
430
436
|
case 28:
|
437
|
+
if (!(params['permissions'] && !(0, _utils.isString)(params['permissions']))) {
|
438
|
+
_context2.next = 30;
|
439
|
+
break;
|
440
|
+
}
|
441
|
+
|
442
|
+
throw new errors.InvalidParameterError("Bad parameter: permissions must be of type String, received ".concat((0, _utils.getType)(permissions)));
|
443
|
+
|
444
|
+
case 30:
|
431
445
|
if (params['id']) {
|
432
|
-
_context2.next =
|
446
|
+
_context2.next = 36;
|
433
447
|
break;
|
434
448
|
}
|
435
449
|
|
436
450
|
if (!_this.attributes.id) {
|
437
|
-
_context2.next =
|
451
|
+
_context2.next = 35;
|
438
452
|
break;
|
439
453
|
}
|
440
454
|
|
441
455
|
params['id'] = _this.id;
|
442
|
-
_context2.next =
|
456
|
+
_context2.next = 36;
|
443
457
|
break;
|
444
458
|
|
445
|
-
case
|
459
|
+
case 35:
|
446
460
|
throw new errors.MissingParameterError('Parameter missing: id');
|
447
461
|
|
448
|
-
case
|
449
|
-
_context2.next =
|
462
|
+
case 36:
|
463
|
+
_context2.next = 38;
|
450
464
|
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
451
465
|
|
452
|
-
case
|
466
|
+
case 38:
|
453
467
|
response = _context2.sent;
|
454
468
|
return _context2.abrupt("return", new Bundle(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
455
469
|
|
456
|
-
case
|
470
|
+
case 40:
|
457
471
|
case "end":
|
458
472
|
return _context2.stop();
|
459
473
|
}
|
@@ -769,30 +783,38 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
769
783
|
throw new errors.InvalidParameterError("Bad parameter: code must be of type String, received ".concat((0, _utils.getType)(params['code'])));
|
770
784
|
|
771
785
|
case 22:
|
772
|
-
if (!(params['
|
786
|
+
if (!(params['permissions'] && !(0, _utils.isString)(params['permissions']))) {
|
773
787
|
_context6.next = 24;
|
774
788
|
break;
|
775
789
|
}
|
776
790
|
|
777
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
791
|
+
throw new errors.InvalidParameterError("Bad parameter: permissions must be of type String, received ".concat((0, _utils.getType)(params['permissions'])));
|
778
792
|
|
779
793
|
case 24:
|
780
|
-
if (!(params['
|
794
|
+
if (!(params['clickwrap_id'] && !(0, _utils.isInt)(params['clickwrap_id']))) {
|
781
795
|
_context6.next = 26;
|
782
796
|
break;
|
783
797
|
}
|
784
798
|
|
785
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
799
|
+
throw new errors.InvalidParameterError("Bad parameter: clickwrap_id must be of type Int, received ".concat((0, _utils.getType)(params['clickwrap_id'])));
|
786
800
|
|
787
801
|
case 26:
|
788
|
-
|
789
|
-
|
802
|
+
if (!(params['inbox_id'] && !(0, _utils.isInt)(params['inbox_id']))) {
|
803
|
+
_context6.next = 28;
|
804
|
+
break;
|
805
|
+
}
|
806
|
+
|
807
|
+
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params['inbox_id'])));
|
790
808
|
|
791
809
|
case 28:
|
810
|
+
_context6.next = 30;
|
811
|
+
return _Api.default.sendRequest("/bundles", 'POST', params, options);
|
812
|
+
|
813
|
+
case 30:
|
792
814
|
response = _context6.sent;
|
793
815
|
return _context6.abrupt("return", new Bundle(response === null || response === void 0 ? void 0 : response.data, options));
|
794
816
|
|
795
|
-
case
|
817
|
+
case 32:
|
796
818
|
case "end":
|
797
819
|
return _context6.stop();
|
798
820
|
}
|
@@ -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
|
});
|
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
|
});
|
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
|
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/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 => {
|
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
|
|
@@ -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) {
|
@@ -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/FormField.js
CHANGED
@@ -38,7 +38,7 @@ class FormField {
|
|
38
38
|
// string # Type of Field
|
39
39
|
getFieldType = () => this.attributes.field_type
|
40
40
|
|
41
|
-
//
|
41
|
+
// array # Options to display for radio and dropdown
|
42
42
|
getOptionsForSelect = () => this.attributes.options_for_select
|
43
43
|
|
44
44
|
// string # Default option for radio and dropdown
|
@@ -37,14 +37,14 @@ class FormFieldSet {
|
|
37
37
|
this.attributes.title = value
|
38
38
|
}
|
39
39
|
|
40
|
-
//
|
40
|
+
// array # Layout of the form
|
41
41
|
getFormLayout = () => this.attributes.form_layout
|
42
42
|
|
43
43
|
setFormLayout = value => {
|
44
44
|
this.attributes.form_layout = value
|
45
45
|
}
|
46
46
|
|
47
|
-
//
|
47
|
+
// array # Associated form fields
|
48
48
|
getFormFields = () => this.attributes.form_fields
|
49
49
|
|
50
50
|
setFormFields = value => {
|
package/src/models/Group.js
CHANGED
@@ -37,7 +37,7 @@ class Group {
|
|
37
37
|
this.attributes.name = value
|
38
38
|
}
|
39
39
|
|
40
|
-
// string #
|
40
|
+
// string # Comma-delimited list of user IDs who are group administrators (separated by commas)
|
41
41
|
getAdminIds = () => this.attributes.admin_ids
|
42
42
|
|
43
43
|
setAdminIds = value => {
|
@@ -51,14 +51,14 @@ class Group {
|
|
51
51
|
this.attributes.notes = value
|
52
52
|
}
|
53
53
|
|
54
|
-
//
|
54
|
+
// string # Comma-delimited list of user IDs who belong to this group (separated by commas)
|
55
55
|
getUserIds = () => this.attributes.user_ids
|
56
56
|
|
57
57
|
setUserIds = value => {
|
58
58
|
this.attributes.user_ids = value
|
59
59
|
}
|
60
60
|
|
61
|
-
//
|
61
|
+
// string # Comma-delimited list of usernames who belong to this group (separated by commas)
|
62
62
|
getUsernames = () => this.attributes.usernames
|
63
63
|
|
64
64
|
setUsernames = value => {
|
package/src/models/Invoice.js
CHANGED
@@ -41,13 +41,13 @@ class Invoice {
|
|
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
|
package/src/models/Message.js
CHANGED
@@ -51,14 +51,14 @@ class Notification {
|
|
51
51
|
this.attributes.group_name = value
|
52
52
|
}
|
53
53
|
|
54
|
-
//
|
54
|
+
// array # Only notify on actions made by a member of one of the specified groups
|
55
55
|
getTriggeringGroupIds = () => this.attributes.triggering_group_ids
|
56
56
|
|
57
57
|
setTriggeringGroupIds = value => {
|
58
58
|
this.attributes.triggering_group_ids = value
|
59
59
|
}
|
60
60
|
|
61
|
-
//
|
61
|
+
// array # Only notify on actions made one of the specified users
|
62
62
|
getTriggeringUserIds = () => this.attributes.triggering_user_ids
|
63
63
|
|
64
64
|
setTriggeringUserIds = value => {
|
package/src/models/Payment.js
CHANGED
@@ -41,13 +41,13 @@ class Payment {
|
|
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
|