files.com 1.2.72 → 1.2.73
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/File.md +68 -0
- package/docs/models/Folder.md +32 -0
- package/lib/Files.js +1 -1
- package/lib/models/File.js +106 -0
- package/lib/models/Folder.js +105 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/File.js +106 -0
- package/src/models/Folder.js +105 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.73
|
package/docs/models/File.md
CHANGED
@@ -5,10 +5,27 @@
|
|
5
5
|
```
|
6
6
|
{
|
7
7
|
"path": "path/file.txt",
|
8
|
+
"created_by_id": 1,
|
9
|
+
"created_by_api_key_id": 1,
|
10
|
+
"created_by_as2_incoming_message_id": 1,
|
11
|
+
"created_by_automation_id": 1,
|
12
|
+
"created_by_bundle_registration_id": 1,
|
13
|
+
"created_by_inbox_id": 1,
|
14
|
+
"created_by_remote_server_id": 1,
|
15
|
+
"created_by_remote_server_sync_id": 1,
|
16
|
+
"custom_metadata": {
|
17
|
+
"key": "value"
|
18
|
+
},
|
8
19
|
"display_name": "file.txt",
|
9
20
|
"type": "file",
|
10
21
|
"size": 1024,
|
11
22
|
"created_at": "2000-01-01T01:00:00Z",
|
23
|
+
"last_modified_by_id": 1,
|
24
|
+
"last_modified_by_api_key_id": 1,
|
25
|
+
"last_modified_by_automation_id": 1,
|
26
|
+
"last_modified_by_bundle_registration_id": 1,
|
27
|
+
"last_modified_by_remote_server_id": 1,
|
28
|
+
"last_modified_by_remote_server_sync_id": 1,
|
12
29
|
"mtime": "2000-01-01T01:00:00Z",
|
13
30
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
14
31
|
"crc32": "70976923",
|
@@ -32,10 +49,25 @@
|
|
32
49
|
```
|
33
50
|
|
34
51
|
* `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
52
|
+
* `created_by_id` (int64): User ID of the User who created the file/folder
|
53
|
+
* `created_by_api_key_id` (int64): ID of the API key that created the file/folder
|
54
|
+
* `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
|
55
|
+
* `created_by_automation_id` (int64): ID of the Automation that created the file/folder
|
56
|
+
* `created_by_bundle_registration_id` (int64): ID of the Bundle Registration that created the file/folder
|
57
|
+
* `created_by_inbox_id` (int64): ID of the Inbox that created the file/folder
|
58
|
+
* `created_by_remote_server_id` (int64): ID of the Remote Server that created the file/folder
|
59
|
+
* `created_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that created the file/folder
|
60
|
+
* `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
35
61
|
* `display_name` (string): File/Folder display name
|
36
62
|
* `type` (string): Type: `directory` or `file`.
|
37
63
|
* `size` (int64): File/Folder size
|
38
64
|
* `created_at` (date-time): File created date/time
|
65
|
+
* `last_modified_by_id` (int64): User ID of the User who last modified the file/folder
|
66
|
+
* `last_modified_by_api_key_id` (int64): ID of the API key that last modified the file/folder
|
67
|
+
* `last_modified_by_automation_id` (int64): ID of the Automation that last modified the file/folder
|
68
|
+
* `last_modified_by_bundle_registration_id` (int64): ID of the Bundle Registration that last modified the file/folder
|
69
|
+
* `last_modified_by_remote_server_id` (int64): ID of the Remote Server that last modified the file/folder
|
70
|
+
* `last_modified_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that last modified the file/folder
|
39
71
|
* `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.
|
40
72
|
* `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.
|
41
73
|
* `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
@@ -140,10 +172,27 @@ await file.download({
|
|
140
172
|
```json
|
141
173
|
{
|
142
174
|
"path": "path/file.txt",
|
175
|
+
"created_by_id": 1,
|
176
|
+
"created_by_api_key_id": 1,
|
177
|
+
"created_by_as2_incoming_message_id": 1,
|
178
|
+
"created_by_automation_id": 1,
|
179
|
+
"created_by_bundle_registration_id": 1,
|
180
|
+
"created_by_inbox_id": 1,
|
181
|
+
"created_by_remote_server_id": 1,
|
182
|
+
"created_by_remote_server_sync_id": 1,
|
183
|
+
"custom_metadata": {
|
184
|
+
"key": "value"
|
185
|
+
},
|
143
186
|
"display_name": "file.txt",
|
144
187
|
"type": "file",
|
145
188
|
"size": 1024,
|
146
189
|
"created_at": "2000-01-01T01:00:00Z",
|
190
|
+
"last_modified_by_id": 1,
|
191
|
+
"last_modified_by_api_key_id": 1,
|
192
|
+
"last_modified_by_automation_id": 1,
|
193
|
+
"last_modified_by_bundle_registration_id": 1,
|
194
|
+
"last_modified_by_remote_server_id": 1,
|
195
|
+
"last_modified_by_remote_server_sync_id": 1,
|
147
196
|
"mtime": "2000-01-01T01:00:00Z",
|
148
197
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
149
198
|
"crc32": "70976923",
|
@@ -175,6 +224,7 @@ const file = new File()
|
|
175
224
|
file.path = myFilePath
|
176
225
|
|
177
226
|
await file.update({
|
227
|
+
'custom_metadata': {"key":"value"},
|
178
228
|
'provided_mtime': "2000-01-01T01:00:00Z",
|
179
229
|
'priority_color': "red",
|
180
230
|
})
|
@@ -183,6 +233,7 @@ await file.update({
|
|
183
233
|
### Parameters
|
184
234
|
|
185
235
|
* `path` (string): Required - Path to operate on.
|
236
|
+
* `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
186
237
|
* `provided_mtime` (string): Modified time of file.
|
187
238
|
* `priority_color` (string): Priority/Bookmark color of file.
|
188
239
|
|
@@ -191,10 +242,27 @@ await file.update({
|
|
191
242
|
```json
|
192
243
|
{
|
193
244
|
"path": "path/file.txt",
|
245
|
+
"created_by_id": 1,
|
246
|
+
"created_by_api_key_id": 1,
|
247
|
+
"created_by_as2_incoming_message_id": 1,
|
248
|
+
"created_by_automation_id": 1,
|
249
|
+
"created_by_bundle_registration_id": 1,
|
250
|
+
"created_by_inbox_id": 1,
|
251
|
+
"created_by_remote_server_id": 1,
|
252
|
+
"created_by_remote_server_sync_id": 1,
|
253
|
+
"custom_metadata": {
|
254
|
+
"key": "value"
|
255
|
+
},
|
194
256
|
"display_name": "file.txt",
|
195
257
|
"type": "file",
|
196
258
|
"size": 1024,
|
197
259
|
"created_at": "2000-01-01T01:00:00Z",
|
260
|
+
"last_modified_by_id": 1,
|
261
|
+
"last_modified_by_api_key_id": 1,
|
262
|
+
"last_modified_by_automation_id": 1,
|
263
|
+
"last_modified_by_bundle_registration_id": 1,
|
264
|
+
"last_modified_by_remote_server_id": 1,
|
265
|
+
"last_modified_by_remote_server_sync_id": 1,
|
198
266
|
"mtime": "2000-01-01T01:00:00Z",
|
199
267
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
200
268
|
"crc32": "70976923",
|
package/docs/models/Folder.md
CHANGED
@@ -5,10 +5,27 @@
|
|
5
5
|
```
|
6
6
|
{
|
7
7
|
"path": "path/file.txt",
|
8
|
+
"created_by_id": 1,
|
9
|
+
"created_by_api_key_id": 1,
|
10
|
+
"created_by_as2_incoming_message_id": 1,
|
11
|
+
"created_by_automation_id": 1,
|
12
|
+
"created_by_bundle_registration_id": 1,
|
13
|
+
"created_by_inbox_id": 1,
|
14
|
+
"created_by_remote_server_id": 1,
|
15
|
+
"created_by_remote_server_sync_id": 1,
|
16
|
+
"custom_metadata": {
|
17
|
+
"key": "value"
|
18
|
+
},
|
8
19
|
"display_name": "file.txt",
|
9
20
|
"type": "file",
|
10
21
|
"size": 1024,
|
11
22
|
"created_at": "2000-01-01T01:00:00Z",
|
23
|
+
"last_modified_by_id": 1,
|
24
|
+
"last_modified_by_api_key_id": 1,
|
25
|
+
"last_modified_by_automation_id": 1,
|
26
|
+
"last_modified_by_bundle_registration_id": 1,
|
27
|
+
"last_modified_by_remote_server_id": 1,
|
28
|
+
"last_modified_by_remote_server_sync_id": 1,
|
12
29
|
"mtime": "2000-01-01T01:00:00Z",
|
13
30
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
14
31
|
"crc32": "70976923",
|
@@ -32,10 +49,25 @@
|
|
32
49
|
```
|
33
50
|
|
34
51
|
* `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
52
|
+
* `created_by_id` (int64): User ID of the User who created the file/folder
|
53
|
+
* `created_by_api_key_id` (int64): ID of the API key that created the file/folder
|
54
|
+
* `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
|
55
|
+
* `created_by_automation_id` (int64): ID of the Automation that created the file/folder
|
56
|
+
* `created_by_bundle_registration_id` (int64): ID of the Bundle Registration that created the file/folder
|
57
|
+
* `created_by_inbox_id` (int64): ID of the Inbox that created the file/folder
|
58
|
+
* `created_by_remote_server_id` (int64): ID of the Remote Server that created the file/folder
|
59
|
+
* `created_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that created the file/folder
|
60
|
+
* `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
35
61
|
* `display_name` (string): File/Folder display name
|
36
62
|
* `type` (string): Type: `directory` or `file`.
|
37
63
|
* `size` (int64): File/Folder size
|
38
64
|
* `created_at` (date-time): File created date/time
|
65
|
+
* `last_modified_by_id` (int64): User ID of the User who last modified the file/folder
|
66
|
+
* `last_modified_by_api_key_id` (int64): ID of the API key that last modified the file/folder
|
67
|
+
* `last_modified_by_automation_id` (int64): ID of the Automation that last modified the file/folder
|
68
|
+
* `last_modified_by_bundle_registration_id` (int64): ID of the Bundle Registration that last modified the file/folder
|
69
|
+
* `last_modified_by_remote_server_id` (int64): ID of the Remote Server that last modified the file/folder
|
70
|
+
* `last_modified_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that last modified the file/folder
|
39
71
|
* `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.
|
40
72
|
* `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.
|
41
73
|
* `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
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.
|
14
|
+
var version = '1.2.73';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/lib/models/File.js
CHANGED
@@ -172,6 +172,69 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
172
172
|
(0, _defineProperty2.default)(this, "setPath", function (value) {
|
173
173
|
_this.attributes.path = value;
|
174
174
|
});
|
175
|
+
// int64 # User ID of the User who created the file/folder
|
176
|
+
(0, _defineProperty2.default)(this, "getCreatedById", function () {
|
177
|
+
return _this.attributes.created_by_id;
|
178
|
+
});
|
179
|
+
(0, _defineProperty2.default)(this, "setCreatedById", function (value) {
|
180
|
+
_this.attributes.created_by_id = value;
|
181
|
+
});
|
182
|
+
// int64 # ID of the API key that created the file/folder
|
183
|
+
(0, _defineProperty2.default)(this, "getCreatedByApiKeyId", function () {
|
184
|
+
return _this.attributes.created_by_api_key_id;
|
185
|
+
});
|
186
|
+
(0, _defineProperty2.default)(this, "setCreatedByApiKeyId", function (value) {
|
187
|
+
_this.attributes.created_by_api_key_id = value;
|
188
|
+
});
|
189
|
+
// int64 # ID of the AS2 Incoming Message that created the file/folder
|
190
|
+
(0, _defineProperty2.default)(this, "getCreatedByAs2IncomingMessageId", function () {
|
191
|
+
return _this.attributes.created_by_as2_incoming_message_id;
|
192
|
+
});
|
193
|
+
(0, _defineProperty2.default)(this, "setCreatedByAs2IncomingMessageId", function (value) {
|
194
|
+
_this.attributes.created_by_as2_incoming_message_id = value;
|
195
|
+
});
|
196
|
+
// int64 # ID of the Automation that created the file/folder
|
197
|
+
(0, _defineProperty2.default)(this, "getCreatedByAutomationId", function () {
|
198
|
+
return _this.attributes.created_by_automation_id;
|
199
|
+
});
|
200
|
+
(0, _defineProperty2.default)(this, "setCreatedByAutomationId", function (value) {
|
201
|
+
_this.attributes.created_by_automation_id = value;
|
202
|
+
});
|
203
|
+
// int64 # ID of the Bundle Registration that created the file/folder
|
204
|
+
(0, _defineProperty2.default)(this, "getCreatedByBundleRegistrationId", function () {
|
205
|
+
return _this.attributes.created_by_bundle_registration_id;
|
206
|
+
});
|
207
|
+
(0, _defineProperty2.default)(this, "setCreatedByBundleRegistrationId", function (value) {
|
208
|
+
_this.attributes.created_by_bundle_registration_id = value;
|
209
|
+
});
|
210
|
+
// int64 # ID of the Inbox that created the file/folder
|
211
|
+
(0, _defineProperty2.default)(this, "getCreatedByInboxId", function () {
|
212
|
+
return _this.attributes.created_by_inbox_id;
|
213
|
+
});
|
214
|
+
(0, _defineProperty2.default)(this, "setCreatedByInboxId", function (value) {
|
215
|
+
_this.attributes.created_by_inbox_id = value;
|
216
|
+
});
|
217
|
+
// int64 # ID of the Remote Server that created the file/folder
|
218
|
+
(0, _defineProperty2.default)(this, "getCreatedByRemoteServerId", function () {
|
219
|
+
return _this.attributes.created_by_remote_server_id;
|
220
|
+
});
|
221
|
+
(0, _defineProperty2.default)(this, "setCreatedByRemoteServerId", function (value) {
|
222
|
+
_this.attributes.created_by_remote_server_id = value;
|
223
|
+
});
|
224
|
+
// int64 # ID of the Remote Server Sync that created the file/folder
|
225
|
+
(0, _defineProperty2.default)(this, "getCreatedByRemoteServerSyncId", function () {
|
226
|
+
return _this.attributes.created_by_remote_server_sync_id;
|
227
|
+
});
|
228
|
+
(0, _defineProperty2.default)(this, "setCreatedByRemoteServerSyncId", function (value) {
|
229
|
+
_this.attributes.created_by_remote_server_sync_id = value;
|
230
|
+
});
|
231
|
+
// object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
232
|
+
(0, _defineProperty2.default)(this, "getCustomMetadata", function () {
|
233
|
+
return _this.attributes.custom_metadata;
|
234
|
+
});
|
235
|
+
(0, _defineProperty2.default)(this, "setCustomMetadata", function (value) {
|
236
|
+
_this.attributes.custom_metadata = value;
|
237
|
+
});
|
175
238
|
// string # File/Folder display name
|
176
239
|
(0, _defineProperty2.default)(this, "getDisplayName", function () {
|
177
240
|
return _this.attributes.display_name;
|
@@ -197,6 +260,48 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
197
260
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
198
261
|
return _this.attributes.created_at;
|
199
262
|
});
|
263
|
+
// int64 # User ID of the User who last modified the file/folder
|
264
|
+
(0, _defineProperty2.default)(this, "getLastModifiedById", function () {
|
265
|
+
return _this.attributes.last_modified_by_id;
|
266
|
+
});
|
267
|
+
(0, _defineProperty2.default)(this, "setLastModifiedById", function (value) {
|
268
|
+
_this.attributes.last_modified_by_id = value;
|
269
|
+
});
|
270
|
+
// int64 # ID of the API key that last modified the file/folder
|
271
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByApiKeyId", function () {
|
272
|
+
return _this.attributes.last_modified_by_api_key_id;
|
273
|
+
});
|
274
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByApiKeyId", function (value) {
|
275
|
+
_this.attributes.last_modified_by_api_key_id = value;
|
276
|
+
});
|
277
|
+
// int64 # ID of the Automation that last modified the file/folder
|
278
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByAutomationId", function () {
|
279
|
+
return _this.attributes.last_modified_by_automation_id;
|
280
|
+
});
|
281
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByAutomationId", function (value) {
|
282
|
+
_this.attributes.last_modified_by_automation_id = value;
|
283
|
+
});
|
284
|
+
// int64 # ID of the Bundle Registration that last modified the file/folder
|
285
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByBundleRegistrationId", function () {
|
286
|
+
return _this.attributes.last_modified_by_bundle_registration_id;
|
287
|
+
});
|
288
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByBundleRegistrationId", function (value) {
|
289
|
+
_this.attributes.last_modified_by_bundle_registration_id = value;
|
290
|
+
});
|
291
|
+
// int64 # ID of the Remote Server that last modified the file/folder
|
292
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerId", function () {
|
293
|
+
return _this.attributes.last_modified_by_remote_server_id;
|
294
|
+
});
|
295
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerId", function (value) {
|
296
|
+
_this.attributes.last_modified_by_remote_server_id = value;
|
297
|
+
});
|
298
|
+
// int64 # ID of the Remote Server Sync that last modified the file/folder
|
299
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerSyncId", function () {
|
300
|
+
return _this.attributes.last_modified_by_remote_server_sync_id;
|
301
|
+
});
|
302
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerSyncId", function (value) {
|
303
|
+
_this.attributes.last_modified_by_remote_server_sync_id = value;
|
304
|
+
});
|
200
305
|
// 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.
|
201
306
|
(0, _defineProperty2.default)(this, "getMtime", function () {
|
202
307
|
return _this.attributes.mtime;
|
@@ -423,6 +528,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
423
528
|
}, _callee6);
|
424
529
|
})));
|
425
530
|
// Parameters:
|
531
|
+
// custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
426
532
|
// provided_mtime - string - Modified time of file.
|
427
533
|
// priority_color - string - Priority/Bookmark color of file.
|
428
534
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
package/lib/models/Folder.js
CHANGED
@@ -38,6 +38,69 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
38
38
|
(0, _defineProperty2.default)(this, "setPath", function (value) {
|
39
39
|
_this.attributes.path = value;
|
40
40
|
});
|
41
|
+
// int64 # User ID of the User who created the file/folder
|
42
|
+
(0, _defineProperty2.default)(this, "getCreatedById", function () {
|
43
|
+
return _this.attributes.created_by_id;
|
44
|
+
});
|
45
|
+
(0, _defineProperty2.default)(this, "setCreatedById", function (value) {
|
46
|
+
_this.attributes.created_by_id = value;
|
47
|
+
});
|
48
|
+
// int64 # ID of the API key that created the file/folder
|
49
|
+
(0, _defineProperty2.default)(this, "getCreatedByApiKeyId", function () {
|
50
|
+
return _this.attributes.created_by_api_key_id;
|
51
|
+
});
|
52
|
+
(0, _defineProperty2.default)(this, "setCreatedByApiKeyId", function (value) {
|
53
|
+
_this.attributes.created_by_api_key_id = value;
|
54
|
+
});
|
55
|
+
// int64 # ID of the AS2 Incoming Message that created the file/folder
|
56
|
+
(0, _defineProperty2.default)(this, "getCreatedByAs2IncomingMessageId", function () {
|
57
|
+
return _this.attributes.created_by_as2_incoming_message_id;
|
58
|
+
});
|
59
|
+
(0, _defineProperty2.default)(this, "setCreatedByAs2IncomingMessageId", function (value) {
|
60
|
+
_this.attributes.created_by_as2_incoming_message_id = value;
|
61
|
+
});
|
62
|
+
// int64 # ID of the Automation that created the file/folder
|
63
|
+
(0, _defineProperty2.default)(this, "getCreatedByAutomationId", function () {
|
64
|
+
return _this.attributes.created_by_automation_id;
|
65
|
+
});
|
66
|
+
(0, _defineProperty2.default)(this, "setCreatedByAutomationId", function (value) {
|
67
|
+
_this.attributes.created_by_automation_id = value;
|
68
|
+
});
|
69
|
+
// int64 # ID of the Bundle Registration that created the file/folder
|
70
|
+
(0, _defineProperty2.default)(this, "getCreatedByBundleRegistrationId", function () {
|
71
|
+
return _this.attributes.created_by_bundle_registration_id;
|
72
|
+
});
|
73
|
+
(0, _defineProperty2.default)(this, "setCreatedByBundleRegistrationId", function (value) {
|
74
|
+
_this.attributes.created_by_bundle_registration_id = value;
|
75
|
+
});
|
76
|
+
// int64 # ID of the Inbox that created the file/folder
|
77
|
+
(0, _defineProperty2.default)(this, "getCreatedByInboxId", function () {
|
78
|
+
return _this.attributes.created_by_inbox_id;
|
79
|
+
});
|
80
|
+
(0, _defineProperty2.default)(this, "setCreatedByInboxId", function (value) {
|
81
|
+
_this.attributes.created_by_inbox_id = value;
|
82
|
+
});
|
83
|
+
// int64 # ID of the Remote Server that created the file/folder
|
84
|
+
(0, _defineProperty2.default)(this, "getCreatedByRemoteServerId", function () {
|
85
|
+
return _this.attributes.created_by_remote_server_id;
|
86
|
+
});
|
87
|
+
(0, _defineProperty2.default)(this, "setCreatedByRemoteServerId", function (value) {
|
88
|
+
_this.attributes.created_by_remote_server_id = value;
|
89
|
+
});
|
90
|
+
// int64 # ID of the Remote Server Sync that created the file/folder
|
91
|
+
(0, _defineProperty2.default)(this, "getCreatedByRemoteServerSyncId", function () {
|
92
|
+
return _this.attributes.created_by_remote_server_sync_id;
|
93
|
+
});
|
94
|
+
(0, _defineProperty2.default)(this, "setCreatedByRemoteServerSyncId", function (value) {
|
95
|
+
_this.attributes.created_by_remote_server_sync_id = value;
|
96
|
+
});
|
97
|
+
// object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
98
|
+
(0, _defineProperty2.default)(this, "getCustomMetadata", function () {
|
99
|
+
return _this.attributes.custom_metadata;
|
100
|
+
});
|
101
|
+
(0, _defineProperty2.default)(this, "setCustomMetadata", function (value) {
|
102
|
+
_this.attributes.custom_metadata = value;
|
103
|
+
});
|
41
104
|
// string # File/Folder display name
|
42
105
|
(0, _defineProperty2.default)(this, "getDisplayName", function () {
|
43
106
|
return _this.attributes.display_name;
|
@@ -63,6 +126,48 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
63
126
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
64
127
|
return _this.attributes.created_at;
|
65
128
|
});
|
129
|
+
// int64 # User ID of the User who last modified the file/folder
|
130
|
+
(0, _defineProperty2.default)(this, "getLastModifiedById", function () {
|
131
|
+
return _this.attributes.last_modified_by_id;
|
132
|
+
});
|
133
|
+
(0, _defineProperty2.default)(this, "setLastModifiedById", function (value) {
|
134
|
+
_this.attributes.last_modified_by_id = value;
|
135
|
+
});
|
136
|
+
// int64 # ID of the API key that last modified the file/folder
|
137
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByApiKeyId", function () {
|
138
|
+
return _this.attributes.last_modified_by_api_key_id;
|
139
|
+
});
|
140
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByApiKeyId", function (value) {
|
141
|
+
_this.attributes.last_modified_by_api_key_id = value;
|
142
|
+
});
|
143
|
+
// int64 # ID of the Automation that last modified the file/folder
|
144
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByAutomationId", function () {
|
145
|
+
return _this.attributes.last_modified_by_automation_id;
|
146
|
+
});
|
147
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByAutomationId", function (value) {
|
148
|
+
_this.attributes.last_modified_by_automation_id = value;
|
149
|
+
});
|
150
|
+
// int64 # ID of the Bundle Registration that last modified the file/folder
|
151
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByBundleRegistrationId", function () {
|
152
|
+
return _this.attributes.last_modified_by_bundle_registration_id;
|
153
|
+
});
|
154
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByBundleRegistrationId", function (value) {
|
155
|
+
_this.attributes.last_modified_by_bundle_registration_id = value;
|
156
|
+
});
|
157
|
+
// int64 # ID of the Remote Server that last modified the file/folder
|
158
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerId", function () {
|
159
|
+
return _this.attributes.last_modified_by_remote_server_id;
|
160
|
+
});
|
161
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerId", function (value) {
|
162
|
+
_this.attributes.last_modified_by_remote_server_id = value;
|
163
|
+
});
|
164
|
+
// int64 # ID of the Remote Server Sync that last modified the file/folder
|
165
|
+
(0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerSyncId", function () {
|
166
|
+
return _this.attributes.last_modified_by_remote_server_sync_id;
|
167
|
+
});
|
168
|
+
(0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerSyncId", function (value) {
|
169
|
+
_this.attributes.last_modified_by_remote_server_sync_id = value;
|
170
|
+
});
|
66
171
|
// 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.
|
67
172
|
(0, _defineProperty2.default)(this, "getMtime", function () {
|
68
173
|
return _this.attributes.mtime;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/File.js
CHANGED
@@ -316,6 +316,69 @@ class File {
|
|
316
316
|
this.attributes.path = value
|
317
317
|
}
|
318
318
|
|
319
|
+
// int64 # User ID of the User who created the file/folder
|
320
|
+
getCreatedById = () => this.attributes.created_by_id
|
321
|
+
|
322
|
+
setCreatedById = value => {
|
323
|
+
this.attributes.created_by_id = value
|
324
|
+
}
|
325
|
+
|
326
|
+
// int64 # ID of the API key that created the file/folder
|
327
|
+
getCreatedByApiKeyId = () => this.attributes.created_by_api_key_id
|
328
|
+
|
329
|
+
setCreatedByApiKeyId = value => {
|
330
|
+
this.attributes.created_by_api_key_id = value
|
331
|
+
}
|
332
|
+
|
333
|
+
// int64 # ID of the AS2 Incoming Message that created the file/folder
|
334
|
+
getCreatedByAs2IncomingMessageId = () => this.attributes.created_by_as2_incoming_message_id
|
335
|
+
|
336
|
+
setCreatedByAs2IncomingMessageId = value => {
|
337
|
+
this.attributes.created_by_as2_incoming_message_id = value
|
338
|
+
}
|
339
|
+
|
340
|
+
// int64 # ID of the Automation that created the file/folder
|
341
|
+
getCreatedByAutomationId = () => this.attributes.created_by_automation_id
|
342
|
+
|
343
|
+
setCreatedByAutomationId = value => {
|
344
|
+
this.attributes.created_by_automation_id = value
|
345
|
+
}
|
346
|
+
|
347
|
+
// int64 # ID of the Bundle Registration that created the file/folder
|
348
|
+
getCreatedByBundleRegistrationId = () => this.attributes.created_by_bundle_registration_id
|
349
|
+
|
350
|
+
setCreatedByBundleRegistrationId = value => {
|
351
|
+
this.attributes.created_by_bundle_registration_id = value
|
352
|
+
}
|
353
|
+
|
354
|
+
// int64 # ID of the Inbox that created the file/folder
|
355
|
+
getCreatedByInboxId = () => this.attributes.created_by_inbox_id
|
356
|
+
|
357
|
+
setCreatedByInboxId = value => {
|
358
|
+
this.attributes.created_by_inbox_id = value
|
359
|
+
}
|
360
|
+
|
361
|
+
// int64 # ID of the Remote Server that created the file/folder
|
362
|
+
getCreatedByRemoteServerId = () => this.attributes.created_by_remote_server_id
|
363
|
+
|
364
|
+
setCreatedByRemoteServerId = value => {
|
365
|
+
this.attributes.created_by_remote_server_id = value
|
366
|
+
}
|
367
|
+
|
368
|
+
// int64 # ID of the Remote Server Sync that created the file/folder
|
369
|
+
getCreatedByRemoteServerSyncId = () => this.attributes.created_by_remote_server_sync_id
|
370
|
+
|
371
|
+
setCreatedByRemoteServerSyncId = value => {
|
372
|
+
this.attributes.created_by_remote_server_sync_id = value
|
373
|
+
}
|
374
|
+
|
375
|
+
// object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
376
|
+
getCustomMetadata = () => this.attributes.custom_metadata
|
377
|
+
|
378
|
+
setCustomMetadata = value => {
|
379
|
+
this.attributes.custom_metadata = value
|
380
|
+
}
|
381
|
+
|
319
382
|
// string # File/Folder display name
|
320
383
|
getDisplayName = () => this.attributes.display_name
|
321
384
|
|
@@ -340,6 +403,48 @@ class File {
|
|
340
403
|
// date-time # File created date/time
|
341
404
|
getCreatedAt = () => this.attributes.created_at
|
342
405
|
|
406
|
+
// int64 # User ID of the User who last modified the file/folder
|
407
|
+
getLastModifiedById = () => this.attributes.last_modified_by_id
|
408
|
+
|
409
|
+
setLastModifiedById = value => {
|
410
|
+
this.attributes.last_modified_by_id = value
|
411
|
+
}
|
412
|
+
|
413
|
+
// int64 # ID of the API key that last modified the file/folder
|
414
|
+
getLastModifiedByApiKeyId = () => this.attributes.last_modified_by_api_key_id
|
415
|
+
|
416
|
+
setLastModifiedByApiKeyId = value => {
|
417
|
+
this.attributes.last_modified_by_api_key_id = value
|
418
|
+
}
|
419
|
+
|
420
|
+
// int64 # ID of the Automation that last modified the file/folder
|
421
|
+
getLastModifiedByAutomationId = () => this.attributes.last_modified_by_automation_id
|
422
|
+
|
423
|
+
setLastModifiedByAutomationId = value => {
|
424
|
+
this.attributes.last_modified_by_automation_id = value
|
425
|
+
}
|
426
|
+
|
427
|
+
// int64 # ID of the Bundle Registration that last modified the file/folder
|
428
|
+
getLastModifiedByBundleRegistrationId = () => this.attributes.last_modified_by_bundle_registration_id
|
429
|
+
|
430
|
+
setLastModifiedByBundleRegistrationId = value => {
|
431
|
+
this.attributes.last_modified_by_bundle_registration_id = value
|
432
|
+
}
|
433
|
+
|
434
|
+
// int64 # ID of the Remote Server that last modified the file/folder
|
435
|
+
getLastModifiedByRemoteServerId = () => this.attributes.last_modified_by_remote_server_id
|
436
|
+
|
437
|
+
setLastModifiedByRemoteServerId = value => {
|
438
|
+
this.attributes.last_modified_by_remote_server_id = value
|
439
|
+
}
|
440
|
+
|
441
|
+
// int64 # ID of the Remote Server Sync that last modified the file/folder
|
442
|
+
getLastModifiedByRemoteServerSyncId = () => this.attributes.last_modified_by_remote_server_sync_id
|
443
|
+
|
444
|
+
setLastModifiedByRemoteServerSyncId = value => {
|
445
|
+
this.attributes.last_modified_by_remote_server_sync_id = value
|
446
|
+
}
|
447
|
+
|
343
448
|
// 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.
|
344
449
|
getMtime = () => this.attributes.mtime
|
345
450
|
|
@@ -537,6 +642,7 @@ class File {
|
|
537
642
|
}
|
538
643
|
|
539
644
|
// Parameters:
|
645
|
+
// custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
540
646
|
// provided_mtime - string - Modified time of file.
|
541
647
|
// priority_color - string - Priority/Bookmark color of file.
|
542
648
|
update = async (params = {}) => {
|
package/src/models/Folder.js
CHANGED
@@ -35,6 +35,69 @@ class Folder {
|
|
35
35
|
this.attributes.path = value
|
36
36
|
}
|
37
37
|
|
38
|
+
// int64 # User ID of the User who created the file/folder
|
39
|
+
getCreatedById = () => this.attributes.created_by_id
|
40
|
+
|
41
|
+
setCreatedById = value => {
|
42
|
+
this.attributes.created_by_id = value
|
43
|
+
}
|
44
|
+
|
45
|
+
// int64 # ID of the API key that created the file/folder
|
46
|
+
getCreatedByApiKeyId = () => this.attributes.created_by_api_key_id
|
47
|
+
|
48
|
+
setCreatedByApiKeyId = value => {
|
49
|
+
this.attributes.created_by_api_key_id = value
|
50
|
+
}
|
51
|
+
|
52
|
+
// int64 # ID of the AS2 Incoming Message that created the file/folder
|
53
|
+
getCreatedByAs2IncomingMessageId = () => this.attributes.created_by_as2_incoming_message_id
|
54
|
+
|
55
|
+
setCreatedByAs2IncomingMessageId = value => {
|
56
|
+
this.attributes.created_by_as2_incoming_message_id = value
|
57
|
+
}
|
58
|
+
|
59
|
+
// int64 # ID of the Automation that created the file/folder
|
60
|
+
getCreatedByAutomationId = () => this.attributes.created_by_automation_id
|
61
|
+
|
62
|
+
setCreatedByAutomationId = value => {
|
63
|
+
this.attributes.created_by_automation_id = value
|
64
|
+
}
|
65
|
+
|
66
|
+
// int64 # ID of the Bundle Registration that created the file/folder
|
67
|
+
getCreatedByBundleRegistrationId = () => this.attributes.created_by_bundle_registration_id
|
68
|
+
|
69
|
+
setCreatedByBundleRegistrationId = value => {
|
70
|
+
this.attributes.created_by_bundle_registration_id = value
|
71
|
+
}
|
72
|
+
|
73
|
+
// int64 # ID of the Inbox that created the file/folder
|
74
|
+
getCreatedByInboxId = () => this.attributes.created_by_inbox_id
|
75
|
+
|
76
|
+
setCreatedByInboxId = value => {
|
77
|
+
this.attributes.created_by_inbox_id = value
|
78
|
+
}
|
79
|
+
|
80
|
+
// int64 # ID of the Remote Server that created the file/folder
|
81
|
+
getCreatedByRemoteServerId = () => this.attributes.created_by_remote_server_id
|
82
|
+
|
83
|
+
setCreatedByRemoteServerId = value => {
|
84
|
+
this.attributes.created_by_remote_server_id = value
|
85
|
+
}
|
86
|
+
|
87
|
+
// int64 # ID of the Remote Server Sync that created the file/folder
|
88
|
+
getCreatedByRemoteServerSyncId = () => this.attributes.created_by_remote_server_sync_id
|
89
|
+
|
90
|
+
setCreatedByRemoteServerSyncId = value => {
|
91
|
+
this.attributes.created_by_remote_server_sync_id = value
|
92
|
+
}
|
93
|
+
|
94
|
+
// object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
95
|
+
getCustomMetadata = () => this.attributes.custom_metadata
|
96
|
+
|
97
|
+
setCustomMetadata = value => {
|
98
|
+
this.attributes.custom_metadata = value
|
99
|
+
}
|
100
|
+
|
38
101
|
// string # File/Folder display name
|
39
102
|
getDisplayName = () => this.attributes.display_name
|
40
103
|
|
@@ -59,6 +122,48 @@ class Folder {
|
|
59
122
|
// date-time # File created date/time
|
60
123
|
getCreatedAt = () => this.attributes.created_at
|
61
124
|
|
125
|
+
// int64 # User ID of the User who last modified the file/folder
|
126
|
+
getLastModifiedById = () => this.attributes.last_modified_by_id
|
127
|
+
|
128
|
+
setLastModifiedById = value => {
|
129
|
+
this.attributes.last_modified_by_id = value
|
130
|
+
}
|
131
|
+
|
132
|
+
// int64 # ID of the API key that last modified the file/folder
|
133
|
+
getLastModifiedByApiKeyId = () => this.attributes.last_modified_by_api_key_id
|
134
|
+
|
135
|
+
setLastModifiedByApiKeyId = value => {
|
136
|
+
this.attributes.last_modified_by_api_key_id = value
|
137
|
+
}
|
138
|
+
|
139
|
+
// int64 # ID of the Automation that last modified the file/folder
|
140
|
+
getLastModifiedByAutomationId = () => this.attributes.last_modified_by_automation_id
|
141
|
+
|
142
|
+
setLastModifiedByAutomationId = value => {
|
143
|
+
this.attributes.last_modified_by_automation_id = value
|
144
|
+
}
|
145
|
+
|
146
|
+
// int64 # ID of the Bundle Registration that last modified the file/folder
|
147
|
+
getLastModifiedByBundleRegistrationId = () => this.attributes.last_modified_by_bundle_registration_id
|
148
|
+
|
149
|
+
setLastModifiedByBundleRegistrationId = value => {
|
150
|
+
this.attributes.last_modified_by_bundle_registration_id = value
|
151
|
+
}
|
152
|
+
|
153
|
+
// int64 # ID of the Remote Server that last modified the file/folder
|
154
|
+
getLastModifiedByRemoteServerId = () => this.attributes.last_modified_by_remote_server_id
|
155
|
+
|
156
|
+
setLastModifiedByRemoteServerId = value => {
|
157
|
+
this.attributes.last_modified_by_remote_server_id = value
|
158
|
+
}
|
159
|
+
|
160
|
+
// int64 # ID of the Remote Server Sync that last modified the file/folder
|
161
|
+
getLastModifiedByRemoteServerSyncId = () => this.attributes.last_modified_by_remote_server_sync_id
|
162
|
+
|
163
|
+
setLastModifiedByRemoteServerSyncId = value => {
|
164
|
+
this.attributes.last_modified_by_remote_server_sync_id = value
|
165
|
+
}
|
166
|
+
|
62
167
|
// 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.
|
63
168
|
getMtime = () => this.attributes.mtime
|
64
169
|
|