files.com 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.12
1
+ 1.1.13
@@ -12,7 +12,6 @@
12
12
  "key": "[key]",
13
13
  "last_use_at": "2000-01-01T01:00:00Z",
14
14
  "name": "My Main API Key",
15
- "path": "shared/docs",
16
15
  "permission_set": "full",
17
16
  "platform": "win32",
18
17
  "url": "example",
@@ -28,11 +27,11 @@
28
27
  * `key` (string): API Key actual key string
29
28
  * `last_use_at` (date-time): API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
30
29
  * `name` (string): Internal name for the API Key. For your use.
31
- * `path` (string): Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
32
30
  * `permission_set` (string): Permissions for this API Key. 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). 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.
33
31
  * `platform` (string): If this API key represents a Desktop app, what platform was it created on?
34
32
  * `url` (string): URL for API host.
35
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.
36
35
 
37
36
  ---
38
37
 
@@ -168,7 +167,6 @@ await api_key.update({
168
167
  "key": "[key]",
169
168
  "last_use_at": "2000-01-01T01:00:00Z",
170
169
  "name": "My Main API Key",
171
- "path": "shared/docs",
172
170
  "permission_set": "full",
173
171
  "platform": "win32",
174
172
  "url": "example",
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.1.12';
14
+ var version = '1.1.13';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -86,13 +86,6 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
86
86
  (0, _defineProperty2.default)(this, "setName", function (value) {
87
87
  _this.attributes.name = value;
88
88
  });
89
- // string # Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
90
- (0, _defineProperty2.default)(this, "getPath", function () {
91
- return _this.attributes.path;
92
- });
93
- (0, _defineProperty2.default)(this, "setPath", function (value) {
94
- _this.attributes.path = value;
95
- });
96
89
  // string # Permissions for this API Key. 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). 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.
97
90
  (0, _defineProperty2.default)(this, "getPermissionSet", function () {
98
91
  return _this.attributes.permission_set;
@@ -121,6 +114,13 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
121
114
  (0, _defineProperty2.default)(this, "setUserId", function (value) {
122
115
  _this.attributes.user_id = value;
123
116
  });
117
+ // string # Folder path restriction for this api key.
118
+ (0, _defineProperty2.default)(this, "getPath", function () {
119
+ return _this.attributes.path;
120
+ });
121
+ (0, _defineProperty2.default)(this, "setPath", function (value) {
122
+ _this.attributes.path = value;
123
+ });
124
124
  // Parameters:
125
125
  // name - string - Internal name for the API Key. For your use.
126
126
  // description - string - User-supplied description of API key.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
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.1.12'
8
+ const version = '1.1.13'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -76,13 +76,6 @@ class ApiKey {
76
76
  this.attributes.name = value
77
77
  }
78
78
 
79
- // string # Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
80
- getPath = () => this.attributes.path
81
-
82
- setPath = value => {
83
- this.attributes.path = value
84
- }
85
-
86
79
  // string # Permissions for this API Key. 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). 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.
87
80
  getPermissionSet = () => this.attributes.permission_set
88
81
 
@@ -111,6 +104,13 @@ class ApiKey {
111
104
  this.attributes.user_id = value
112
105
  }
113
106
 
107
+ // string # Folder path restriction for this api key.
108
+ getPath = () => this.attributes.path
109
+
110
+ setPath = value => {
111
+ this.attributes.path = value
112
+ }
113
+
114
114
 
115
115
  // Parameters:
116
116
  // name - string - Internal name for the API Key. For your use.