files.com 1.2.138 → 1.2.139
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Automation.md +1 -4
- package/docs/models/Site.md +8 -4
- package/lib/Files.js +1 -1
- package/lib/models/Automation.js +0 -1
- package/lib/models/Site.js +90 -79
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Automation.js +0 -1
- package/src/models/Site.js +12 -4
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.139
|
@@ -103,9 +103,7 @@
|
|
103
103
|
## List Automations
|
104
104
|
|
105
105
|
```
|
106
|
-
await Automation.list
|
107
|
-
'with_deleted': true,
|
108
|
-
})
|
106
|
+
await Automation.list
|
109
107
|
```
|
110
108
|
|
111
109
|
|
@@ -119,7 +117,6 @@ await Automation.list({
|
|
119
117
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
120
118
|
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
|
121
119
|
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
|
122
|
-
* `with_deleted` (boolean): Set to true to include deleted automations in the results.
|
123
120
|
|
124
121
|
---
|
125
122
|
|
package/docs/models/Site.md
CHANGED
@@ -56,6 +56,7 @@
|
|
56
56
|
"dav_enabled": true,
|
57
57
|
"dav_user_root_enabled": true,
|
58
58
|
"days_to_retain_backups": 30,
|
59
|
+
"document_edits_in_bundle_allowed": "example",
|
59
60
|
"default_time_zone": "Pacific Time (US & Canada)",
|
60
61
|
"desktop_app": true,
|
61
62
|
"desktop_app_session_ip_pinning": true,
|
@@ -329,6 +330,7 @@
|
|
329
330
|
* `dav_enabled` (boolean): Is WebDAV enabled?
|
330
331
|
* `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
|
331
332
|
* `days_to_retain_backups` (int64): Number of days to keep deleted files
|
333
|
+
* `document_edits_in_bundle_allowed` (string): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
332
334
|
* `default_time_zone` (string): Site default time zone
|
333
335
|
* `desktop_app` (boolean): Is the desktop app enabled?
|
334
336
|
* `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
|
@@ -382,8 +384,8 @@
|
|
382
384
|
* `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
|
383
385
|
* `next_billing_amount` (double): Next billing amount
|
384
386
|
* `next_billing_date` (string): Next billing date
|
385
|
-
* `office_integration_available` (boolean):
|
386
|
-
* `office_integration_type` (string):
|
387
|
+
* `office_integration_available` (boolean): If true, allows users to use a document editing integration.
|
388
|
+
* `office_integration_type` (string): Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
|
387
389
|
* `oncehub_link` (string): Link to scheduling a meeting with our Sales team
|
388
390
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
389
391
|
* `overdue` (boolean): Is this site's billing overdue?
|
@@ -543,6 +545,7 @@ await Site.update({
|
|
543
545
|
'bundle_registration_notifications': "never",
|
544
546
|
'bundle_activity_notifications': "never",
|
545
547
|
'bundle_upload_receipt_notifications': "never",
|
548
|
+
'document_edits_in_bundle_allowed': "example",
|
546
549
|
'password_requirements_apply_to_bundles': true,
|
547
550
|
'prevent_root_permissions_for_non_site_admins': true,
|
548
551
|
'opt_out_global': true,
|
@@ -649,8 +652,8 @@ await Site.update({
|
|
649
652
|
* `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
|
650
653
|
* `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.
|
651
654
|
* `welcome_screen` (string): Does the welcome screen appear?
|
652
|
-
* `office_integration_available` (boolean):
|
653
|
-
* `office_integration_type` (string):
|
655
|
+
* `office_integration_available` (boolean): If true, allows users to use a document editing integration.
|
656
|
+
* `office_integration_type` (string): Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
|
654
657
|
* `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.
|
655
658
|
* `motd_text` (string): A message to show users when they connect via FTP or SFTP.
|
656
659
|
* `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
|
@@ -694,6 +697,7 @@ await Site.update({
|
|
694
697
|
* `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
|
695
698
|
* `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
|
696
699
|
* `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
|
700
|
+
* `document_edits_in_bundle_allowed` (string): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
697
701
|
* `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?
|
698
702
|
* `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
699
703
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.2.
|
14
|
+
var version = '1.2.139';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/lib/models/Automation.js
CHANGED
@@ -623,7 +623,6 @@ _Automation = Automation;
|
|
623
623
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
624
624
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
|
625
625
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
|
626
|
-
// with_deleted - boolean - Set to true to include deleted automations in the results.
|
627
626
|
(0, _defineProperty2.default)(Automation, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
628
627
|
var _response$data;
|
629
628
|
var params,
|
package/lib/models/Site.js
CHANGED
@@ -205,6 +205,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
205
205
|
(0, _defineProperty2.default)(this, "getDaysToRetainBackups", function () {
|
206
206
|
return _this.attributes.days_to_retain_backups;
|
207
207
|
});
|
208
|
+
// string # If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
209
|
+
(0, _defineProperty2.default)(this, "getDocumentEditsInBundleAllowed", function () {
|
210
|
+
return _this.attributes.document_edits_in_bundle_allowed;
|
211
|
+
});
|
208
212
|
// string # Site default time zone
|
209
213
|
(0, _defineProperty2.default)(this, "getDefaultTimeZone", function () {
|
210
214
|
return _this.attributes.default_time_zone;
|
@@ -417,11 +421,11 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
417
421
|
(0, _defineProperty2.default)(this, "getNextBillingDate", function () {
|
418
422
|
return _this.attributes.next_billing_date;
|
419
423
|
});
|
420
|
-
// boolean #
|
424
|
+
// boolean # If true, allows users to use a document editing integration.
|
421
425
|
(0, _defineProperty2.default)(this, "getOfficeIntegrationAvailable", function () {
|
422
426
|
return _this.attributes.office_integration_available;
|
423
427
|
});
|
424
|
-
// string #
|
428
|
+
// string # Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
|
425
429
|
(0, _defineProperty2.default)(this, "getOfficeIntegrationType", function () {
|
426
430
|
return _this.attributes.office_integration_type;
|
427
431
|
});
|
@@ -759,8 +763,8 @@ _Site = Site;
|
|
759
763
|
// mobile_app_session_lifetime - int64 - Mobile app session lifetime (in hours)
|
760
764
|
// 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.
|
761
765
|
// welcome_screen - string - Does the welcome screen appear?
|
762
|
-
// office_integration_available - boolean -
|
763
|
-
// office_integration_type - string -
|
766
|
+
// office_integration_available - boolean - If true, allows users to use a document editing integration.
|
767
|
+
// office_integration_type - string - Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
|
764
768
|
// 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.
|
765
769
|
// motd_text - string - A message to show users when they connect via FTP or SFTP.
|
766
770
|
// motd_use_for_ftp - boolean - Show message to users connecting via FTP
|
@@ -804,6 +808,7 @@ _Site = Site;
|
|
804
808
|
// bundle_registration_notifications - string - Do Bundle owners receive registration notification?
|
805
809
|
// bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
|
806
810
|
// bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
|
811
|
+
// document_edits_in_bundle_allowed - string - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
807
812
|
// 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?
|
808
813
|
// prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
809
814
|
// opt_out_global - boolean - Use servers in the USA only?
|
@@ -1089,228 +1094,234 @@ _Site = Site;
|
|
1089
1094
|
}
|
1090
1095
|
throw new errors.InvalidParameterError("Bad parameter: bundle_upload_receipt_notifications must be of type String, received ".concat((0, _utils.getType)(params.bundle_upload_receipt_notifications)));
|
1091
1096
|
case 66:
|
1092
|
-
if (!(params.
|
1097
|
+
if (!(params.document_edits_in_bundle_allowed && !(0, _utils.isString)(params.document_edits_in_bundle_allowed))) {
|
1093
1098
|
_context3.next = 68;
|
1094
1099
|
break;
|
1095
1100
|
}
|
1096
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1101
|
+
throw new errors.InvalidParameterError("Bad parameter: document_edits_in_bundle_allowed must be of type String, received ".concat((0, _utils.getType)(params.document_edits_in_bundle_allowed)));
|
1097
1102
|
case 68:
|
1098
|
-
if (!(params.
|
1103
|
+
if (!(params.disable_users_from_inactivity_period_days && !(0, _utils.isInt)(params.disable_users_from_inactivity_period_days))) {
|
1099
1104
|
_context3.next = 70;
|
1100
1105
|
break;
|
1101
1106
|
}
|
1102
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1107
|
+
throw new errors.InvalidParameterError("Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ".concat((0, _utils.getType)(params.disable_users_from_inactivity_period_days)));
|
1103
1108
|
case 70:
|
1104
|
-
if (!(params.
|
1109
|
+
if (!(params.sftp_host_key_type && !(0, _utils.isString)(params.sftp_host_key_type))) {
|
1105
1110
|
_context3.next = 72;
|
1106
1111
|
break;
|
1107
1112
|
}
|
1108
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1113
|
+
throw new errors.InvalidParameterError("Bad parameter: sftp_host_key_type must be of type String, received ".concat((0, _utils.getType)(params.sftp_host_key_type)));
|
1109
1114
|
case 72:
|
1110
|
-
if (!(params.
|
1115
|
+
if (!(params.active_sftp_host_key_id && !(0, _utils.isInt)(params.active_sftp_host_key_id))) {
|
1111
1116
|
_context3.next = 74;
|
1112
1117
|
break;
|
1113
1118
|
}
|
1114
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1119
|
+
throw new errors.InvalidParameterError("Bad parameter: active_sftp_host_key_id must be of type Int, received ".concat((0, _utils.getType)(params.active_sftp_host_key_id)));
|
1115
1120
|
case 74:
|
1116
|
-
if (!(params.
|
1121
|
+
if (!(params.bundle_recipient_blacklist_domains && !(0, _utils.isArray)(params.bundle_recipient_blacklist_domains))) {
|
1117
1122
|
_context3.next = 76;
|
1118
1123
|
break;
|
1119
1124
|
}
|
1120
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1125
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_recipient_blacklist_domains must be of type Array, received ".concat((0, _utils.getType)(params.bundle_recipient_blacklist_domains)));
|
1121
1126
|
case 76:
|
1122
|
-
if (!(params.
|
1127
|
+
if (!(params.require_2fa_user_type && !(0, _utils.isString)(params.require_2fa_user_type))) {
|
1123
1128
|
_context3.next = 78;
|
1124
1129
|
break;
|
1125
1130
|
}
|
1126
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1131
|
+
throw new errors.InvalidParameterError("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(params.require_2fa_user_type)));
|
1127
1132
|
case 78:
|
1128
|
-
if (!(params.
|
1133
|
+
if (!(params.color2_top && !(0, _utils.isString)(params.color2_top))) {
|
1129
1134
|
_context3.next = 80;
|
1130
1135
|
break;
|
1131
1136
|
}
|
1132
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1137
|
+
throw new errors.InvalidParameterError("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(params.color2_top)));
|
1133
1138
|
case 80:
|
1134
|
-
if (!(params.
|
1139
|
+
if (!(params.color2_left && !(0, _utils.isString)(params.color2_left))) {
|
1135
1140
|
_context3.next = 82;
|
1136
1141
|
break;
|
1137
1142
|
}
|
1138
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1143
|
+
throw new errors.InvalidParameterError("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(params.color2_left)));
|
1139
1144
|
case 82:
|
1140
|
-
if (!(params.
|
1145
|
+
if (!(params.color2_link && !(0, _utils.isString)(params.color2_link))) {
|
1141
1146
|
_context3.next = 84;
|
1142
1147
|
break;
|
1143
1148
|
}
|
1144
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1149
|
+
throw new errors.InvalidParameterError("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(params.color2_link)));
|
1145
1150
|
case 84:
|
1146
|
-
if (!(params.
|
1151
|
+
if (!(params.color2_text && !(0, _utils.isString)(params.color2_text))) {
|
1147
1152
|
_context3.next = 86;
|
1148
1153
|
break;
|
1149
1154
|
}
|
1150
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1155
|
+
throw new errors.InvalidParameterError("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(params.color2_text)));
|
1151
1156
|
case 86:
|
1152
|
-
if (!(params.
|
1157
|
+
if (!(params.color2_top_text && !(0, _utils.isString)(params.color2_top_text))) {
|
1153
1158
|
_context3.next = 88;
|
1154
1159
|
break;
|
1155
1160
|
}
|
1156
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1161
|
+
throw new errors.InvalidParameterError("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(params.color2_top_text)));
|
1157
1162
|
case 88:
|
1158
|
-
if (!(params.
|
1163
|
+
if (!(params.site_header && !(0, _utils.isString)(params.site_header))) {
|
1159
1164
|
_context3.next = 90;
|
1160
1165
|
break;
|
1161
1166
|
}
|
1162
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1167
|
+
throw new errors.InvalidParameterError("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(params.site_header)));
|
1163
1168
|
case 90:
|
1164
|
-
if (!(params.
|
1169
|
+
if (!(params.site_footer && !(0, _utils.isString)(params.site_footer))) {
|
1165
1170
|
_context3.next = 92;
|
1166
1171
|
break;
|
1167
1172
|
}
|
1168
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1173
|
+
throw new errors.InvalidParameterError("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(params.site_footer)));
|
1169
1174
|
case 92:
|
1170
|
-
if (!(params.
|
1175
|
+
if (!(params.login_help_text && !(0, _utils.isString)(params.login_help_text))) {
|
1171
1176
|
_context3.next = 94;
|
1172
1177
|
break;
|
1173
1178
|
}
|
1174
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1179
|
+
throw new errors.InvalidParameterError("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(params.login_help_text)));
|
1175
1180
|
case 94:
|
1176
|
-
if (!(params.
|
1181
|
+
if (!(params.smtp_address && !(0, _utils.isString)(params.smtp_address))) {
|
1177
1182
|
_context3.next = 96;
|
1178
1183
|
break;
|
1179
1184
|
}
|
1180
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1185
|
+
throw new errors.InvalidParameterError("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(params.smtp_address)));
|
1181
1186
|
case 96:
|
1182
|
-
if (!(params.
|
1187
|
+
if (!(params.smtp_authentication && !(0, _utils.isString)(params.smtp_authentication))) {
|
1183
1188
|
_context3.next = 98;
|
1184
1189
|
break;
|
1185
1190
|
}
|
1186
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1191
|
+
throw new errors.InvalidParameterError("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(params.smtp_authentication)));
|
1187
1192
|
case 98:
|
1188
|
-
if (!(params.
|
1193
|
+
if (!(params.smtp_from && !(0, _utils.isString)(params.smtp_from))) {
|
1189
1194
|
_context3.next = 100;
|
1190
1195
|
break;
|
1191
1196
|
}
|
1192
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1197
|
+
throw new errors.InvalidParameterError("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(params.smtp_from)));
|
1193
1198
|
case 100:
|
1194
|
-
if (!(params.
|
1199
|
+
if (!(params.smtp_username && !(0, _utils.isString)(params.smtp_username))) {
|
1195
1200
|
_context3.next = 102;
|
1196
1201
|
break;
|
1197
1202
|
}
|
1198
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1203
|
+
throw new errors.InvalidParameterError("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(params.smtp_username)));
|
1199
1204
|
case 102:
|
1200
|
-
if (!(params.
|
1205
|
+
if (!(params.smtp_port && !(0, _utils.isInt)(params.smtp_port))) {
|
1201
1206
|
_context3.next = 104;
|
1202
1207
|
break;
|
1203
1208
|
}
|
1204
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1209
|
+
throw new errors.InvalidParameterError("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(params.smtp_port)));
|
1205
1210
|
case 104:
|
1206
|
-
if (!(params.
|
1211
|
+
if (!(params.ldap_type && !(0, _utils.isString)(params.ldap_type))) {
|
1207
1212
|
_context3.next = 106;
|
1208
1213
|
break;
|
1209
1214
|
}
|
1210
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1215
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(params.ldap_type)));
|
1211
1216
|
case 106:
|
1212
|
-
if (!(params.
|
1217
|
+
if (!(params.ldap_host && !(0, _utils.isString)(params.ldap_host))) {
|
1213
1218
|
_context3.next = 108;
|
1214
1219
|
break;
|
1215
1220
|
}
|
1216
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1221
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(params.ldap_host)));
|
1217
1222
|
case 108:
|
1218
|
-
if (!(params.
|
1223
|
+
if (!(params.ldap_host_2 && !(0, _utils.isString)(params.ldap_host_2))) {
|
1219
1224
|
_context3.next = 110;
|
1220
1225
|
break;
|
1221
1226
|
}
|
1222
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1227
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_2)));
|
1223
1228
|
case 110:
|
1224
|
-
if (!(params.
|
1229
|
+
if (!(params.ldap_host_3 && !(0, _utils.isString)(params.ldap_host_3))) {
|
1225
1230
|
_context3.next = 112;
|
1226
1231
|
break;
|
1227
1232
|
}
|
1228
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1233
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_3)));
|
1229
1234
|
case 112:
|
1230
|
-
if (!(params.
|
1235
|
+
if (!(params.ldap_port && !(0, _utils.isInt)(params.ldap_port))) {
|
1231
1236
|
_context3.next = 114;
|
1232
1237
|
break;
|
1233
1238
|
}
|
1234
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1239
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(params.ldap_port)));
|
1235
1240
|
case 114:
|
1236
|
-
if (!(params.
|
1241
|
+
if (!(params.ldap_username && !(0, _utils.isString)(params.ldap_username))) {
|
1237
1242
|
_context3.next = 116;
|
1238
1243
|
break;
|
1239
1244
|
}
|
1240
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1245
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(params.ldap_username)));
|
1241
1246
|
case 116:
|
1242
|
-
if (!(params.
|
1247
|
+
if (!(params.ldap_username_field && !(0, _utils.isString)(params.ldap_username_field))) {
|
1243
1248
|
_context3.next = 118;
|
1244
1249
|
break;
|
1245
1250
|
}
|
1246
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1251
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(params.ldap_username_field)));
|
1247
1252
|
case 118:
|
1248
|
-
if (!(params.
|
1253
|
+
if (!(params.ldap_domain && !(0, _utils.isString)(params.ldap_domain))) {
|
1249
1254
|
_context3.next = 120;
|
1250
1255
|
break;
|
1251
1256
|
}
|
1252
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1257
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(params.ldap_domain)));
|
1253
1258
|
case 120:
|
1254
|
-
if (!(params.
|
1259
|
+
if (!(params.ldap_user_action && !(0, _utils.isString)(params.ldap_user_action))) {
|
1255
1260
|
_context3.next = 122;
|
1256
1261
|
break;
|
1257
1262
|
}
|
1258
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1263
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_action)));
|
1259
1264
|
case 122:
|
1260
|
-
if (!(params.
|
1265
|
+
if (!(params.ldap_group_action && !(0, _utils.isString)(params.ldap_group_action))) {
|
1261
1266
|
_context3.next = 124;
|
1262
1267
|
break;
|
1263
1268
|
}
|
1264
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1269
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_action)));
|
1265
1270
|
case 124:
|
1266
|
-
if (!(params.
|
1271
|
+
if (!(params.ldap_user_include_groups && !(0, _utils.isString)(params.ldap_user_include_groups))) {
|
1267
1272
|
_context3.next = 126;
|
1268
1273
|
break;
|
1269
1274
|
}
|
1270
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1275
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_include_groups)));
|
1271
1276
|
case 126:
|
1272
|
-
if (!(params.
|
1277
|
+
if (!(params.ldap_group_exclusion && !(0, _utils.isString)(params.ldap_group_exclusion))) {
|
1273
1278
|
_context3.next = 128;
|
1274
1279
|
break;
|
1275
1280
|
}
|
1276
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1281
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_exclusion)));
|
1277
1282
|
case 128:
|
1278
|
-
if (!(params.
|
1283
|
+
if (!(params.ldap_group_inclusion && !(0, _utils.isString)(params.ldap_group_inclusion))) {
|
1279
1284
|
_context3.next = 130;
|
1280
1285
|
break;
|
1281
1286
|
}
|
1282
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1287
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_inclusion)));
|
1283
1288
|
case 130:
|
1284
|
-
if (!(params.
|
1289
|
+
if (!(params.ldap_base_dn && !(0, _utils.isString)(params.ldap_base_dn))) {
|
1285
1290
|
_context3.next = 132;
|
1286
1291
|
break;
|
1287
1292
|
}
|
1288
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1293
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(params.ldap_base_dn)));
|
1289
1294
|
case 132:
|
1290
|
-
if (!(params.
|
1295
|
+
if (!(params.ldap_password_change && !(0, _utils.isString)(params.ldap_password_change))) {
|
1291
1296
|
_context3.next = 134;
|
1292
1297
|
break;
|
1293
1298
|
}
|
1294
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1299
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change)));
|
1295
1300
|
case 134:
|
1296
|
-
if (!(params.
|
1301
|
+
if (!(params.ldap_password_change_confirmation && !(0, _utils.isString)(params.ldap_password_change_confirmation))) {
|
1297
1302
|
_context3.next = 136;
|
1298
1303
|
break;
|
1299
1304
|
}
|
1300
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1305
|
+
throw new errors.InvalidParameterError("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change_confirmation)));
|
1301
1306
|
case 136:
|
1302
|
-
if (!(params.
|
1307
|
+
if (!(params.smtp_password && !(0, _utils.isString)(params.smtp_password))) {
|
1303
1308
|
_context3.next = 138;
|
1304
1309
|
break;
|
1305
1310
|
}
|
1306
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
1311
|
+
throw new errors.InvalidParameterError("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(params.smtp_password)));
|
1307
1312
|
case 138:
|
1308
|
-
|
1309
|
-
|
1313
|
+
if (!(params.session_expiry_minutes && !(0, _utils.isInt)(params.session_expiry_minutes))) {
|
1314
|
+
_context3.next = 140;
|
1315
|
+
break;
|
1316
|
+
}
|
1317
|
+
throw new errors.InvalidParameterError("Bad parameter: session_expiry_minutes must be of type Int, received ".concat((0, _utils.getType)(params.session_expiry_minutes)));
|
1310
1318
|
case 140:
|
1319
|
+
_context3.next = 142;
|
1320
|
+
return _Api.default.sendRequest('/site', 'PATCH', params, options);
|
1321
|
+
case 142:
|
1311
1322
|
response = _context3.sent;
|
1312
1323
|
return _context3.abrupt("return", new _Site(response === null || response === void 0 ? void 0 : response.data, options));
|
1313
|
-
case
|
1324
|
+
case 144:
|
1314
1325
|
case "end":
|
1315
1326
|
return _context3.stop();
|
1316
1327
|
}
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Automation.js
CHANGED
@@ -476,7 +476,6 @@ class Automation {
|
|
476
476
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
477
477
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
|
478
478
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
|
479
|
-
// with_deleted - boolean - Set to true to include deleted automations in the results.
|
480
479
|
static list = async (params = {}, options = {}) => {
|
481
480
|
if (params.cursor && !isString(params.cursor)) {
|
482
481
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
|
package/src/models/Site.js
CHANGED
@@ -157,6 +157,9 @@ class Site {
|
|
157
157
|
// int64 # Number of days to keep deleted files
|
158
158
|
getDaysToRetainBackups = () => this.attributes.days_to_retain_backups
|
159
159
|
|
160
|
+
// string # If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
161
|
+
getDocumentEditsInBundleAllowed = () => this.attributes.document_edits_in_bundle_allowed
|
162
|
+
|
160
163
|
// string # Site default time zone
|
161
164
|
getDefaultTimeZone = () => this.attributes.default_time_zone
|
162
165
|
|
@@ -316,10 +319,10 @@ class Site {
|
|
316
319
|
// string # Next billing date
|
317
320
|
getNextBillingDate = () => this.attributes.next_billing_date
|
318
321
|
|
319
|
-
// boolean #
|
322
|
+
// boolean # If true, allows users to use a document editing integration.
|
320
323
|
getOfficeIntegrationAvailable = () => this.attributes.office_integration_available
|
321
324
|
|
322
|
-
// string #
|
325
|
+
// string # Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
|
323
326
|
getOfficeIntegrationType = () => this.attributes.office_integration_type
|
324
327
|
|
325
328
|
// string # Link to scheduling a meeting with our Sales team
|
@@ -552,8 +555,8 @@ class Site {
|
|
552
555
|
// mobile_app_session_lifetime - int64 - Mobile app session lifetime (in hours)
|
553
556
|
// 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.
|
554
557
|
// welcome_screen - string - Does the welcome screen appear?
|
555
|
-
// office_integration_available - boolean -
|
556
|
-
// office_integration_type - string -
|
558
|
+
// office_integration_available - boolean - If true, allows users to use a document editing integration.
|
559
|
+
// office_integration_type - string - Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
|
557
560
|
// 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.
|
558
561
|
// motd_text - string - A message to show users when they connect via FTP or SFTP.
|
559
562
|
// motd_use_for_ftp - boolean - Show message to users connecting via FTP
|
@@ -597,6 +600,7 @@ class Site {
|
|
597
600
|
// bundle_registration_notifications - string - Do Bundle owners receive registration notification?
|
598
601
|
// bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
|
599
602
|
// bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
|
603
|
+
// document_edits_in_bundle_allowed - string - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
600
604
|
// 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?
|
601
605
|
// prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
602
606
|
// opt_out_global - boolean - Use servers in the USA only?
|
@@ -809,6 +813,10 @@ class Site {
|
|
809
813
|
throw new errors.InvalidParameterError(`Bad parameter: bundle_upload_receipt_notifications must be of type String, received ${getType(params.bundle_upload_receipt_notifications)}`)
|
810
814
|
}
|
811
815
|
|
816
|
+
if (params.document_edits_in_bundle_allowed && !isString(params.document_edits_in_bundle_allowed)) {
|
817
|
+
throw new errors.InvalidParameterError(`Bad parameter: document_edits_in_bundle_allowed must be of type String, received ${getType(params.document_edits_in_bundle_allowed)}`)
|
818
|
+
}
|
819
|
+
|
812
820
|
if (params.disable_users_from_inactivity_period_days && !isInt(params.disable_users_from_inactivity_period_days)) {
|
813
821
|
throw new errors.InvalidParameterError(`Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ${getType(params.disable_users_from_inactivity_period_days)}`)
|
814
822
|
}
|