files.com 1.2.253 → 1.2.254

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.253
1
+ 1.2.254
@@ -5,6 +5,7 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
+ "always_serialize_jobs": true,
8
9
  "always_overwrite_size_matching_files": true,
9
10
  "automation": "create_folder",
10
11
  "deleted": true,
@@ -90,6 +91,7 @@
90
91
  ```
91
92
 
92
93
  * `id` (int64): Automation ID
94
+ * `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
93
95
  * `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. This setting has no effect unless `overwrite_files` is also set to `true`.
94
96
  * `automation` (string): Automation type
95
97
  * `deleted` (boolean): Indicates if the automation has been deleted.
@@ -179,6 +181,7 @@ await Automation.create({
179
181
  'schedule_times_of_day': ["7:30","11:30"],
180
182
  'schedule_time_zone': "Eastern Time (US & Canada)",
181
183
  'always_overwrite_size_matching_files': true,
184
+ 'always_serialize_jobs': true,
182
185
  'description': "example",
183
186
  'disabled': true,
184
187
  'exclude_pattern': "path/to/exclude/*",
@@ -215,6 +218,7 @@ await Automation.create({
215
218
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
216
219
  * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
217
220
  * `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. This setting has no effect unless `overwrite_files` is also set to `true`.
221
+ * `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
218
222
  * `description` (string): Description for the this Automation.
219
223
  * `disabled` (boolean): If true, this automation will not run.
220
224
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -269,6 +273,7 @@ await automation.update({
269
273
  'schedule_times_of_day': ["7:30","11:30"],
270
274
  'schedule_time_zone': "Eastern Time (US & Canada)",
271
275
  'always_overwrite_size_matching_files': true,
276
+ 'always_serialize_jobs': true,
272
277
  'description': "example",
273
278
  'disabled': true,
274
279
  'exclude_pattern': "path/to/exclude/*",
@@ -305,6 +310,7 @@ await automation.update({
305
310
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
306
311
  * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
307
312
  * `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. This setting has no effect unless `overwrite_files` is also set to `true`.
313
+ * `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
308
314
  * `description` (string): Description for the this Automation.
309
315
  * `disabled` (boolean): If true, this automation will not run.
310
316
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -328,6 +334,7 @@ await automation.update({
328
334
  ```json
329
335
  {
330
336
  "id": 1,
337
+ "always_serialize_jobs": true,
331
338
  "always_overwrite_size_matching_files": true,
332
339
  "automation": "create_folder",
333
340
  "deleted": true,
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.253';
15
+ var version = '1.2.254';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -39,6 +39,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
39
39
  (0, _defineProperty2.default)(this, "setId", function (value) {
40
40
  _this.attributes.id = value;
41
41
  });
42
+ // boolean # Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
43
+ (0, _defineProperty2.default)(this, "getAlwaysSerializeJobs", function () {
44
+ return _this.attributes.always_serialize_jobs;
45
+ });
46
+ (0, _defineProperty2.default)(this, "setAlwaysSerializeJobs", function (value) {
47
+ _this.attributes.always_serialize_jobs = value;
48
+ });
42
49
  // 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. This setting has no effect unless `overwrite_files` is also set to `true`.
43
50
  (0, _defineProperty2.default)(this, "getAlwaysOverwriteSizeMatchingFiles", function () {
44
51
  return _this.attributes.always_overwrite_size_matching_files;
@@ -354,6 +361,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
354
361
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
355
362
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
356
363
  // 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. This setting has no effect unless `overwrite_files` is also set to `true`.
364
+ // always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
357
365
  // description - string - Description for the this Automation.
358
366
  // disabled - boolean - If true, this automation will not run.
359
367
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -771,6 +779,7 @@ _Automation = Automation;
771
779
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
772
780
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
773
781
  // 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. This setting has no effect unless `overwrite_files` is also set to `true`.
782
+ // always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
774
783
  // description - string - Description for the this Automation.
775
784
  // disabled - boolean - If true, this automation will not run.
776
785
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.253",
3
+ "version": "1.2.254",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.253'
9
+ const version = '1.2.254'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -35,6 +35,13 @@ class Automation {
35
35
  this.attributes.id = value
36
36
  }
37
37
 
38
+ // boolean # Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
39
+ getAlwaysSerializeJobs = () => this.attributes.always_serialize_jobs
40
+
41
+ setAlwaysSerializeJobs = value => {
42
+ this.attributes.always_serialize_jobs = value
43
+ }
44
+
38
45
  // 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. This setting has no effect unless `overwrite_files` is also set to `true`.
39
46
  getAlwaysOverwriteSizeMatchingFiles = () => this.attributes.always_overwrite_size_matching_files
40
47
 
@@ -327,6 +334,7 @@ class Automation {
327
334
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
328
335
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
329
336
  // 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. This setting has no effect unless `overwrite_files` is also set to `true`.
337
+ // always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
330
338
  // description - string - Description for the this Automation.
331
339
  // disabled - boolean - If true, this automation will not run.
332
340
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -568,6 +576,7 @@ class Automation {
568
576
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
569
577
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
570
578
  // 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. This setting has no effect unless `overwrite_files` is also set to `true`.
579
+ // always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
571
580
  // description - string - Description for the this Automation.
572
581
  // disabled - boolean - If true, this automation will not run.
573
582
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.