files.com 1.2.50 → 1.2.51

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.50
1
+ 1.2.51
@@ -15,6 +15,7 @@
15
15
  "destination"
16
16
  ],
17
17
  "disabled": true,
18
+ "flatten_destination_structure": true,
18
19
  "group_ids": [
19
20
  1,
20
21
  2
@@ -69,6 +70,7 @@
69
70
  * `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
70
71
  * `destinations` (array): Destination Paths
71
72
  * `disabled` (boolean): If true, this automation will not run.
73
+ * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
72
74
  * `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
73
75
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
74
76
  * `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`
@@ -151,6 +153,7 @@ await Automation.create({
151
153
  'always_overwrite_size_matching_files': true,
152
154
  'description': "example",
153
155
  'disabled': true,
156
+ 'flatten_destination_structure': true,
154
157
  'ignore_locked_folders': true,
155
158
  'name': "example",
156
159
  'overwrite_files': true,
@@ -182,6 +185,7 @@ await Automation.create({
182
185
  * `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.
183
186
  * `description` (string): Description for the this Automation.
184
187
  * `disabled` (boolean): If true, this automation will not run.
188
+ * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
185
189
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
186
190
  * `name` (string): Name for this automation.
187
191
  * `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.
@@ -230,6 +234,7 @@ await automation.update({
230
234
  'always_overwrite_size_matching_files': true,
231
235
  'description': "example",
232
236
  'disabled': true,
237
+ 'flatten_destination_structure': true,
233
238
  'ignore_locked_folders': true,
234
239
  'name': "example",
235
240
  'overwrite_files': true,
@@ -261,6 +266,7 @@ await automation.update({
261
266
  * `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.
262
267
  * `description` (string): Description for the this Automation.
263
268
  * `disabled` (boolean): If true, this automation will not run.
269
+ * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
264
270
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
265
271
  * `name` (string): Name for this automation.
266
272
  * `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.
@@ -286,6 +292,7 @@ await automation.update({
286
292
  "destination"
287
293
  ],
288
294
  "disabled": true,
295
+ "flatten_destination_structure": true,
289
296
  "group_ids": [
290
297
  1,
291
298
  2
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.50';
14
+ var version = '1.2.51';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -96,6 +96,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
96
96
  (0, _defineProperty2.default)(this, "setDisabled", function (value) {
97
97
  _this.attributes.disabled = value;
98
98
  });
99
+ // boolean # Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
100
+ (0, _defineProperty2.default)(this, "getFlattenDestinationStructure", function () {
101
+ return _this.attributes.flatten_destination_structure;
102
+ });
103
+ (0, _defineProperty2.default)(this, "setFlattenDestinationStructure", function (value) {
104
+ _this.attributes.flatten_destination_structure = value;
105
+ });
99
106
  // array # IDs of Groups for the Automation (i.e. who to Request File from)
100
107
  (0, _defineProperty2.default)(this, "getGroupIds", function () {
101
108
  return _this.attributes.group_ids;
@@ -323,6 +330,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
323
330
  // 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.
324
331
  // description - string - Description for the this Automation.
325
332
  // disabled - boolean - If true, this automation will not run.
333
+ // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
326
334
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
327
335
  // name - string - Name for this automation.
328
336
  // 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.
@@ -718,6 +726,7 @@ _Automation = Automation;
718
726
  // 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.
719
727
  // description - string - Description for the this Automation.
720
728
  // disabled - boolean - If true, this automation will not run.
729
+ // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
721
730
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
722
731
  // name - string - Name for this automation.
723
732
  // 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.50",
3
+ "version": "1.2.51",
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.50'
8
+ const version = '1.2.51'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -91,6 +91,13 @@ class Automation {
91
91
  this.attributes.disabled = value
92
92
  }
93
93
 
94
+ // boolean # Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
95
+ getFlattenDestinationStructure = () => this.attributes.flatten_destination_structure
96
+
97
+ setFlattenDestinationStructure = value => {
98
+ this.attributes.flatten_destination_structure = value
99
+ }
100
+
94
101
  // array # IDs of Groups for the Automation (i.e. who to Request File from)
95
102
  getGroupIds = () => this.attributes.group_ids
96
103
 
@@ -295,6 +302,7 @@ class Automation {
295
302
  // 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.
296
303
  // description - string - Description for the this Automation.
297
304
  // disabled - boolean - If true, this automation will not run.
305
+ // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
298
306
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
299
307
  // name - string - Name for this automation.
300
308
  // 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.
@@ -520,6 +528,7 @@ class Automation {
520
528
  // 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.
521
529
  // description - string - Description for the this Automation.
522
530
  // disabled - boolean - If true, this automation will not run.
531
+ // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
523
532
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
524
533
  // name - string - Name for this automation.
525
534
  // 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.