files.com 1.0.197 → 1.0.198

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.0.197
1
+ 1.0.198
@@ -8,6 +8,7 @@
8
8
  "display_name": "file.txt",
9
9
  "type": "file",
10
10
  "size": 1024,
11
+ "created_at": "2000-01-01T01:00:00Z",
11
12
  "mtime": "2000-01-01T01:00:00Z",
12
13
  "provided_mtime": "2000-01-01T01:00:00Z",
13
14
  "crc32": "70976923",
@@ -33,6 +34,7 @@
33
34
  * `display_name` (string): File/Folder display name
34
35
  * `type` (string): Type: `directory` or `file`.
35
36
  * `size` (int64): File/Folder size
37
+ * `created_at` (date-time): File created date/time
36
38
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
37
39
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
38
40
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
@@ -139,6 +141,7 @@ await file.download({
139
141
  "display_name": "file.txt",
140
142
  "type": "file",
141
143
  "size": 1024,
144
+ "created_at": "2000-01-01T01:00:00Z",
142
145
  "mtime": "2000-01-01T01:00:00Z",
143
146
  "provided_mtime": "2000-01-01T01:00:00Z",
144
147
  "crc32": "70976923",
@@ -188,6 +191,7 @@ await file.update({
188
191
  "display_name": "file.txt",
189
192
  "type": "file",
190
193
  "size": 1024,
194
+ "created_at": "2000-01-01T01:00:00Z",
191
195
  "mtime": "2000-01-01T01:00:00Z",
192
196
  "provided_mtime": "2000-01-01T01:00:00Z",
193
197
  "crc32": "70976923",
@@ -8,6 +8,7 @@
8
8
  "display_name": "file.txt",
9
9
  "type": "file",
10
10
  "size": 1024,
11
+ "created_at": "2000-01-01T01:00:00Z",
11
12
  "mtime": "2000-01-01T01:00:00Z",
12
13
  "provided_mtime": "2000-01-01T01:00:00Z",
13
14
  "crc32": "70976923",
@@ -33,6 +34,7 @@
33
34
  * `display_name` (string): File/Folder display name
34
35
  * `type` (string): Type: `directory` or `file`.
35
36
  * `size` (int64): File/Folder size
37
+ * `created_at` (date-time): File created date/time
36
38
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
37
39
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
38
40
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
@@ -209,6 +209,9 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
209
209
  (0, _defineProperty2.default)(this, "setSize", function (value) {
210
210
  _this.attributes.size = value;
211
211
  });
212
+ (0, _defineProperty2.default)(this, "getCreatedAt", function () {
213
+ return _this.attributes.created_at;
214
+ });
212
215
  (0, _defineProperty2.default)(this, "getMtime", function () {
213
216
  return _this.attributes.mtime;
214
217
  });
@@ -75,6 +75,9 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
75
75
  (0, _defineProperty2.default)(this, "setSize", function (value) {
76
76
  _this.attributes.size = value;
77
77
  });
78
+ (0, _defineProperty2.default)(this, "getCreatedAt", function () {
79
+ return _this.attributes.created_at;
80
+ });
78
81
  (0, _defineProperty2.default)(this, "getMtime", function () {
79
82
  return _this.attributes.mtime;
80
83
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.197",
3
+ "version": "1.0.198",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -221,6 +221,9 @@ class File {
221
221
  this.attributes.size = value
222
222
  }
223
223
 
224
+ // date-time # File created date/time
225
+ getCreatedAt = () => this.attributes.created_at
226
+
224
227
  // date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
225
228
  getMtime = () => this.attributes.mtime
226
229
 
@@ -52,6 +52,9 @@ class Folder {
52
52
  this.attributes.size = value
53
53
  }
54
54
 
55
+ // date-time # File created date/time
56
+ getCreatedAt = () => this.attributes.created_at
57
+
55
58
  // date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
56
59
  getMtime = () => this.attributes.mtime
57
60