files.com 1.2.26 → 1.2.28

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 CHANGED
@@ -1 +1 @@
1
- 1.2.26
1
+ 1.2.28
@@ -19,9 +19,11 @@
19
19
  1,
20
20
  2
21
21
  ],
22
+ "ignore_locked_folders": true,
22
23
  "interval": "week",
23
24
  "last_modified_at": "2000-01-01T01:00:00Z",
24
25
  "name": "example",
26
+ "overwrite_files": true,
25
27
  "path": "example",
26
28
  "recurring_day": 25,
27
29
  "schedule": "example",
@@ -67,9 +69,11 @@
67
69
  * `destinations` (array): Destination Paths
68
70
  * `disabled` (boolean): If true, this automation will not run.
69
71
  * `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
72
+ * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
70
73
  * `interval` (string): If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
71
74
  * `last_modified_at` (date-time): Time when automation was last modified. Does not change for name or description updates.
72
75
  * `name` (string): Name for this automation.
76
+ * `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
73
77
  * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
74
78
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
75
79
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
@@ -145,7 +149,9 @@ await Automation.create({
145
149
  'always_overwrite_size_matching_files': true,
146
150
  'description': "example",
147
151
  'disabled': true,
152
+ 'ignore_locked_folders': true,
148
153
  'name': "example",
154
+ 'overwrite_files': true,
149
155
  'trigger': "daily",
150
156
  'trigger_actions': ["create"],
151
157
  'value': {"limit":"1"},
@@ -173,7 +179,9 @@ await Automation.create({
173
179
  * `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.
174
180
  * `description` (string): Description for the this Automation.
175
181
  * `disabled` (boolean): If true, this automation will not run.
182
+ * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
176
183
  * `name` (string): Name for this automation.
184
+ * `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
177
185
  * `trigger` (string): How this automation is triggered to run.
178
186
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
179
187
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -218,7 +226,9 @@ await automation.update({
218
226
  'always_overwrite_size_matching_files': true,
219
227
  'description': "example",
220
228
  'disabled': true,
229
+ 'ignore_locked_folders': true,
221
230
  'name': "example",
231
+ 'overwrite_files': true,
222
232
  'trigger': "daily",
223
233
  'trigger_actions': ["create"],
224
234
  'value': {"limit":"1"},
@@ -246,7 +256,9 @@ await automation.update({
246
256
  * `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.
247
257
  * `description` (string): Description for the this Automation.
248
258
  * `disabled` (boolean): If true, this automation will not run.
259
+ * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
249
260
  * `name` (string): Name for this automation.
261
+ * `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
250
262
  * `trigger` (string): How this automation is triggered to run.
251
263
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
252
264
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -272,9 +284,11 @@ await automation.update({
272
284
  1,
273
285
  2
274
286
  ],
287
+ "ignore_locked_folders": true,
275
288
  "interval": "week",
276
289
  "last_modified_at": "2000-01-01T01:00:00Z",
277
290
  "name": "example",
291
+ "overwrite_files": true,
278
292
  "path": "example",
279
293
  "recurring_day": 25,
280
294
  "schedule": "example",
@@ -388,7 +388,7 @@
388
388
  * `sftp_enabled` (boolean): Is SFTP enabled?
389
389
  * `sftp_host_key_type` (string): Sftp Host Key Type
390
390
  * `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
391
- * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
391
+ * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Setting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
392
392
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
393
393
  * `sharing_enabled` (boolean): Allow bundle creation
394
394
  * `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
@@ -627,7 +627,7 @@ await Site.update({
627
627
  * `session_expiry` (double): Session expiry in hours
628
628
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
629
629
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
630
- * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
630
+ * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Setting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
631
631
  * `disable_files_certificate_generation` (boolean): If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
632
632
  * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
633
633
  * `user_lockout_tries` (int64): Number of login tries within `user_lockout_within` hours before users are locked out
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.26';
14
+ var version = '1.2.28';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -103,6 +103,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
103
103
  (0, _defineProperty2.default)(this, "setGroupIds", function (value) {
104
104
  _this.attributes.group_ids = value;
105
105
  });
106
+ // boolean # If true, the Lock Folders behavior will be disregarded for automated actions.
107
+ (0, _defineProperty2.default)(this, "getIgnoreLockedFolders", function () {
108
+ return _this.attributes.ignore_locked_folders;
109
+ });
110
+ (0, _defineProperty2.default)(this, "setIgnoreLockedFolders", function (value) {
111
+ _this.attributes.ignore_locked_folders = value;
112
+ });
106
113
  // string # If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
107
114
  (0, _defineProperty2.default)(this, "getInterval", function () {
108
115
  return _this.attributes.interval;
@@ -124,6 +131,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
124
131
  (0, _defineProperty2.default)(this, "setName", function (value) {
125
132
  _this.attributes.name = value;
126
133
  });
134
+ // boolean # If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
135
+ (0, _defineProperty2.default)(this, "getOverwriteFiles", function () {
136
+ return _this.attributes.overwrite_files;
137
+ });
138
+ (0, _defineProperty2.default)(this, "setOverwriteFiles", function (value) {
139
+ _this.attributes.overwrite_files = value;
140
+ });
127
141
  // string # Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
128
142
  (0, _defineProperty2.default)(this, "getPath", function () {
129
143
  return _this.attributes.path;
@@ -302,7 +316,9 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
302
316
  // 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.
303
317
  // description - string - Description for the this Automation.
304
318
  // disabled - boolean - If true, this automation will not run.
319
+ // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
305
320
  // name - string - Name for this automation.
321
+ // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
306
322
  // trigger - string - How this automation is triggered to run.
307
323
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
308
324
  // value - object - A Hash of attributes specific to the automation type.
@@ -688,7 +704,9 @@ _Automation = Automation;
688
704
  // 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.
689
705
  // description - string - Description for the this Automation.
690
706
  // disabled - boolean - If true, this automation will not run.
707
+ // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
691
708
  // name - string - Name for this automation.
709
+ // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
692
710
  // trigger - string - How this automation is triggered to run.
693
711
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
694
712
  // value - object - A Hash of attributes specific to the automation type.
@@ -505,7 +505,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
505
505
  (0, _defineProperty2.default)(this, "getActiveSftpHostKeyId", function () {
506
506
  return _this.attributes.active_sftp_host_key_id;
507
507
  });
508
- // boolean # Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
508
+ // boolean # Are Insecure Ciphers allowed for SFTP? Note: Setting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
509
509
  (0, _defineProperty2.default)(this, "getSftpInsecureCiphers", function () {
510
510
  return _this.attributes.sftp_insecure_ciphers;
511
511
  });
@@ -736,7 +736,7 @@ _Site = Site;
736
736
  // session_expiry - double - Session expiry in hours
737
737
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
738
738
  // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
739
- // sftp_insecure_ciphers - boolean - Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
739
+ // sftp_insecure_ciphers - boolean - Are Insecure Ciphers allowed for SFTP? Note: Setting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
740
740
  // disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
741
741
  // user_lockout - boolean - Will users be locked out after incorrect login attempts?
742
742
  // user_lockout_tries - int64 - Number of login tries within `user_lockout_within` hours before users are locked out
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
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.26'
8
+ const version = '1.2.28'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -98,6 +98,13 @@ class Automation {
98
98
  this.attributes.group_ids = value
99
99
  }
100
100
 
101
+ // boolean # If true, the Lock Folders behavior will be disregarded for automated actions.
102
+ getIgnoreLockedFolders = () => this.attributes.ignore_locked_folders
103
+
104
+ setIgnoreLockedFolders = value => {
105
+ this.attributes.ignore_locked_folders = value
106
+ }
107
+
101
108
  // string # If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
102
109
  getInterval = () => this.attributes.interval
103
110
 
@@ -119,6 +126,13 @@ class Automation {
119
126
  this.attributes.name = value
120
127
  }
121
128
 
129
+ // boolean # If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
130
+ getOverwriteFiles = () => this.attributes.overwrite_files
131
+
132
+ setOverwriteFiles = value => {
133
+ this.attributes.overwrite_files = value
134
+ }
135
+
122
136
  // string # Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
123
137
  getPath = () => this.attributes.path
124
138
 
@@ -274,7 +288,9 @@ class Automation {
274
288
  // 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.
275
289
  // description - string - Description for the this Automation.
276
290
  // disabled - boolean - If true, this automation will not run.
291
+ // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
277
292
  // name - string - Name for this automation.
293
+ // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
278
294
  // trigger - string - How this automation is triggered to run.
279
295
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
280
296
  // value - object - A Hash of attributes specific to the automation type.
@@ -492,7 +508,9 @@ class Automation {
492
508
  // 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.
493
509
  // description - string - Description for the this Automation.
494
510
  // disabled - boolean - If true, this automation will not run.
511
+ // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
495
512
  // name - string - Name for this automation.
513
+ // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
496
514
  // trigger - string - How this automation is triggered to run.
497
515
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
498
516
  // value - object - A Hash of attributes specific to the automation type.
@@ -382,7 +382,7 @@ class Site {
382
382
  // int64 # Id of the currently selected custom SFTP Host Key
383
383
  getActiveSftpHostKeyId = () => this.attributes.active_sftp_host_key_id
384
384
 
385
- // boolean # Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
385
+ // boolean # Are Insecure Ciphers allowed for SFTP? Note: Setting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
386
386
  getSftpInsecureCiphers = () => this.attributes.sftp_insecure_ciphers
387
387
 
388
388
  // boolean # Use user FTP roots also for SFTP?
@@ -537,7 +537,7 @@ class Site {
537
537
  // session_expiry - double - Session expiry in hours
538
538
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
539
539
  // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
540
- // sftp_insecure_ciphers - boolean - Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
540
+ // sftp_insecure_ciphers - boolean - Are Insecure Ciphers allowed for SFTP? Note: Setting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
541
541
  // disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
542
542
  // user_lockout - boolean - Will users be locked out after incorrect login attempts?
543
543
  // user_lockout_tries - int64 - Number of login tries within `user_lockout_within` hours before users are locked out