files.com 1.0.225 → 1.0.226

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.225
1
+ 1.0.226
@@ -17,6 +17,7 @@
17
17
  "region": "us-east-1",
18
18
  "permissions": "rwd",
19
19
  "subfolders_locked?": true,
20
+ "is_locked": true,
20
21
  "download_uri": "https://mysite.files.com/...",
21
22
  "priority_color": "red",
22
23
  "preview_id": 1,
@@ -37,6 +38,7 @@
37
38
  * `region` (string): Region location
38
39
  * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
39
40
  * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
41
+ * `is_locked` (boolean): Is this folder locked and unable to be modified?
40
42
  * `download_uri` (string): Link to download file. Provided only in response to a download request.
41
43
  * `priority_color` (string): Bookmark/priority color of file/folder
42
44
  * `preview_id` (int64): File preview ID
@@ -144,6 +146,7 @@ await file.download({
144
146
  "region": "us-east-1",
145
147
  "permissions": "rwd",
146
148
  "subfolders_locked?": true,
149
+ "is_locked": true,
147
150
  "download_uri": "https://mysite.files.com/...",
148
151
  "priority_color": "red",
149
152
  "preview_id": 1,
@@ -188,6 +191,7 @@ await file.update({
188
191
  "region": "us-east-1",
189
192
  "permissions": "rwd",
190
193
  "subfolders_locked?": true,
194
+ "is_locked": true,
191
195
  "download_uri": "https://mysite.files.com/...",
192
196
  "priority_color": "red",
193
197
  "preview_id": 1,
@@ -17,6 +17,7 @@
17
17
  "region": "us-east-1",
18
18
  "permissions": "rwd",
19
19
  "subfolders_locked?": true,
20
+ "is_locked": true,
20
21
  "download_uri": "https://mysite.files.com/...",
21
22
  "priority_color": "red",
22
23
  "preview_id": 1,
@@ -37,6 +38,7 @@
37
38
  * `region` (string): Region location
38
39
  * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
39
40
  * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
41
+ * `is_locked` (boolean): Is this folder locked and unable to be modified?
40
42
  * `download_uri` (string): Link to download file. Provided only in response to a download request.
41
43
  * `priority_color` (string): Bookmark/priority color of file/folder
42
44
  * `preview_id` (int64): File preview ID
@@ -220,6 +220,12 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
220
220
  (0, _defineProperty2.default)(this, "setSubfoldersLocked", function (value) {
221
221
  _this.attributes.subfolders_locked = value;
222
222
  });
223
+ (0, _defineProperty2.default)(this, "getIsLocked", function () {
224
+ return _this.attributes.is_locked;
225
+ });
226
+ (0, _defineProperty2.default)(this, "setIsLocked", function (value) {
227
+ _this.attributes.is_locked = value;
228
+ });
223
229
  (0, _defineProperty2.default)(this, "getDownloadUri", function () {
224
230
  return _this.attributes.download_uri;
225
231
  });
@@ -107,6 +107,12 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
107
107
  (0, _defineProperty2.default)(this, "setSubfoldersLocked", function (value) {
108
108
  _this.attributes.subfolders_locked = value;
109
109
  });
110
+ (0, _defineProperty2.default)(this, "getIsLocked", function () {
111
+ return _this.attributes.is_locked;
112
+ });
113
+ (0, _defineProperty2.default)(this, "setIsLocked", function (value) {
114
+ _this.attributes.is_locked = value;
115
+ });
110
116
  (0, _defineProperty2.default)(this, "getDownloadUri", function () {
111
117
  return _this.attributes.download_uri;
112
118
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.225",
3
+ "version": "1.0.226",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -308,6 +308,13 @@ class File {
308
308
  this.attributes.subfolders_locked = value
309
309
  }
310
310
 
311
+ // boolean # Is this folder locked and unable to be modified?
312
+ getIsLocked = () => this.attributes.is_locked
313
+
314
+ setIsLocked = value => {
315
+ this.attributes.is_locked = value
316
+ }
317
+
311
318
  // string # Link to download file. Provided only in response to a download request.
312
319
  getDownloadUri = () => this.attributes.download_uri
313
320
 
@@ -111,6 +111,13 @@ class Folder {
111
111
  this.attributes.subfolders_locked = value
112
112
  }
113
113
 
114
+ // boolean # Is this folder locked and unable to be modified?
115
+ getIsLocked = () => this.attributes.is_locked
116
+
117
+ setIsLocked = value => {
118
+ this.attributes.is_locked = value
119
+ }
120
+
114
121
  // string # Link to download file. Provided only in response to a download request.
115
122
  getDownloadUri = () => this.attributes.download_uri
116
123