files.com 1.2.174 → 1.2.175

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.174
1
+ 1.2.175
@@ -200,7 +200,7 @@ await Automation.create({
200
200
 
201
201
  ---
202
202
 
203
- ## Manually run automation
203
+ ## Manually Run Automation
204
204
 
205
205
  ```
206
206
  const automation = await Automation.find(id)
@@ -111,7 +111,7 @@ await Behavior.create({
111
111
 
112
112
  ---
113
113
 
114
- ## Test webhook
114
+ ## Test Webhook
115
115
 
116
116
  ```
117
117
  await Behavior.webhookTest({
@@ -18,7 +18,7 @@
18
18
 
19
19
  ---
20
20
 
21
- ## Show site DNS configuration
21
+ ## Show Site DNS Configuration
22
22
 
23
23
  ```
24
24
  await DnsRecord.list
@@ -97,7 +97,7 @@
97
97
 
98
98
  ---
99
99
 
100
- ## Upload file
100
+ ## Upload File
101
101
 
102
102
  ```
103
103
  await File.create(path, {
@@ -132,7 +132,7 @@ await File.create(path, {
132
132
 
133
133
  ---
134
134
 
135
- ## Find file/folder by path
135
+ ## Find File/Folder by Path
136
136
 
137
137
  ```
138
138
  await File.find(path, {
@@ -151,7 +151,7 @@ await File.find(path, {
151
151
 
152
152
  ---
153
153
 
154
- ## Download file
154
+ ## Download File
155
155
 
156
156
  ```
157
157
  const file = await File.find(path)
@@ -222,7 +222,7 @@ await file.download({
222
222
 
223
223
  ---
224
224
 
225
- ## Update file/folder metadata
225
+ ## Update File/Folder Metadata
226
226
 
227
227
  ```
228
228
  const file = await File.find(path)
@@ -293,7 +293,7 @@ await file.update({
293
293
 
294
294
  ---
295
295
 
296
- ## Delete file/folder
296
+ ## Delete File/Folder
297
297
 
298
298
  ```
299
299
  const file = await File.find(path)
@@ -311,7 +311,7 @@ await file.delete({
311
311
 
312
312
  ---
313
313
 
314
- ## Copy file/folder
314
+ ## Copy File/Folder
315
315
 
316
316
  ```
317
317
  const file = await File.find(path)
@@ -341,7 +341,7 @@ await file.copy({
341
341
 
342
342
  ---
343
343
 
344
- ## Move file/folder
344
+ ## Move File/Folder
345
345
 
346
346
  ```
347
347
  const file = await File.find(path)
@@ -115,7 +115,7 @@ await Folder.listFor(path, {
115
115
 
116
116
  ---
117
117
 
118
- ## Create folder
118
+ ## Create Folder
119
119
 
120
120
  ```
121
121
  await Folder.create(path, {
@@ -471,7 +471,7 @@
471
471
 
472
472
  ---
473
473
 
474
- ## Show site settings
474
+ ## Show Site Settings
475
475
 
476
476
  ```
477
477
  await Site.get
@@ -489,7 +489,7 @@ await Site.getUsage
489
489
 
490
490
  ---
491
491
 
492
- ## Update site settings
492
+ ## Update Site Settings
493
493
 
494
494
  ```
495
495
  await Site.update({
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.174';
14
+ var version = '1.2.175';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -271,7 +271,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
271
271
  (0, _defineProperty2.default)(this, "setWebhookUrl", function (value) {
272
272
  _this.attributes.webhook_url = value;
273
273
  });
274
- // Manually run automation
274
+ // Manually Run Automation
275
275
  (0, _defineProperty2.default)(this, "manualRun", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
276
276
  var params,
277
277
  _args = arguments;
@@ -470,7 +470,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
470
470
  (0, _defineProperty2.default)(this, "setWithRename", function (value) {
471
471
  _this.attributes.with_rename = value;
472
472
  });
473
- // Download file
473
+ // Download File
474
474
  //
475
475
  // Parameters:
476
476
  // action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
@@ -663,7 +663,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
663
663
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
664
664
  return _this.delete(params);
665
665
  });
666
- // Copy file/folder
666
+ // Copy File/Folder
667
667
  //
668
668
  // Parameters:
669
669
  // destination (required) - string - Copy destination path.
@@ -743,7 +743,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
743
743
  }
744
744
  }, _callee9);
745
745
  })));
746
- // Move file/folder
746
+ // Move File/Folder
747
747
  //
748
748
  // Parameters:
749
749
  // destination (required) - string - Move destination path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.174",
3
+ "version": "1.2.175",
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.174'
8
+ const version = '1.2.175'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -266,7 +266,7 @@ class Automation {
266
266
  this.attributes.webhook_url = value
267
267
  }
268
268
 
269
- // Manually run automation
269
+ // Manually Run Automation
270
270
  manualRun = async (params = {}) => {
271
271
  if (!this.attributes.id) {
272
272
  throw new errors.EmptyPropertyError('Current object has no id')
@@ -613,7 +613,7 @@ class File {
613
613
  this.attributes.with_rename = value
614
614
  }
615
615
 
616
- // Download file
616
+ // Download File
617
617
  //
618
618
  // Parameters:
619
619
  // action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
@@ -724,7 +724,7 @@ class File {
724
724
  destroy = (params = {}) =>
725
725
  this.delete(params)
726
726
 
727
- // Copy file/folder
727
+ // Copy File/Folder
728
728
  //
729
729
  // Parameters:
730
730
  // destination (required) - string - Copy destination path.
@@ -770,7 +770,7 @@ class File {
770
770
  return new FileAction(response?.data, this.options)
771
771
  }
772
772
 
773
- // Move file/folder
773
+ // Move File/Folder
774
774
  //
775
775
  // Parameters:
776
776
  // destination (required) - string - Move destination path.