files.com 1.2.46 → 1.2.47

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.46
1
+ 1.2.47
@@ -247,6 +247,7 @@ file.path = myFilePath
247
247
  await file.copy({
248
248
  'destination': "destination",
249
249
  'structure': true,
250
+ 'overwrite': true,
250
251
  })
251
252
  ```
252
253
 
@@ -255,6 +256,7 @@ await file.copy({
255
256
  * `path` (string): Required - Path to operate on.
256
257
  * `destination` (string): Required - Copy destination path.
257
258
  * `structure` (boolean): Copy structure only?
259
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
258
260
 
259
261
  ### Example Response
260
262
 
@@ -275,6 +277,7 @@ file.path = myFilePath
275
277
 
276
278
  await file.move({
277
279
  'destination': "destination",
280
+ 'overwrite': true,
278
281
  })
279
282
  ```
280
283
 
@@ -282,6 +285,7 @@ await file.move({
282
285
 
283
286
  * `path` (string): Required - Path to operate on.
284
287
  * `destination` (string): Required - Move destination path.
288
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
285
289
 
286
290
  ### Example Response
287
291
 
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.46';
14
+ var version = '1.2.47';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -548,6 +548,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
548
548
  // Parameters:
549
549
  // destination (required) - string - Copy destination path.
550
550
  // structure - boolean - Copy structure only?
551
+ // overwrite - boolean - Overwrite existing file(s) in the destination?
551
552
  (0, _defineProperty2.default)(this, "copy", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
552
553
  var params,
553
554
  response,
@@ -626,6 +627,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
626
627
  //
627
628
  // Parameters:
628
629
  // destination (required) - string - Move destination path.
630
+ // overwrite - boolean - Overwrite existing file(s) in the destination?
629
631
  (0, _defineProperty2.default)(this, "move", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
630
632
  var params,
631
633
  response,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.46",
3
+ "version": "1.2.47",
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.46'
8
+ const version = '1.2.47'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -609,6 +609,7 @@ class File {
609
609
  // Parameters:
610
610
  // destination (required) - string - Copy destination path.
611
611
  // structure - boolean - Copy structure only?
612
+ // overwrite - boolean - Overwrite existing file(s) in the destination?
612
613
  copy = async (params = {}) => {
613
614
  if (!this.attributes.path) {
614
615
  throw new errors.EmptyPropertyError('Current object has no path')
@@ -653,6 +654,7 @@ class File {
653
654
  //
654
655
  // Parameters:
655
656
  // destination (required) - string - Move destination path.
657
+ // overwrite - boolean - Overwrite existing file(s) in the destination?
656
658
  move = async (params = {}) => {
657
659
  if (!this.attributes.path) {
658
660
  throw new errors.EmptyPropertyError('Current object has no path')