Skip to content

Commit 4d8bba5

Browse files
[Bot] push changes from Files.com
1 parent 66f9c62 commit 4d8bba5

10 files changed

Lines changed: 41 additions & 7 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.616
1+
1.2.617

docs/models/Bundle.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"start_access_on_date": "2000-01-01T01:00:00Z",
5656
"skip_company": true,
5757
"id": 1,
58+
"bypasses_site_expiration_rules": true,
5859
"created_at": "2000-01-01T01:00:00Z",
5960
"dont_separate_submissions_by_folder": true,
6061
"max_uses": 1,
@@ -112,6 +113,7 @@
112113
* `start_access_on_date` (date-time): Date when share will start to be accessible. If `nil` access granted right after create.
113114
* `skip_company` (boolean): BundleRegistrations can be saved without providing company?
114115
* `id` (int64): Bundle ID
116+
* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
115117
* `created_at` (date-time): Bundle created at date/time
116118
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
117119
* `max_uses` (int64): Maximum number of times bundle can be accessed
@@ -156,7 +158,7 @@ await Bundle.list({
156158
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
157159
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
158160
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
159-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
161+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ user_id, expires_at ]`.
160162
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
161163
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
162164
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
@@ -185,6 +187,7 @@ await Bundle.create({
185187
'user_id': 1,
186188
'paths': ["file.txt"],
187189
'password': "Password",
190+
'bypasses_site_expiration_rules': true,
188191
'form_field_set_id': 1,
189192
'create_snapshot': false,
190193
'dont_separate_submissions_by_folder': true,
@@ -218,6 +221,7 @@ await Bundle.create({
218221
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
219222
* `paths` (array(string)): Required - A list of paths to include in this bundle.
220223
* `password` (string): Password for this bundle.
224+
* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
221225
* `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
222226
* `create_snapshot` (boolean): If true, create a snapshot of this bundle's contents.
223227
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
@@ -276,6 +280,7 @@ const bundle = await Bundle.find(id)
276280
await bundle.update({
277281
'paths': ["file.txt"],
278282
'password': "Password",
283+
'bypasses_site_expiration_rules': true,
279284
'form_field_set_id': 1,
280285
'clickwrap_id': 1,
281286
'code': "abc123",
@@ -309,6 +314,7 @@ await bundle.update({
309314
* `id` (int64): Required - Bundle ID.
310315
* `paths` (array(string)): A list of paths to include in this bundle.
311316
* `password` (string): Password for this bundle.
317+
* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
312318
* `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
313319
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
314320
* `code` (string): Bundle code. This code forms the end part of the Public URL.
@@ -391,6 +397,7 @@ await bundle.update({
391397
"start_access_on_date": "2000-01-01T01:00:00Z",
392398
"skip_company": true,
393399
"id": 1,
400+
"bypasses_site_expiration_rules": true,
394401
"created_at": "2000-01-01T01:00:00Z",
395402
"dont_separate_submissions_by_folder": true,
396403
"max_uses": 1,

docs/models/SsoStrategy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"ldap_base_dn": "example",
4747
"ldap_domain": "mysite.com",
4848
"enabled": true,
49+
"display_on_login_page": true,
4950
"ldap_host": "ldap.site.com",
5051
"ldap_host_2": "ldap2.site.com",
5152
"ldap_host_3": "ldap3.site.com",
@@ -98,6 +99,7 @@
9899
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
99100
* `ldap_domain` (string): Domain name that will be appended to LDAP usernames
100101
* `enabled` (boolean): Is strategy enabled? This may become automatically set to `false` after a high number and duration of failures.
102+
* `display_on_login_page` (boolean): Should this strategy be displayed on the login page?
101103
* `ldap_host` (string): LDAP host
102104
* `ldap_host_2` (string): LDAP backup host
103105
* `ldap_host_3` (string): LDAP backup host

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.616';
15+
var version = '1.2.617';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/Bundle.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
186186
(0, _defineProperty2.default)(this, "setId", function (value) {
187187
_this.attributes.id = value;
188188
});
189+
// boolean # If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
190+
(0, _defineProperty2.default)(this, "getBypassesSiteExpirationRules", function () {
191+
return _this.attributes.bypasses_site_expiration_rules;
192+
});
193+
(0, _defineProperty2.default)(this, "setBypassesSiteExpirationRules", function (value) {
194+
_this.attributes.bypasses_site_expiration_rules = value;
195+
});
189196
// date-time # Bundle created at date/time
190197
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
191198
return _this.attributes.created_at;
@@ -440,6 +447,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
440447
// Parameters:
441448
// paths - array(string) - A list of paths to include in this bundle.
442449
// password - string - Password for this bundle.
450+
// bypasses_site_expiration_rules - boolean - If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
443451
// form_field_set_id - int64 - Id of Form Field Set to use with this bundle
444452
// clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
445453
// code - string - Bundle code. This code forms the end part of the Public URL.
@@ -713,7 +721,7 @@ _Bundle = Bundle;
713721
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
714722
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
715723
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
716-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
724+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ user_id, expires_at ]`.
717725
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
718726
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
719727
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
@@ -822,6 +830,7 @@ _Bundle = Bundle;
822830
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
823831
// paths (required) - array(string) - A list of paths to include in this bundle.
824832
// password - string - Password for this bundle.
833+
// bypasses_site_expiration_rules - boolean - If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
825834
// form_field_set_id - int64 - Id of Form Field Set to use with this bundle
826835
// create_snapshot - boolean - If true, create a snapshot of this bundle's contents.
827836
// dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.

lib/models/SsoStrategy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
200200
(0, _defineProperty2.default)(this, "getEnabled", function () {
201201
return _this.attributes.enabled;
202202
});
203+
// boolean # Should this strategy be displayed on the login page?
204+
(0, _defineProperty2.default)(this, "getDisplayOnLoginPage", function () {
205+
return _this.attributes.display_on_login_page;
206+
});
203207
// string # LDAP host
204208
(0, _defineProperty2.default)(this, "getLdapHost", function () {
205209
return _this.attributes.ldap_host;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.616",
3+
"version": "1.2.617",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.616'
9+
const version = '1.2.617'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/Bundle.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ class Bundle {
182182
this.attributes.id = value
183183
}
184184

185+
// boolean # If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
186+
getBypassesSiteExpirationRules = () => this.attributes.bypasses_site_expiration_rules
187+
188+
setBypassesSiteExpirationRules = value => {
189+
this.attributes.bypasses_site_expiration_rules = value
190+
}
191+
185192
// date-time # Bundle created at date/time
186193
getCreatedAt = () => this.attributes.created_at
187194

@@ -406,6 +413,7 @@ class Bundle {
406413
// Parameters:
407414
// paths - array(string) - A list of paths to include in this bundle.
408415
// password - string - Password for this bundle.
416+
// bypasses_site_expiration_rules - boolean - If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
409417
// form_field_set_id - int64 - Id of Form Field Set to use with this bundle
410418
// clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
411419
// code - string - Bundle code. This code forms the end part of the Public URL.
@@ -568,7 +576,7 @@ class Bundle {
568576
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
569577
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
570578
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
571-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
579+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ user_id, expires_at ]`.
572580
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
573581
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
574582
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
@@ -624,6 +632,7 @@ class Bundle {
624632
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
625633
// paths (required) - array(string) - A list of paths to include in this bundle.
626634
// password - string - Password for this bundle.
635+
// bypasses_site_expiration_rules - boolean - If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
627636
// form_field_set_id - int64 - Id of Form Field Set to use with this bundle
628637
// create_snapshot - boolean - If true, create a snapshot of this bundle's contents.
629638
// dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.

src/models/SsoStrategy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ class SsoStrategy {
154154
// boolean # Is strategy enabled? This may become automatically set to `false` after a high number and duration of failures.
155155
getEnabled = () => this.attributes.enabled
156156

157+
// boolean # Should this strategy be displayed on the login page?
158+
getDisplayOnLoginPage = () => this.attributes.display_on_login_page
159+
157160
// string # LDAP host
158161
getLdapHost = () => this.attributes.ldap_host
159162

0 commit comments

Comments
 (0)