files.com 1.2.253 → 1.2.255
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/Automation.md +7 -0
- package/docs/models/Site.md +1 -5
- package/docs/models/User.md +7 -7
- package/lib/Files.js +1 -1
- package/lib/models/Automation.js +9 -0
- package/lib/models/Site.js +73 -84
- package/lib/models/User.js +7 -7
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Automation.js +9 -0
- package/src/models/Site.js +0 -8
- package/src/models/User.js +6 -6
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.255
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
|
+
"always_serialize_jobs": true,
|
|
8
9
|
"always_overwrite_size_matching_files": true,
|
|
9
10
|
"automation": "create_folder",
|
|
10
11
|
"deleted": true,
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
* `id` (int64): Automation ID
|
|
94
|
+
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
93
95
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
94
96
|
* `automation` (string): Automation type
|
|
95
97
|
* `deleted` (boolean): Indicates if the automation has been deleted.
|
|
@@ -179,6 +181,7 @@ await Automation.create({
|
|
|
179
181
|
'schedule_times_of_day': ["7:30","11:30"],
|
|
180
182
|
'schedule_time_zone': "Eastern Time (US & Canada)",
|
|
181
183
|
'always_overwrite_size_matching_files': true,
|
|
184
|
+
'always_serialize_jobs': true,
|
|
182
185
|
'description': "example",
|
|
183
186
|
'disabled': true,
|
|
184
187
|
'exclude_pattern': "path/to/exclude/*",
|
|
@@ -215,6 +218,7 @@ await Automation.create({
|
|
|
215
218
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
|
216
219
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
|
217
220
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
221
|
+
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
218
222
|
* `description` (string): Description for the this Automation.
|
|
219
223
|
* `disabled` (boolean): If true, this automation will not run.
|
|
220
224
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -269,6 +273,7 @@ await automation.update({
|
|
|
269
273
|
'schedule_times_of_day': ["7:30","11:30"],
|
|
270
274
|
'schedule_time_zone': "Eastern Time (US & Canada)",
|
|
271
275
|
'always_overwrite_size_matching_files': true,
|
|
276
|
+
'always_serialize_jobs': true,
|
|
272
277
|
'description': "example",
|
|
273
278
|
'disabled': true,
|
|
274
279
|
'exclude_pattern': "path/to/exclude/*",
|
|
@@ -305,6 +310,7 @@ await automation.update({
|
|
|
305
310
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
|
306
311
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
|
307
312
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
313
|
+
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
308
314
|
* `description` (string): Description for the this Automation.
|
|
309
315
|
* `disabled` (boolean): If true, this automation will not run.
|
|
310
316
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -328,6 +334,7 @@ await automation.update({
|
|
|
328
334
|
```json
|
|
329
335
|
{
|
|
330
336
|
"id": 1,
|
|
337
|
+
"always_serialize_jobs": true,
|
|
331
338
|
"always_overwrite_size_matching_files": true,
|
|
332
339
|
"automation": "create_folder",
|
|
333
340
|
"deleted": true,
|
package/docs/models/Site.md
CHANGED
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"billable": true,
|
|
230
230
|
"billing_permission": false,
|
|
231
231
|
"bypass_site_allowed_ips": false,
|
|
232
|
-
"
|
|
232
|
+
"bypass_user_lifecycle_rules": false,
|
|
233
233
|
"created_at": "2000-01-01T01:00:00Z",
|
|
234
234
|
"dav_permission": true,
|
|
235
235
|
"disabled": true,
|
|
@@ -299,7 +299,6 @@
|
|
|
299
299
|
"welcome_email_enabled": true,
|
|
300
300
|
"welcome_screen": "user_controlled",
|
|
301
301
|
"windows_mode_ftp": true,
|
|
302
|
-
"disable_users_from_inactivity_period_days": 1,
|
|
303
302
|
"group_admins_can_set_user_password": true
|
|
304
303
|
}
|
|
305
304
|
```
|
|
@@ -473,7 +472,6 @@
|
|
|
473
472
|
* `welcome_email_enabled` (boolean): Will the welcome email be sent to new users?
|
|
474
473
|
* `welcome_screen` (string): Does the welcome screen appear?
|
|
475
474
|
* `windows_mode_ftp` (boolean): Does FTP user Windows emulation mode?
|
|
476
|
-
* `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
477
475
|
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
|
478
476
|
|
|
479
477
|
---
|
|
@@ -583,7 +581,6 @@ await Site.update({
|
|
|
583
581
|
'opt_out_global': false,
|
|
584
582
|
'use_provided_modified_at': false,
|
|
585
583
|
'custom_namespace': false,
|
|
586
|
-
'disable_users_from_inactivity_period_days': 1,
|
|
587
584
|
'non_sso_groups_allowed': false,
|
|
588
585
|
'non_sso_users_allowed': false,
|
|
589
586
|
'sharing_enabled': false,
|
|
@@ -744,7 +741,6 @@ await Site.update({
|
|
|
744
741
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
|
745
742
|
* `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
|
|
746
743
|
* `custom_namespace` (boolean): Is this site using a custom namespace for users?
|
|
747
|
-
* `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
748
744
|
* `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
|
749
745
|
* `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.
|
|
750
746
|
* `sharing_enabled` (boolean): Allow bundle creation
|
package/docs/models/User.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"billable": true,
|
|
19
19
|
"billing_permission": true,
|
|
20
20
|
"bypass_site_allowed_ips": true,
|
|
21
|
-
"
|
|
21
|
+
"bypass_user_lifecycle_rules": true,
|
|
22
22
|
"created_at": "2000-01-01T01:00:00Z",
|
|
23
23
|
"dav_permission": true,
|
|
24
24
|
"disabled": true,
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
* `billable` (boolean): Is this a billable user record?
|
|
88
88
|
* `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
|
|
89
89
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
|
90
|
-
* `
|
|
90
|
+
* `bypass_user_lifecycle_rules` (boolean): Exempt this user from user lifecycle rules?
|
|
91
91
|
* `created_at` (date-time): When this user was created
|
|
92
92
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
93
93
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
@@ -207,7 +207,7 @@ await User.create({
|
|
|
207
207
|
'authenticate_until': "2000-01-01T01:00:00Z",
|
|
208
208
|
'authentication_method': "password",
|
|
209
209
|
'billing_permission': false,
|
|
210
|
-
'
|
|
210
|
+
'bypass_user_lifecycle_rules': false,
|
|
211
211
|
'bypass_site_allowed_ips': false,
|
|
212
212
|
'dav_permission': true,
|
|
213
213
|
'disabled': true,
|
|
@@ -260,7 +260,7 @@ await User.create({
|
|
|
260
260
|
* `authenticate_until` (string): Scheduled Date/Time at which user will be deactivated
|
|
261
261
|
* `authentication_method` (string): How is this user authenticated?
|
|
262
262
|
* `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
|
|
263
|
-
* `
|
|
263
|
+
* `bypass_user_lifecycle_rules` (boolean): Exempt this user from user lifecycle rules?
|
|
264
264
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
|
265
265
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
266
266
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
@@ -354,7 +354,7 @@ await user.update({
|
|
|
354
354
|
'authenticate_until': "2000-01-01T01:00:00Z",
|
|
355
355
|
'authentication_method': "password",
|
|
356
356
|
'billing_permission': false,
|
|
357
|
-
'
|
|
357
|
+
'bypass_user_lifecycle_rules': false,
|
|
358
358
|
'bypass_site_allowed_ips': false,
|
|
359
359
|
'dav_permission': true,
|
|
360
360
|
'disabled': true,
|
|
@@ -407,7 +407,7 @@ await user.update({
|
|
|
407
407
|
* `authenticate_until` (string): Scheduled Date/Time at which user will be deactivated
|
|
408
408
|
* `authentication_method` (string): How is this user authenticated?
|
|
409
409
|
* `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
|
|
410
|
-
* `
|
|
410
|
+
* `bypass_user_lifecycle_rules` (boolean): Exempt this user from user lifecycle rules?
|
|
411
411
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
|
412
412
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
413
413
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
@@ -456,7 +456,7 @@ await user.update({
|
|
|
456
456
|
"billable": true,
|
|
457
457
|
"billing_permission": true,
|
|
458
458
|
"bypass_site_allowed_ips": true,
|
|
459
|
-
"
|
|
459
|
+
"bypass_user_lifecycle_rules": true,
|
|
460
460
|
"created_at": "2000-01-01T01:00:00Z",
|
|
461
461
|
"dav_permission": true,
|
|
462
462
|
"disabled": true,
|
package/lib/Files.js
CHANGED
|
@@ -12,7 +12,7 @@ var apiKey;
|
|
|
12
12
|
var baseUrl = 'https://app.files.com';
|
|
13
13
|
var sessionId = null;
|
|
14
14
|
var language = null;
|
|
15
|
-
var version = '1.2.
|
|
15
|
+
var version = '1.2.255';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
package/lib/models/Automation.js
CHANGED
|
@@ -39,6 +39,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
|
39
39
|
(0, _defineProperty2.default)(this, "setId", function (value) {
|
|
40
40
|
_this.attributes.id = value;
|
|
41
41
|
});
|
|
42
|
+
// boolean # Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
43
|
+
(0, _defineProperty2.default)(this, "getAlwaysSerializeJobs", function () {
|
|
44
|
+
return _this.attributes.always_serialize_jobs;
|
|
45
|
+
});
|
|
46
|
+
(0, _defineProperty2.default)(this, "setAlwaysSerializeJobs", function (value) {
|
|
47
|
+
_this.attributes.always_serialize_jobs = value;
|
|
48
|
+
});
|
|
42
49
|
// boolean # Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
43
50
|
(0, _defineProperty2.default)(this, "getAlwaysOverwriteSizeMatchingFiles", function () {
|
|
44
51
|
return _this.attributes.always_overwrite_size_matching_files;
|
|
@@ -354,6 +361,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
|
354
361
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
|
355
362
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
356
363
|
// always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
364
|
+
// always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
357
365
|
// description - string - Description for the this Automation.
|
|
358
366
|
// disabled - boolean - If true, this automation will not run.
|
|
359
367
|
// exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -771,6 +779,7 @@ _Automation = Automation;
|
|
|
771
779
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
|
772
780
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
773
781
|
// always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
782
|
+
// always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
774
783
|
// description - string - Description for the this Automation.
|
|
775
784
|
// disabled - boolean - If true, this automation will not run.
|
|
776
785
|
// exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
package/lib/models/Site.js
CHANGED
|
@@ -708,10 +708,6 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
|
708
708
|
(0, _defineProperty2.default)(this, "getWindowsModeFtp", function () {
|
|
709
709
|
return _this.attributes.windows_mode_ftp;
|
|
710
710
|
});
|
|
711
|
-
// int64 # If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
712
|
-
(0, _defineProperty2.default)(this, "getDisableUsersFromInactivityPeriodDays", function () {
|
|
713
|
-
return _this.attributes.disable_users_from_inactivity_period_days;
|
|
714
|
-
});
|
|
715
711
|
// boolean # Allow group admins set password authentication method
|
|
716
712
|
(0, _defineProperty2.default)(this, "getGroupAdminsCanSetUserPassword", function () {
|
|
717
713
|
return _this.attributes.group_admins_can_set_user_password;
|
|
@@ -855,7 +851,6 @@ _Site = Site;
|
|
|
855
851
|
// opt_out_global - boolean - Use servers in the USA only?
|
|
856
852
|
// use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
|
857
853
|
// custom_namespace - boolean - Is this site using a custom namespace for users?
|
|
858
|
-
// disable_users_from_inactivity_period_days - int64 - If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
859
854
|
// non_sso_groups_allowed - boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
|
860
855
|
// 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.
|
|
861
856
|
// sharing_enabled - boolean - Allow bundle creation
|
|
@@ -1144,228 +1139,222 @@ _Site = Site;
|
|
|
1144
1139
|
}
|
|
1145
1140
|
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)));
|
|
1146
1141
|
case 33:
|
|
1147
|
-
if (!(params.disable_users_from_inactivity_period_days && !(0, _utils.isInt)(params.disable_users_from_inactivity_period_days))) {
|
|
1148
|
-
_context3.next = 34;
|
|
1149
|
-
break;
|
|
1150
|
-
}
|
|
1151
|
-
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)));
|
|
1152
|
-
case 34:
|
|
1153
1142
|
if (!(params.sftp_host_key_type && !(0, _utils.isString)(params.sftp_host_key_type))) {
|
|
1154
|
-
_context3.next =
|
|
1143
|
+
_context3.next = 34;
|
|
1155
1144
|
break;
|
|
1156
1145
|
}
|
|
1157
1146
|
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)));
|
|
1158
|
-
case
|
|
1147
|
+
case 34:
|
|
1159
1148
|
if (!(params.active_sftp_host_key_id && !(0, _utils.isInt)(params.active_sftp_host_key_id))) {
|
|
1160
|
-
_context3.next =
|
|
1149
|
+
_context3.next = 35;
|
|
1161
1150
|
break;
|
|
1162
1151
|
}
|
|
1163
1152
|
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)));
|
|
1164
|
-
case
|
|
1153
|
+
case 35:
|
|
1165
1154
|
if (!(params.bundle_recipient_blacklist_domains && !(0, _utils.isArray)(params.bundle_recipient_blacklist_domains))) {
|
|
1166
|
-
_context3.next =
|
|
1155
|
+
_context3.next = 36;
|
|
1167
1156
|
break;
|
|
1168
1157
|
}
|
|
1169
1158
|
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)));
|
|
1170
|
-
case
|
|
1159
|
+
case 36:
|
|
1171
1160
|
if (!(params.require_2fa_user_type && !(0, _utils.isString)(params.require_2fa_user_type))) {
|
|
1172
|
-
_context3.next =
|
|
1161
|
+
_context3.next = 37;
|
|
1173
1162
|
break;
|
|
1174
1163
|
}
|
|
1175
1164
|
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)));
|
|
1176
|
-
case
|
|
1165
|
+
case 37:
|
|
1177
1166
|
if (!(params.color2_top && !(0, _utils.isString)(params.color2_top))) {
|
|
1178
|
-
_context3.next =
|
|
1167
|
+
_context3.next = 38;
|
|
1179
1168
|
break;
|
|
1180
1169
|
}
|
|
1181
1170
|
throw new errors.InvalidParameterError("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(params.color2_top)));
|
|
1182
|
-
case
|
|
1171
|
+
case 38:
|
|
1183
1172
|
if (!(params.color2_left && !(0, _utils.isString)(params.color2_left))) {
|
|
1184
|
-
_context3.next =
|
|
1173
|
+
_context3.next = 39;
|
|
1185
1174
|
break;
|
|
1186
1175
|
}
|
|
1187
1176
|
throw new errors.InvalidParameterError("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(params.color2_left)));
|
|
1188
|
-
case
|
|
1177
|
+
case 39:
|
|
1189
1178
|
if (!(params.color2_link && !(0, _utils.isString)(params.color2_link))) {
|
|
1190
|
-
_context3.next =
|
|
1179
|
+
_context3.next = 40;
|
|
1191
1180
|
break;
|
|
1192
1181
|
}
|
|
1193
1182
|
throw new errors.InvalidParameterError("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(params.color2_link)));
|
|
1194
|
-
case
|
|
1183
|
+
case 40:
|
|
1195
1184
|
if (!(params.color2_text && !(0, _utils.isString)(params.color2_text))) {
|
|
1196
|
-
_context3.next =
|
|
1185
|
+
_context3.next = 41;
|
|
1197
1186
|
break;
|
|
1198
1187
|
}
|
|
1199
1188
|
throw new errors.InvalidParameterError("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(params.color2_text)));
|
|
1200
|
-
case
|
|
1189
|
+
case 41:
|
|
1201
1190
|
if (!(params.color2_top_text && !(0, _utils.isString)(params.color2_top_text))) {
|
|
1202
|
-
_context3.next =
|
|
1191
|
+
_context3.next = 42;
|
|
1203
1192
|
break;
|
|
1204
1193
|
}
|
|
1205
1194
|
throw new errors.InvalidParameterError("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(params.color2_top_text)));
|
|
1206
|
-
case
|
|
1195
|
+
case 42:
|
|
1207
1196
|
if (!(params.site_header && !(0, _utils.isString)(params.site_header))) {
|
|
1208
|
-
_context3.next =
|
|
1197
|
+
_context3.next = 43;
|
|
1209
1198
|
break;
|
|
1210
1199
|
}
|
|
1211
1200
|
throw new errors.InvalidParameterError("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(params.site_header)));
|
|
1212
|
-
case
|
|
1201
|
+
case 43:
|
|
1213
1202
|
if (!(params.site_footer && !(0, _utils.isString)(params.site_footer))) {
|
|
1214
|
-
_context3.next =
|
|
1203
|
+
_context3.next = 44;
|
|
1215
1204
|
break;
|
|
1216
1205
|
}
|
|
1217
1206
|
throw new errors.InvalidParameterError("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(params.site_footer)));
|
|
1218
|
-
case
|
|
1207
|
+
case 44:
|
|
1219
1208
|
if (!(params.login_help_text && !(0, _utils.isString)(params.login_help_text))) {
|
|
1220
|
-
_context3.next =
|
|
1209
|
+
_context3.next = 45;
|
|
1221
1210
|
break;
|
|
1222
1211
|
}
|
|
1223
1212
|
throw new errors.InvalidParameterError("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(params.login_help_text)));
|
|
1224
|
-
case
|
|
1213
|
+
case 45:
|
|
1225
1214
|
if (!(params.smtp_address && !(0, _utils.isString)(params.smtp_address))) {
|
|
1226
|
-
_context3.next =
|
|
1215
|
+
_context3.next = 46;
|
|
1227
1216
|
break;
|
|
1228
1217
|
}
|
|
1229
1218
|
throw new errors.InvalidParameterError("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(params.smtp_address)));
|
|
1230
|
-
case
|
|
1219
|
+
case 46:
|
|
1231
1220
|
if (!(params.smtp_authentication && !(0, _utils.isString)(params.smtp_authentication))) {
|
|
1232
|
-
_context3.next =
|
|
1221
|
+
_context3.next = 47;
|
|
1233
1222
|
break;
|
|
1234
1223
|
}
|
|
1235
1224
|
throw new errors.InvalidParameterError("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(params.smtp_authentication)));
|
|
1236
|
-
case
|
|
1225
|
+
case 47:
|
|
1237
1226
|
if (!(params.smtp_from && !(0, _utils.isString)(params.smtp_from))) {
|
|
1238
|
-
_context3.next =
|
|
1227
|
+
_context3.next = 48;
|
|
1239
1228
|
break;
|
|
1240
1229
|
}
|
|
1241
1230
|
throw new errors.InvalidParameterError("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(params.smtp_from)));
|
|
1242
|
-
case
|
|
1231
|
+
case 48:
|
|
1243
1232
|
if (!(params.smtp_username && !(0, _utils.isString)(params.smtp_username))) {
|
|
1244
|
-
_context3.next =
|
|
1233
|
+
_context3.next = 49;
|
|
1245
1234
|
break;
|
|
1246
1235
|
}
|
|
1247
1236
|
throw new errors.InvalidParameterError("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(params.smtp_username)));
|
|
1248
|
-
case
|
|
1237
|
+
case 49:
|
|
1249
1238
|
if (!(params.smtp_port && !(0, _utils.isInt)(params.smtp_port))) {
|
|
1250
|
-
_context3.next =
|
|
1239
|
+
_context3.next = 50;
|
|
1251
1240
|
break;
|
|
1252
1241
|
}
|
|
1253
1242
|
throw new errors.InvalidParameterError("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(params.smtp_port)));
|
|
1254
|
-
case
|
|
1243
|
+
case 50:
|
|
1255
1244
|
if (!(params.ldap_type && !(0, _utils.isString)(params.ldap_type))) {
|
|
1256
|
-
_context3.next =
|
|
1245
|
+
_context3.next = 51;
|
|
1257
1246
|
break;
|
|
1258
1247
|
}
|
|
1259
1248
|
throw new errors.InvalidParameterError("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(params.ldap_type)));
|
|
1260
|
-
case
|
|
1249
|
+
case 51:
|
|
1261
1250
|
if (!(params.ldap_host && !(0, _utils.isString)(params.ldap_host))) {
|
|
1262
|
-
_context3.next =
|
|
1251
|
+
_context3.next = 52;
|
|
1263
1252
|
break;
|
|
1264
1253
|
}
|
|
1265
1254
|
throw new errors.InvalidParameterError("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(params.ldap_host)));
|
|
1266
|
-
case
|
|
1255
|
+
case 52:
|
|
1267
1256
|
if (!(params.ldap_host_2 && !(0, _utils.isString)(params.ldap_host_2))) {
|
|
1268
|
-
_context3.next =
|
|
1257
|
+
_context3.next = 53;
|
|
1269
1258
|
break;
|
|
1270
1259
|
}
|
|
1271
1260
|
throw new errors.InvalidParameterError("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_2)));
|
|
1272
|
-
case
|
|
1261
|
+
case 53:
|
|
1273
1262
|
if (!(params.ldap_host_3 && !(0, _utils.isString)(params.ldap_host_3))) {
|
|
1274
|
-
_context3.next =
|
|
1263
|
+
_context3.next = 54;
|
|
1275
1264
|
break;
|
|
1276
1265
|
}
|
|
1277
1266
|
throw new errors.InvalidParameterError("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_3)));
|
|
1278
|
-
case
|
|
1267
|
+
case 54:
|
|
1279
1268
|
if (!(params.ldap_port && !(0, _utils.isInt)(params.ldap_port))) {
|
|
1280
|
-
_context3.next =
|
|
1269
|
+
_context3.next = 55;
|
|
1281
1270
|
break;
|
|
1282
1271
|
}
|
|
1283
1272
|
throw new errors.InvalidParameterError("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(params.ldap_port)));
|
|
1284
|
-
case
|
|
1273
|
+
case 55:
|
|
1285
1274
|
if (!(params.ldap_username && !(0, _utils.isString)(params.ldap_username))) {
|
|
1286
|
-
_context3.next =
|
|
1275
|
+
_context3.next = 56;
|
|
1287
1276
|
break;
|
|
1288
1277
|
}
|
|
1289
1278
|
throw new errors.InvalidParameterError("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(params.ldap_username)));
|
|
1290
|
-
case
|
|
1279
|
+
case 56:
|
|
1291
1280
|
if (!(params.ldap_username_field && !(0, _utils.isString)(params.ldap_username_field))) {
|
|
1292
|
-
_context3.next =
|
|
1281
|
+
_context3.next = 57;
|
|
1293
1282
|
break;
|
|
1294
1283
|
}
|
|
1295
1284
|
throw new errors.InvalidParameterError("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(params.ldap_username_field)));
|
|
1296
|
-
case
|
|
1285
|
+
case 57:
|
|
1297
1286
|
if (!(params.ldap_domain && !(0, _utils.isString)(params.ldap_domain))) {
|
|
1298
|
-
_context3.next =
|
|
1287
|
+
_context3.next = 58;
|
|
1299
1288
|
break;
|
|
1300
1289
|
}
|
|
1301
1290
|
throw new errors.InvalidParameterError("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(params.ldap_domain)));
|
|
1302
|
-
case
|
|
1291
|
+
case 58:
|
|
1303
1292
|
if (!(params.ldap_user_action && !(0, _utils.isString)(params.ldap_user_action))) {
|
|
1304
|
-
_context3.next =
|
|
1293
|
+
_context3.next = 59;
|
|
1305
1294
|
break;
|
|
1306
1295
|
}
|
|
1307
1296
|
throw new errors.InvalidParameterError("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_action)));
|
|
1308
|
-
case
|
|
1297
|
+
case 59:
|
|
1309
1298
|
if (!(params.ldap_group_action && !(0, _utils.isString)(params.ldap_group_action))) {
|
|
1310
|
-
_context3.next =
|
|
1299
|
+
_context3.next = 60;
|
|
1311
1300
|
break;
|
|
1312
1301
|
}
|
|
1313
1302
|
throw new errors.InvalidParameterError("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_action)));
|
|
1314
|
-
case
|
|
1303
|
+
case 60:
|
|
1315
1304
|
if (!(params.ldap_user_include_groups && !(0, _utils.isString)(params.ldap_user_include_groups))) {
|
|
1316
|
-
_context3.next =
|
|
1305
|
+
_context3.next = 61;
|
|
1317
1306
|
break;
|
|
1318
1307
|
}
|
|
1319
1308
|
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)));
|
|
1320
|
-
case
|
|
1309
|
+
case 61:
|
|
1321
1310
|
if (!(params.ldap_group_exclusion && !(0, _utils.isString)(params.ldap_group_exclusion))) {
|
|
1322
|
-
_context3.next =
|
|
1311
|
+
_context3.next = 62;
|
|
1323
1312
|
break;
|
|
1324
1313
|
}
|
|
1325
1314
|
throw new errors.InvalidParameterError("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_exclusion)));
|
|
1326
|
-
case
|
|
1315
|
+
case 62:
|
|
1327
1316
|
if (!(params.ldap_group_inclusion && !(0, _utils.isString)(params.ldap_group_inclusion))) {
|
|
1328
|
-
_context3.next =
|
|
1317
|
+
_context3.next = 63;
|
|
1329
1318
|
break;
|
|
1330
1319
|
}
|
|
1331
1320
|
throw new errors.InvalidParameterError("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_inclusion)));
|
|
1332
|
-
case
|
|
1321
|
+
case 63:
|
|
1333
1322
|
if (!(params.ldap_base_dn && !(0, _utils.isString)(params.ldap_base_dn))) {
|
|
1334
|
-
_context3.next =
|
|
1323
|
+
_context3.next = 64;
|
|
1335
1324
|
break;
|
|
1336
1325
|
}
|
|
1337
1326
|
throw new errors.InvalidParameterError("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(params.ldap_base_dn)));
|
|
1338
|
-
case
|
|
1327
|
+
case 64:
|
|
1339
1328
|
if (!(params.ldap_password_change && !(0, _utils.isString)(params.ldap_password_change))) {
|
|
1340
|
-
_context3.next =
|
|
1329
|
+
_context3.next = 65;
|
|
1341
1330
|
break;
|
|
1342
1331
|
}
|
|
1343
1332
|
throw new errors.InvalidParameterError("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change)));
|
|
1344
|
-
case
|
|
1333
|
+
case 65:
|
|
1345
1334
|
if (!(params.ldap_password_change_confirmation && !(0, _utils.isString)(params.ldap_password_change_confirmation))) {
|
|
1346
|
-
_context3.next =
|
|
1335
|
+
_context3.next = 66;
|
|
1347
1336
|
break;
|
|
1348
1337
|
}
|
|
1349
1338
|
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)));
|
|
1350
|
-
case
|
|
1339
|
+
case 66:
|
|
1351
1340
|
if (!(params.smtp_password && !(0, _utils.isString)(params.smtp_password))) {
|
|
1352
|
-
_context3.next =
|
|
1341
|
+
_context3.next = 67;
|
|
1353
1342
|
break;
|
|
1354
1343
|
}
|
|
1355
1344
|
throw new errors.InvalidParameterError("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(params.smtp_password)));
|
|
1356
|
-
case
|
|
1345
|
+
case 67:
|
|
1357
1346
|
if (!(params.session_expiry_minutes && !(0, _utils.isInt)(params.session_expiry_minutes))) {
|
|
1358
|
-
_context3.next =
|
|
1347
|
+
_context3.next = 68;
|
|
1359
1348
|
break;
|
|
1360
1349
|
}
|
|
1361
1350
|
throw new errors.InvalidParameterError("Bad parameter: session_expiry_minutes must be of type Int, received ".concat((0, _utils.getType)(params.session_expiry_minutes)));
|
|
1362
|
-
case
|
|
1363
|
-
_context3.next =
|
|
1351
|
+
case 68:
|
|
1352
|
+
_context3.next = 69;
|
|
1364
1353
|
return _Api.default.sendRequest('/site', 'PATCH', params, options);
|
|
1365
|
-
case
|
|
1354
|
+
case 69:
|
|
1366
1355
|
response = _context3.sent;
|
|
1367
1356
|
return _context3.abrupt("return", new _Site(response === null || response === void 0 ? void 0 : response.data, options));
|
|
1368
|
-
case
|
|
1357
|
+
case 70:
|
|
1369
1358
|
case "end":
|
|
1370
1359
|
return _context3.stop();
|
|
1371
1360
|
}
|
package/lib/models/User.js
CHANGED
|
@@ -116,12 +116,12 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
|
116
116
|
(0, _defineProperty2.default)(this, "setBypassSiteAllowedIps", function (value) {
|
|
117
117
|
_this.attributes.bypass_site_allowed_ips = value;
|
|
118
118
|
});
|
|
119
|
-
// boolean # Exempt this user from
|
|
120
|
-
(0, _defineProperty2.default)(this, "
|
|
121
|
-
return _this.attributes.
|
|
119
|
+
// boolean # Exempt this user from user lifecycle rules?
|
|
120
|
+
(0, _defineProperty2.default)(this, "getBypassUserLifecycleRules", function () {
|
|
121
|
+
return _this.attributes.bypass_user_lifecycle_rules;
|
|
122
122
|
});
|
|
123
|
-
(0, _defineProperty2.default)(this, "
|
|
124
|
-
_this.attributes.
|
|
123
|
+
(0, _defineProperty2.default)(this, "setBypassUserLifecycleRules", function (value) {
|
|
124
|
+
_this.attributes.bypass_user_lifecycle_rules = value;
|
|
125
125
|
});
|
|
126
126
|
// date-time # When this user was created
|
|
127
127
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
|
@@ -726,7 +726,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
|
726
726
|
// authenticate_until - string - Scheduled Date/Time at which user will be deactivated
|
|
727
727
|
// authentication_method - string - How is this user authenticated?
|
|
728
728
|
// billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
|
|
729
|
-
//
|
|
729
|
+
// bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
730
730
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
731
731
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
|
732
732
|
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
@@ -1208,7 +1208,7 @@ _User = User;
|
|
|
1208
1208
|
// authenticate_until - string - Scheduled Date/Time at which user will be deactivated
|
|
1209
1209
|
// authentication_method - string - How is this user authenticated?
|
|
1210
1210
|
// billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
|
|
1211
|
-
//
|
|
1211
|
+
// bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
1212
1212
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
1213
1213
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
|
1214
1214
|
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Automation.js
CHANGED
|
@@ -35,6 +35,13 @@ class Automation {
|
|
|
35
35
|
this.attributes.id = value
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// boolean # Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
39
|
+
getAlwaysSerializeJobs = () => this.attributes.always_serialize_jobs
|
|
40
|
+
|
|
41
|
+
setAlwaysSerializeJobs = value => {
|
|
42
|
+
this.attributes.always_serialize_jobs = value
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
// boolean # Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
39
46
|
getAlwaysOverwriteSizeMatchingFiles = () => this.attributes.always_overwrite_size_matching_files
|
|
40
47
|
|
|
@@ -327,6 +334,7 @@ class Automation {
|
|
|
327
334
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
|
328
335
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
329
336
|
// always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
337
|
+
// always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
330
338
|
// description - string - Description for the this Automation.
|
|
331
339
|
// disabled - boolean - If true, this automation will not run.
|
|
332
340
|
// exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -568,6 +576,7 @@ class Automation {
|
|
|
568
576
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
|
569
577
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
570
578
|
// always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
579
|
+
// always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
571
580
|
// description - string - Description for the this Automation.
|
|
572
581
|
// disabled - boolean - If true, this automation will not run.
|
|
573
582
|
// exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
package/src/models/Site.js
CHANGED
|
@@ -535,9 +535,6 @@ class Site {
|
|
|
535
535
|
// boolean # Does FTP user Windows emulation mode?
|
|
536
536
|
getWindowsModeFtp = () => this.attributes.windows_mode_ftp
|
|
537
537
|
|
|
538
|
-
// int64 # If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
539
|
-
getDisableUsersFromInactivityPeriodDays = () => this.attributes.disable_users_from_inactivity_period_days
|
|
540
|
-
|
|
541
538
|
// boolean # Allow group admins set password authentication method
|
|
542
539
|
getGroupAdminsCanSetUserPassword = () => this.attributes.group_admins_can_set_user_password
|
|
543
540
|
|
|
@@ -639,7 +636,6 @@ class Site {
|
|
|
639
636
|
// opt_out_global - boolean - Use servers in the USA only?
|
|
640
637
|
// use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
|
641
638
|
// custom_namespace - boolean - Is this site using a custom namespace for users?
|
|
642
|
-
// disable_users_from_inactivity_period_days - int64 - If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
643
639
|
// non_sso_groups_allowed - boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
|
644
640
|
// 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.
|
|
645
641
|
// sharing_enabled - boolean - Allow bundle creation
|
|
@@ -853,10 +849,6 @@ class Site {
|
|
|
853
849
|
throw new errors.InvalidParameterError(`Bad parameter: bundle_upload_receipt_notifications must be of type String, received ${getType(params.bundle_upload_receipt_notifications)}`)
|
|
854
850
|
}
|
|
855
851
|
|
|
856
|
-
if (params.disable_users_from_inactivity_period_days && !isInt(params.disable_users_from_inactivity_period_days)) {
|
|
857
|
-
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)}`)
|
|
858
|
-
}
|
|
859
|
-
|
|
860
852
|
if (params.sftp_host_key_type && !isString(params.sftp_host_key_type)) {
|
|
861
853
|
throw new errors.InvalidParameterError(`Bad parameter: sftp_host_key_type must be of type String, received ${getType(params.sftp_host_key_type)}`)
|
|
862
854
|
}
|
package/src/models/User.js
CHANGED
|
@@ -112,11 +112,11 @@ class User {
|
|
|
112
112
|
this.attributes.bypass_site_allowed_ips = value
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
// boolean # Exempt this user from
|
|
116
|
-
|
|
115
|
+
// boolean # Exempt this user from user lifecycle rules?
|
|
116
|
+
getBypassUserLifecycleRules = () => this.attributes.bypass_user_lifecycle_rules
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
this.attributes.
|
|
118
|
+
setBypassUserLifecycleRules = value => {
|
|
119
|
+
this.attributes.bypass_user_lifecycle_rules = value
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// date-time # When this user was created
|
|
@@ -652,7 +652,7 @@ class User {
|
|
|
652
652
|
// authenticate_until - string - Scheduled Date/Time at which user will be deactivated
|
|
653
653
|
// authentication_method - string - How is this user authenticated?
|
|
654
654
|
// billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
|
|
655
|
-
//
|
|
655
|
+
// bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
656
656
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
657
657
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
|
658
658
|
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
@@ -944,7 +944,7 @@ class User {
|
|
|
944
944
|
// authenticate_until - string - Scheduled Date/Time at which user will be deactivated
|
|
945
945
|
// authentication_method - string - How is this user authenticated?
|
|
946
946
|
// billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
|
|
947
|
-
//
|
|
947
|
+
// bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
948
948
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
949
949
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
|
950
950
|
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|