files.com 1.2.111 → 1.2.113

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -190,42 +190,6 @@ Files.configureNetwork({
190
190
  })
191
191
  ```
192
192
 
193
- ### Logging
194
-
195
- The Files.com SDK is compatible with the standard log4j logging scheme.
196
-
197
- Add `com.files` logger to your `Loggers` root in the `log4j2.xml` file.
198
-
199
- ```xml title="log4j2.xml"
200
- <Loggers>
201
- <!-- set preferred level -->
202
- <Logger name="com.files" level="TRACE" />
203
- <!-- to enable network request -->
204
- <Logger name="okhttp3.logging.wire" level="INFO"/>
205
- </Loggers>
206
- ```
207
-
208
- Create a `resources/log4j2.xml` file.
209
-
210
- ```xml title="resources/log4j2.xml"
211
- <?xml version="1.0" encoding="UTF-8"?>
212
- <Configuration>
213
- <Appenders>
214
- <Console name="Console" target="SYSTEM_OUT">
215
- <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
216
- </Console>
217
- </Appenders>
218
- <Loggers>
219
- <!-- set preferred level -->
220
- <Logger name="com.files" level="TRACE"/>
221
- <!-- to enable network request -->
222
- <Logger name="okhttp3.logging.wire" level="INFO"/>
223
- </Loggers>
224
- </Configuration>
225
- ```
226
-
227
- You can read more about [log4j2 configuration](https://logging.apache.org/log4j/2.x/manual/configuration.html).
228
-
229
193
  ## Errors
230
194
 
231
195
  The Files.com JavaScript SDK will return errors by raising exceptions. There are many exception classes defined in the Files SDK that correspond
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.111
1
+ 1.2.113
@@ -31,7 +31,7 @@
31
31
  * `platform` (string): If this API key represents a Desktop app, what platform was it created on?
32
32
  * `url` (string): URL for API host.
33
33
  * `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
34
- * `path` (string): Folder path restriction for this API key.
34
+ * `path` (string): Folder path restriction for `office_integration` permission set API keys.
35
35
 
36
36
  ---
37
37
 
@@ -101,7 +101,7 @@ await ApiKey.create({
101
101
  * `expires_at` (string): API Key expiration date
102
102
  * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
103
103
  * `name` (string): Required - Internal name for the API Key. For your use.
104
- * `path` (string): Folder path restriction for this API key.
104
+ * `path` (string): Folder path restriction for `office_integration` permission set API keys.
105
105
 
106
106
  ---
107
107
 
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.111';
14
+ var version = '1.2.113';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -114,7 +114,7 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
114
114
  (0, _defineProperty2.default)(this, "setUserId", function (value) {
115
115
  _this.attributes.user_id = value;
116
116
  });
117
- // string # Folder path restriction for this API key.
117
+ // string # Folder path restriction for `office_integration` permission set API keys.
118
118
  (0, _defineProperty2.default)(this, "getPath", function () {
119
119
  return _this.attributes.path;
120
120
  });
@@ -430,7 +430,7 @@ _ApiKey = ApiKey;
430
430
  // expires_at - string - API Key expiration date
431
431
  // permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
432
432
  // name (required) - string - Internal name for the API Key. For your use.
433
- // path - string - Folder path restriction for this API key.
433
+ // path - string - Folder path restriction for `office_integration` permission set API keys.
434
434
  (0, _defineProperty2.default)(ApiKey, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
435
435
  var params,
436
436
  options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.111",
3
+ "version": "1.2.113",
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.111'
8
+ const version = '1.2.113'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -108,7 +108,7 @@ class ApiKey {
108
108
  this.attributes.user_id = value
109
109
  }
110
110
 
111
- // string # Folder path restriction for this API key.
111
+ // string # Folder path restriction for `office_integration` permission set API keys.
112
112
  getPath = () => this.attributes.path
113
113
 
114
114
  setPath = value => {
@@ -271,7 +271,7 @@ class ApiKey {
271
271
  // expires_at - string - API Key expiration date
272
272
  // permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
273
273
  // name (required) - string - Internal name for the API Key. For your use.
274
- // path - string - Folder path restriction for this API key.
274
+ // path - string - Folder path restriction for `office_integration` permission set API keys.
275
275
  static create = async (params = {}, options = {}) => {
276
276
  if (!params.name) {
277
277
  throw new errors.MissingParameterError('Parameter missing: name')