files.com 1.2.64 → 1.2.66

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.64
1
+ 1.2.66
@@ -54,5 +54,10 @@ await BundleAction.list({
54
54
  * `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.
55
55
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
56
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
57
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
58
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
59
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
60
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
61
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
57
62
  * `bundle_id` (int64): Bundle ID
58
63
  * `bundle_registration_id` (int64): BundleRegistration ID
@@ -26,7 +26,7 @@
26
26
 
27
27
  * `timestamp` (date-time): Start Time of Action
28
28
  * `remote_ip` (string): IP Address of FTP Client
29
- * `server_ip` (string): IP Address of SFTP Server
29
+ * `server_ip` (string): IP Address of FTP Server
30
30
  * `username` (string): Username
31
31
  * `session_uuid` (string): Unique ID of the Session
32
32
  * `seq_id` (int64): FTP Sequence ID
@@ -21,6 +21,7 @@
21
21
  "allow_bundle_names": true,
22
22
  "allowed_countries": "US,DE",
23
23
  "allowed_ips": "example",
24
+ "always_mkdir_parents": true,
24
25
  "ask_about_overwrites": true,
25
26
  "bundle_activity_notifications": "never",
26
27
  "bundle_expiration": 1,
@@ -294,6 +295,7 @@
294
295
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
295
296
  * `allowed_countries` (string): Comma seperated list of allowed Country codes
296
297
  * `allowed_ips` (string): List of allowed IP addresses
298
+ * `always_mkdir_parents` (boolean): Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
297
299
  * `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
298
300
  * `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
299
301
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
@@ -474,6 +476,7 @@ await Site.update({
474
476
  'welcome_email_enabled': true,
475
477
  'ask_about_overwrites': true,
476
478
  'show_request_access_link': true,
479
+ 'always_mkdir_parents': true,
477
480
  'welcome_email_cc': "example",
478
481
  'welcome_email_subject': "example",
479
482
  'welcome_custom_text': "Welcome to my site!",
@@ -622,6 +625,7 @@ await Site.update({
622
625
  * `welcome_email_enabled` (boolean): Will the welcome email be sent to new users?
623
626
  * `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
624
627
  * `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
628
+ * `always_mkdir_parents` (boolean): Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
625
629
  * `welcome_email_cc` (string): Include this email in welcome emails if enabled
626
630
  * `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
627
631
  * `welcome_custom_text` (string): Custom text send in user welcome email
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.64';
14
+ var version = '1.2.66';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -75,6 +75,11 @@ _BundleAction = BundleAction;
75
75
  // 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.
76
76
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
77
77
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
78
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
79
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
80
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
81
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
82
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
78
83
  // bundle_id - int64 - Bundle ID
79
84
  // bundle_registration_id - int64 - BundleRegistration ID
80
85
  (0, _defineProperty2.default)(BundleAction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -41,7 +41,7 @@ var FtpActionLog = /*#__PURE__*/(0, _createClass2.default)(function FtpActionLog
41
41
  (0, _defineProperty2.default)(this, "getRemoteIp", function () {
42
42
  return _this.attributes.remote_ip;
43
43
  });
44
- // string # IP Address of SFTP Server
44
+ // string # IP Address of FTP Server
45
45
  (0, _defineProperty2.default)(this, "getServerIp", function () {
46
46
  return _this.attributes.server_ip;
47
47
  });
@@ -93,6 +93,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
93
93
  (0, _defineProperty2.default)(this, "getAllowedIps", function () {
94
94
  return _this.attributes.allowed_ips;
95
95
  });
96
+ // boolean # Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
97
+ (0, _defineProperty2.default)(this, "getAlwaysMkdirParents", function () {
98
+ return _this.attributes.always_mkdir_parents;
99
+ });
96
100
  // boolean # If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
97
101
  (0, _defineProperty2.default)(this, "getAskAboutOverwrites", function () {
98
102
  return _this.attributes.ask_about_overwrites;
@@ -732,6 +736,7 @@ _Site = Site;
732
736
  // welcome_email_enabled - boolean - Will the welcome email be sent to new users?
733
737
  // ask_about_overwrites - boolean - If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
734
738
  // show_request_access_link - boolean - Show request access link for users without access? Currently unused.
739
+ // always_mkdir_parents - boolean - Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
735
740
  // welcome_email_cc - string - Include this email in welcome emails if enabled
736
741
  // welcome_email_subject - string - Include this email subject in welcome emails if enabled
737
742
  // welcome_custom_text - string - Custom text send in user welcome email
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.64",
3
+ "version": "1.2.66",
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.64'
8
+ const version = '1.2.66'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -50,6 +50,11 @@ class BundleAction {
50
50
  // 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.
51
51
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
52
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
53
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
54
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
55
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
56
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
57
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
53
58
  // bundle_id - int64 - Bundle ID
54
59
  // bundle_registration_id - int64 - BundleRegistration ID
55
60
  static list = async (params = {}, options = {}) => {
@@ -34,7 +34,7 @@ class FtpActionLog {
34
34
  // string # IP Address of FTP Client
35
35
  getRemoteIp = () => this.attributes.remote_ip
36
36
 
37
- // string # IP Address of SFTP Server
37
+ // string # IP Address of FTP Server
38
38
  getServerIp = () => this.attributes.server_ip
39
39
 
40
40
  // string # Username
@@ -73,6 +73,9 @@ class Site {
73
73
  // string # List of allowed IP addresses
74
74
  getAllowedIps = () => this.attributes.allowed_ips
75
75
 
76
+ // boolean # Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
77
+ getAlwaysMkdirParents = () => this.attributes.always_mkdir_parents
78
+
76
79
  // boolean # If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
77
80
  getAskAboutOverwrites = () => this.attributes.ask_about_overwrites
78
81
 
@@ -528,6 +531,7 @@ class Site {
528
531
  // welcome_email_enabled - boolean - Will the welcome email be sent to new users?
529
532
  // ask_about_overwrites - boolean - If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
530
533
  // show_request_access_link - boolean - Show request access link for users without access? Currently unused.
534
+ // always_mkdir_parents - boolean - Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
531
535
  // welcome_email_cc - string - Include this email in welcome emails if enabled
532
536
  // welcome_email_subject - string - Include this email subject in welcome emails if enabled
533
537
  // welcome_custom_text - string - Custom text send in user welcome email