files.com 1.0.188 → 1.0.189

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.188
1
+ 1.0.189
@@ -173,12 +173,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
173
173
  (0, _defineProperty2.default)(this, "setDestination", function (value) {
174
174
  _this.attributes.destination = value;
175
175
  });
176
- (0, _defineProperty2.default)(this, "getClonedFrom", function () {
177
- return _this.attributes.cloned_from;
178
- });
179
- (0, _defineProperty2.default)(this, "setClonedFrom", function (value) {
180
- _this.attributes.cloned_from = value;
181
- });
182
176
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
183
177
  var params,
184
178
  response,
@@ -708,22 +702,14 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
708
702
  throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
709
703
 
710
704
  case 32:
711
- if (!(params['cloned_from'] && !(0, _utils.isInt)(params['cloned_from']))) {
712
- _context5.next = 34;
713
- break;
714
- }
715
-
716
- throw new Error("Bad parameter: cloned_from must be of type Int, received ".concat((0, _utils.getType)(cloned_from)));
717
-
718
- case 34:
719
- _context5.next = 36;
705
+ _context5.next = 34;
720
706
  return _Api.default.sendRequest("/automations", 'POST', params, options);
721
707
 
722
- case 36:
708
+ case 34:
723
709
  response = _context5.sent;
724
710
  return _context5.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, options));
725
711
 
726
- case 38:
712
+ case 36:
727
713
  case "end":
728
714
  return _context5.stop();
729
715
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.188",
3
+ "version": "1.0.189",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -176,13 +176,6 @@ class Automation {
176
176
  this.attributes.destination = value
177
177
  }
178
178
 
179
- // int64 # Set to the ID of automation used a clone template. For
180
- getClonedFrom = () => this.attributes.cloned_from
181
-
182
- setClonedFrom = value => {
183
- this.attributes.cloned_from = value
184
- }
185
-
186
179
 
187
180
  // Parameters:
188
181
  // source - string - Source Path
@@ -387,7 +380,6 @@ class Automation {
387
380
  // 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
388
381
  // value - object - A Hash of attributes specific to the automation type.
389
382
  // automation (required) - string - Automation type
390
- // cloned_from - int64 - Set to the ID of automation used a clone template. For
391
383
  static create = async (params = {}, options = {}) => {
392
384
  if (!params['automation']) {
393
385
  throw new Error('Parameter missing: automation')
@@ -449,10 +441,6 @@ class Automation {
449
441
  throw new Error(`Bad parameter: automation must be of type String, received ${getType(automation)}`)
450
442
  }
451
443
 
452
- if (params['cloned_from'] && !isInt(params['cloned_from'])) {
453
- throw new Error(`Bad parameter: cloned_from must be of type Int, received ${getType(cloned_from)}`)
454
- }
455
-
456
444
  const response = await Api.sendRequest(`/automations`, 'POST', params, options)
457
445
 
458
446
  return new Automation(response?.data, options)
@@ -31,10 +31,10 @@ class Preview {
31
31
  // string # Link to download preview
32
32
  getDownloadUri = () => this.attributes.download_uri
33
33
 
34
- // string # Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
34
+ // string # Preview type. Can be image, pdf, pdf_native, video, or audio
35
35
  getType = () => this.attributes.type
36
36
 
37
- // int64 # Preview size
37
+ // string # Preview size
38
38
  getSize = () => this.attributes.size
39
39
 
40
40
  }