files.com 1.0.410 → 1.0.412

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.410
1
+ 1.0.412
@@ -39,6 +39,7 @@ await GpgKey.list({
39
39
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
40
40
  * `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.
41
41
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `expires_at`.
42
43
 
43
44
  ---
44
45
 
@@ -84,6 +84,7 @@
84
84
  "ldap_username_field": "sAMAccountName",
85
85
  "login_help_text": "Login page help text.",
86
86
  "logo": null,
87
+ "login_page_background_image": null,
87
88
  "max_prior_passwords": 1,
88
89
  "motd_text": "example",
89
90
  "motd_use_for_ftp": true,
@@ -300,6 +301,7 @@
300
301
  * `ldap_username_field` (string): LDAP username field
301
302
  * `login_help_text` (string): Login help text
302
303
  * `logo` (Image): Branded logo
304
+ * `login_page_background_image` (Image): Branded login page background
303
305
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
304
306
  * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
305
307
  * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
@@ -518,6 +520,7 @@ await Site.update({
518
520
  'icon128_delete': true,
519
521
  'logo_delete': true,
520
522
  'bundle_watermark_attachment_delete': true,
523
+ 'login_page_background_image_delete': true,
521
524
  'disable_2fa_with_delay': true,
522
525
  'session_expiry_minutes': 1,
523
526
  })
@@ -658,6 +661,8 @@ await Site.update({
658
661
  * `logo_delete` (boolean): If true, will delete the file stored in logo
659
662
  * `bundle_watermark_attachment_file` (file):
660
663
  * `bundle_watermark_attachment_delete` (boolean): If true, will delete the file stored in bundle_watermark_attachment
664
+ * `login_page_background_image_file` (file):
665
+ * `login_page_background_image_delete` (boolean): If true, will delete the file stored in login_page_background_image
661
666
  * `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
662
667
  * `ldap_password_change` (string): New LDAP password.
663
668
  * `ldap_password_change_confirmation` (string): Confirm new LDAP password.
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.0.410";
14
+ var version = "1.0.412";
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -245,6 +245,7 @@ _class = GpgKey;
245
245
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
246
246
  // 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.
247
247
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
248
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `expires_at`.
248
249
  (0, _defineProperty2.default)(GpgKey, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
249
250
  var _response$data;
250
251
  var params,
@@ -344,6 +344,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
344
344
  (0, _defineProperty2.default)(this, "getLogo", function () {
345
345
  return _this.attributes.logo;
346
346
  });
347
+ // Image # Branded login page background
348
+ (0, _defineProperty2.default)(this, "getLoginPageBackgroundImage", function () {
349
+ return _this.attributes.login_page_background_image;
350
+ });
347
351
  // int64 # Number of prior passwords to disallow
348
352
  (0, _defineProperty2.default)(this, "getMaxPriorPasswords", function () {
349
353
  return _this.attributes.max_prior_passwords;
@@ -797,6 +801,8 @@ _class = Site;
797
801
  // logo_delete - boolean - If true, will delete the file stored in logo
798
802
  // bundle_watermark_attachment_file - file
799
803
  // bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
804
+ // login_page_background_image_file - file
805
+ // login_page_background_image_delete - boolean - If true, will delete the file stored in login_page_background_image
800
806
  // disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
801
807
  // ldap_password_change - string - New LDAP password.
802
808
  // ldap_password_change_confirmation - string - Confirm new LDAP password.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.410",
3
+ "version": "1.0.412",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- let version = "1.0.410"
8
+ let version = "1.0.412"
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -161,6 +161,7 @@ class GpgKey {
161
161
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
162
162
  // 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.
163
163
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
164
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `expires_at`.
164
165
  static list = async (params = {}, options = {}) => {
165
166
  if (params['user_id'] && !isInt(params['user_id'])) {
166
167
  throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
@@ -257,6 +257,9 @@ class Site {
257
257
  // Image # Branded logo
258
258
  getLogo = () => this.attributes.logo
259
259
 
260
+ // Image # Branded login page background
261
+ getLoginPageBackgroundImage = () => this.attributes.login_page_background_image
262
+
260
263
  // int64 # Number of prior passwords to disallow
261
264
  getMaxPriorPasswords = () => this.attributes.max_prior_passwords
262
265
 
@@ -604,6 +607,8 @@ class Site {
604
607
  // logo_delete - boolean - If true, will delete the file stored in logo
605
608
  // bundle_watermark_attachment_file - file
606
609
  // bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
610
+ // login_page_background_image_file - file
611
+ // login_page_background_image_delete - boolean - If true, will delete the file stored in login_page_background_image
607
612
  // disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
608
613
  // ldap_password_change - string - New LDAP password.
609
614
  // ldap_password_change_confirmation - string - Confirm new LDAP password.