files.com 1.2.85 → 1.2.86

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.85
1
+ 1.2.86
@@ -194,6 +194,7 @@
194
194
  "tls_disabled": true,
195
195
  "trial_days_left": 1,
196
196
  "trial_until": "2000-01-01T01:00:00Z",
197
+ "use_dedicated_ips_for_smtp": true,
197
198
  "use_provided_modified_at": true,
198
199
  "user": {
199
200
  "id": 1,
@@ -422,6 +423,7 @@
422
423
  * `tls_disabled` (boolean): DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
423
424
  * `trial_days_left` (int64): Number of days left in trial
424
425
  * `trial_until` (date-time): When does this Site trial expire?
426
+ * `use_dedicated_ips_for_smtp` (boolean): If using custom SMTP, should we use dedicated IPs to deliver emails?
425
427
  * `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
426
428
  * `user` (User): User of current session
427
429
  * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
@@ -577,6 +579,7 @@ await Site.update({
577
579
  'site_header': "example",
578
580
  'site_footer': "example",
579
581
  'login_help_text': "Login page help text.",
582
+ 'use_dedicated_ips_for_smtp': true,
580
583
  'smtp_address': "smtp.my-mail-server.com",
581
584
  'smtp_authentication': "plain",
582
585
  'smtp_from': "me@my-mail-server.com",
@@ -727,6 +730,7 @@ await Site.update({
727
730
  * `site_header` (string): Custom site header text
728
731
  * `site_footer` (string): Custom site footer text
729
732
  * `login_help_text` (string): Login help text
733
+ * `use_dedicated_ips_for_smtp` (boolean): If using custom SMTP, should we use dedicated IPs to deliver emails?
730
734
  * `smtp_address` (string): SMTP server hostname or IP
731
735
  * `smtp_authentication` (string): SMTP server authentication type
732
736
  * `smtp_from` (string): From address to use when mailing through custom SMTP
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.85';
14
+ var version = '1.2.86';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -597,6 +597,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
597
597
  (0, _defineProperty2.default)(this, "getTrialUntil", function () {
598
598
  return _this.attributes.trial_until;
599
599
  });
600
+ // boolean # If using custom SMTP, should we use dedicated IPs to deliver emails?
601
+ (0, _defineProperty2.default)(this, "getUseDedicatedIpsForSmtp", function () {
602
+ return _this.attributes.use_dedicated_ips_for_smtp;
603
+ });
600
604
  // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
601
605
  (0, _defineProperty2.default)(this, "getUseProvidedModifiedAt", function () {
602
606
  return _this.attributes.use_provided_modified_at;
@@ -837,6 +841,7 @@ _Site = Site;
837
841
  // site_header - string - Custom site header text
838
842
  // site_footer - string - Custom site footer text
839
843
  // login_help_text - string - Login help text
844
+ // use_dedicated_ips_for_smtp - boolean - If using custom SMTP, should we use dedicated IPs to deliver emails?
840
845
  // smtp_address - string - SMTP server hostname or IP
841
846
  // smtp_authentication - string - SMTP server authentication type
842
847
  // smtp_from - string - From address to use when mailing through custom SMTP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.85",
3
+ "version": "1.2.86",
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
- const version = '1.2.85'
8
+ const version = '1.2.86'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -451,6 +451,9 @@ class Site {
451
451
  // date-time # When does this Site trial expire?
452
452
  getTrialUntil = () => this.attributes.trial_until
453
453
 
454
+ // boolean # If using custom SMTP, should we use dedicated IPs to deliver emails?
455
+ getUseDedicatedIpsForSmtp = () => this.attributes.use_dedicated_ips_for_smtp
456
+
454
457
  // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
455
458
  getUseProvidedModifiedAt = () => this.attributes.use_provided_modified_at
456
459
 
@@ -632,6 +635,7 @@ class Site {
632
635
  // site_header - string - Custom site header text
633
636
  // site_footer - string - Custom site footer text
634
637
  // login_help_text - string - Login help text
638
+ // use_dedicated_ips_for_smtp - boolean - If using custom SMTP, should we use dedicated IPs to deliver emails?
635
639
  // smtp_address - string - SMTP server hostname or IP
636
640
  // smtp_authentication - string - SMTP server authentication type
637
641
  // smtp_from - string - From address to use when mailing through custom SMTP