files.com 1.2.76 → 1.2.78
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/ApiKey.md +2 -2
- package/docs/models/As2Partner.md +2 -2
- package/docs/models/As2Station.md +2 -2
- package/docs/models/Automation.md +3 -3
- package/docs/models/Behavior.md +5 -5
- package/docs/models/Bundle.md +3 -3
- package/docs/models/BundleNotification.md +2 -2
- package/docs/models/Clickwrap.md +2 -2
- package/docs/models/File.md +6 -12
- package/docs/models/FormFieldSet.md +2 -2
- package/docs/models/GpgKey.md +2 -2
- package/docs/models/Group.md +2 -2
- package/docs/models/Message.md +2 -2
- package/docs/models/MessageComment.md +2 -2
- package/docs/models/MessageCommentReaction.md +1 -1
- package/docs/models/MessageReaction.md +1 -1
- package/docs/models/Notification.md +2 -2
- package/docs/models/Project.md +2 -2
- package/docs/models/PublicKey.md +2 -2
- package/docs/models/RemoteServer.md +3 -3
- package/docs/models/SftpHostKey.md +2 -2
- package/docs/models/ShareGroup.md +2 -2
- package/docs/models/Snapshot.md +3 -3
- package/docs/models/SsoStrategy.md +1 -1
- package/docs/models/Style.md +2 -4
- package/docs/models/User.md +5 -5
- package/docs/models/UserRequest.md +1 -1
- package/lib/Files.js +1 -1
- package/lib/models/Behavior.js +3 -3
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Behavior.js +3 -3
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.78
|
package/docs/models/ApiKey.md
CHANGED
@@ -134,7 +134,7 @@ await ApiKey.deleteCurrent
|
|
134
134
|
## Update Api Key
|
135
135
|
|
136
136
|
```
|
137
|
-
const
|
137
|
+
const api_key = await ApiKey.find(id)
|
138
138
|
|
139
139
|
await api_key.update({
|
140
140
|
'description': "example",
|
@@ -176,7 +176,7 @@ await api_key.update({
|
|
176
176
|
## Delete Api Key
|
177
177
|
|
178
178
|
```
|
179
|
-
const
|
179
|
+
const api_key = await ApiKey.find(id)
|
180
180
|
|
181
181
|
await api_key.delete()
|
182
182
|
```
|
@@ -98,7 +98,7 @@ await As2Partner.create({
|
|
98
98
|
## Update As2 Partner
|
99
99
|
|
100
100
|
```
|
101
|
-
const
|
101
|
+
const as2_partner = await As2Partner.find(id)
|
102
102
|
|
103
103
|
await as2_partner.update({
|
104
104
|
'name': "AS2 Partner Name",
|
@@ -145,7 +145,7 @@ await as2_partner.update({
|
|
145
145
|
## Delete As2 Partner
|
146
146
|
|
147
147
|
```
|
148
|
-
const
|
148
|
+
const as2_partner = await As2Partner.find(id)
|
149
149
|
|
150
150
|
await as2_partner.delete()
|
151
151
|
```
|
@@ -91,7 +91,7 @@ await As2Station.create({
|
|
91
91
|
## Update As2 Station
|
92
92
|
|
93
93
|
```
|
94
|
-
const
|
94
|
+
const as2_station = await As2Station.find(id)
|
95
95
|
|
96
96
|
await as2_station.update({
|
97
97
|
'name': "AS2 Station Name",
|
@@ -131,7 +131,7 @@ await as2_station.update({
|
|
131
131
|
## Delete As2 Station
|
132
132
|
|
133
133
|
```
|
134
|
-
const
|
134
|
+
const as2_station = await As2Station.find(id)
|
135
135
|
|
136
136
|
await as2_station.delete()
|
137
137
|
```
|
@@ -201,7 +201,7 @@ await Automation.create({
|
|
201
201
|
## Manually run automation
|
202
202
|
|
203
203
|
```
|
204
|
-
const
|
204
|
+
const automation = await Automation.find(id)
|
205
205
|
|
206
206
|
await automation.manual_run()
|
207
207
|
```
|
@@ -216,7 +216,7 @@ await automation.manual_run()
|
|
216
216
|
## Update Automation
|
217
217
|
|
218
218
|
```
|
219
|
-
const
|
219
|
+
const automation = await Automation.find(id)
|
220
220
|
|
221
221
|
await automation.update({
|
222
222
|
'source': "source",
|
@@ -343,7 +343,7 @@ await automation.update({
|
|
343
343
|
## Delete Automation
|
344
344
|
|
345
345
|
```
|
346
|
-
const
|
346
|
+
const automation = await Automation.find(id)
|
347
347
|
|
348
348
|
await automation.delete()
|
349
349
|
```
|
package/docs/models/Behavior.md
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
* `name` (string): Name for this behavior.
|
26
26
|
* `description` (string): Description for this behavior.
|
27
27
|
* `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
|
28
|
-
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
28
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder and its children.
|
29
29
|
* `recursive` (boolean): Is behavior recursive?
|
30
30
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
31
31
|
* `attachment_delete` (boolean): If true, will delete the file stored in attachment
|
@@ -106,7 +106,7 @@ await Behavior.create({
|
|
106
106
|
|
107
107
|
* `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
108
108
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
109
|
-
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
109
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder and its children.
|
110
110
|
* `recursive` (boolean): Is behavior recursive?
|
111
111
|
* `name` (string): Name for this behavior.
|
112
112
|
* `description` (string): Description for this behavior.
|
@@ -143,7 +143,7 @@ await Behavior.webhookTest({
|
|
143
143
|
## Update Behavior
|
144
144
|
|
145
145
|
```
|
146
|
-
const
|
146
|
+
const behavior = await Behavior.find(id)
|
147
147
|
|
148
148
|
await behavior.update({
|
149
149
|
'value': "{\"method\": \"GET\"}",
|
@@ -162,7 +162,7 @@ await behavior.update({
|
|
162
162
|
* `id` (int64): Required - Behavior ID.
|
163
163
|
* `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
164
164
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
165
|
-
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
165
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder and its children.
|
166
166
|
* `recursive` (boolean): Is behavior recursive?
|
167
167
|
* `name` (string): Name for this behavior.
|
168
168
|
* `description` (string): Description for this behavior.
|
@@ -193,7 +193,7 @@ await behavior.update({
|
|
193
193
|
## Delete Behavior
|
194
194
|
|
195
195
|
```
|
196
|
-
const
|
196
|
+
const behavior = await Behavior.find(id)
|
197
197
|
|
198
198
|
await behavior.delete()
|
199
199
|
```
|
package/docs/models/Bundle.md
CHANGED
@@ -240,7 +240,7 @@ await Bundle.create({
|
|
240
240
|
## Send email(s) with a link to bundle
|
241
241
|
|
242
242
|
```
|
243
|
-
const
|
243
|
+
const bundle = await Bundle.find(id)
|
244
244
|
|
245
245
|
await bundle.share({
|
246
246
|
'to': ["johndoe@gmail.com"],
|
@@ -262,7 +262,7 @@ await bundle.share({
|
|
262
262
|
## Update Bundle
|
263
263
|
|
264
264
|
```
|
265
|
-
const
|
265
|
+
const bundle = await Bundle.find(id)
|
266
266
|
|
267
267
|
await bundle.update({
|
268
268
|
'paths': ["file.txt"],
|
@@ -414,7 +414,7 @@ await bundle.update({
|
|
414
414
|
## Delete Bundle
|
415
415
|
|
416
416
|
```
|
417
|
-
const
|
417
|
+
const bundle = await Bundle.find(id)
|
418
418
|
|
419
419
|
await bundle.delete()
|
420
420
|
```
|
@@ -75,7 +75,7 @@ await BundleNotification.create({
|
|
75
75
|
## Update Bundle Notification
|
76
76
|
|
77
77
|
```
|
78
|
-
const
|
78
|
+
const bundle_notification = await BundleNotification.find(id)
|
79
79
|
|
80
80
|
await bundle_notification.update({
|
81
81
|
'notify_on_registration': true,
|
@@ -106,7 +106,7 @@ await bundle_notification.update({
|
|
106
106
|
## Delete Bundle Notification
|
107
107
|
|
108
108
|
```
|
109
|
-
const
|
109
|
+
const bundle_notification = await BundleNotification.find(id)
|
110
110
|
|
111
111
|
await bundle_notification.delete()
|
112
112
|
```
|
package/docs/models/Clickwrap.md
CHANGED
@@ -77,7 +77,7 @@ await Clickwrap.create({
|
|
77
77
|
## Update Clickwrap
|
78
78
|
|
79
79
|
```
|
80
|
-
const
|
80
|
+
const clickwrap = await Clickwrap.find(id)
|
81
81
|
|
82
82
|
await clickwrap.update({
|
83
83
|
'name': "Example Site NDA for Files.com Use",
|
@@ -115,7 +115,7 @@ await clickwrap.update({
|
|
115
115
|
## Delete Clickwrap
|
116
116
|
|
117
117
|
```
|
118
|
-
const
|
118
|
+
const clickwrap = await Clickwrap.find(id)
|
119
119
|
|
120
120
|
await clickwrap.delete()
|
121
121
|
```
|
package/docs/models/File.md
CHANGED
@@ -150,8 +150,7 @@ await File.find(path, {
|
|
150
150
|
## Download file
|
151
151
|
|
152
152
|
```
|
153
|
-
const file =
|
154
|
-
file.path = myFilePath
|
153
|
+
const file = await File.find(path)
|
155
154
|
|
156
155
|
await file.download({
|
157
156
|
'with_previews': true,
|
@@ -220,8 +219,7 @@ await file.download({
|
|
220
219
|
## Update file/folder metadata
|
221
220
|
|
222
221
|
```
|
223
|
-
const file =
|
224
|
-
file.path = myFilePath
|
222
|
+
const file = await File.find(path)
|
225
223
|
|
226
224
|
await file.update({
|
227
225
|
'custom_metadata': {"key":"value"},
|
@@ -290,8 +288,7 @@ await file.update({
|
|
290
288
|
## Delete file/folder
|
291
289
|
|
292
290
|
```
|
293
|
-
const file =
|
294
|
-
file.path = myFilePath
|
291
|
+
const file = await File.find(path)
|
295
292
|
|
296
293
|
await file.delete({
|
297
294
|
'recursive': true,
|
@@ -309,8 +306,7 @@ await file.delete({
|
|
309
306
|
## Copy file/folder
|
310
307
|
|
311
308
|
```
|
312
|
-
const file =
|
313
|
-
file.path = myFilePath
|
309
|
+
const file = await File.find(path)
|
314
310
|
|
315
311
|
await file.copy({
|
316
312
|
'destination': "destination",
|
@@ -340,8 +336,7 @@ await file.copy({
|
|
340
336
|
## Move file/folder
|
341
337
|
|
342
338
|
```
|
343
|
-
const file =
|
344
|
-
file.path = myFilePath
|
339
|
+
const file = await File.find(path)
|
345
340
|
|
346
341
|
await file.move({
|
347
342
|
'destination': "destination",
|
@@ -369,8 +364,7 @@ await file.move({
|
|
369
364
|
## Begin file upload
|
370
365
|
|
371
366
|
```
|
372
|
-
const file =
|
373
|
-
file.path = myFilePath
|
367
|
+
const file = await File.find(path)
|
374
368
|
|
375
369
|
await file.begin_upload({
|
376
370
|
'mkdir_parents': true,
|
@@ -104,7 +104,7 @@ await FormFieldSet.create({
|
|
104
104
|
## Update Form Field Set
|
105
105
|
|
106
106
|
```
|
107
|
-
const
|
107
|
+
const form_field_set = await FormFieldSet.find(id)
|
108
108
|
|
109
109
|
await form_field_set.update({
|
110
110
|
'title': "Sample Form Title",
|
@@ -163,7 +163,7 @@ await form_field_set.update({
|
|
163
163
|
## Delete Form Field Set
|
164
164
|
|
165
165
|
```
|
166
|
-
const
|
166
|
+
const form_field_set = await FormFieldSet.find(id)
|
167
167
|
|
168
168
|
await form_field_set.delete()
|
169
169
|
```
|
package/docs/models/GpgKey.md
CHANGED
@@ -82,7 +82,7 @@ await GpgKey.create({
|
|
82
82
|
## Update Gpg Key
|
83
83
|
|
84
84
|
```
|
85
|
-
const
|
85
|
+
const gpg_key = await GpgKey.find(id)
|
86
86
|
|
87
87
|
await gpg_key.update({
|
88
88
|
'public_key': "7f8bc1210b09b9ddf469e6b6b8920e76",
|
@@ -119,7 +119,7 @@ await gpg_key.update({
|
|
119
119
|
## Delete Gpg Key
|
120
120
|
|
121
121
|
```
|
122
|
-
const
|
122
|
+
const gpg_key = await GpgKey.find(id)
|
123
123
|
|
124
124
|
await gpg_key.delete()
|
125
125
|
```
|
package/docs/models/Group.md
CHANGED
@@ -99,7 +99,7 @@ await Group.create({
|
|
99
99
|
## Update Group
|
100
100
|
|
101
101
|
```
|
102
|
-
const
|
102
|
+
const group = await Group.find(id)
|
103
103
|
|
104
104
|
await group.update({
|
105
105
|
'notes': "example",
|
@@ -150,7 +150,7 @@ await group.update({
|
|
150
150
|
## Delete Group
|
151
151
|
|
152
152
|
```
|
153
|
-
const
|
153
|
+
const group = await Group.find(id)
|
154
154
|
|
155
155
|
await group.delete()
|
156
156
|
```
|
package/docs/models/Message.md
CHANGED
@@ -88,7 +88,7 @@ await Message.create({
|
|
88
88
|
## Update Message
|
89
89
|
|
90
90
|
```
|
91
|
-
const
|
91
|
+
const message = await Message.find(id)
|
92
92
|
|
93
93
|
await message.update({
|
94
94
|
'project_id': 1,
|
@@ -131,7 +131,7 @@ await message.update({
|
|
131
131
|
## Delete Message
|
132
132
|
|
133
133
|
```
|
134
|
-
const
|
134
|
+
const message = await Message.find(id)
|
135
135
|
|
136
136
|
await message.delete()
|
137
137
|
```
|
@@ -75,7 +75,7 @@ await MessageComment.create({
|
|
75
75
|
## Update Message Comment
|
76
76
|
|
77
77
|
```
|
78
|
-
const
|
78
|
+
const message_comment = await MessageComment.find(id)
|
79
79
|
|
80
80
|
await message_comment.update({
|
81
81
|
'body': "body",
|
@@ -107,7 +107,7 @@ await message_comment.update({
|
|
107
107
|
## Delete Message Comment
|
108
108
|
|
109
109
|
```
|
110
|
-
const
|
110
|
+
const message_comment = await MessageComment.find(id)
|
111
111
|
|
112
112
|
await message_comment.delete()
|
113
113
|
```
|
@@ -68,7 +68,7 @@ await MessageCommentReaction.create({
|
|
68
68
|
## Delete Message Comment Reaction
|
69
69
|
|
70
70
|
```
|
71
|
-
const
|
71
|
+
const message_comment_reaction = await MessageCommentReaction.find(id)
|
72
72
|
|
73
73
|
await message_comment_reaction.delete()
|
74
74
|
```
|
@@ -149,7 +149,7 @@ await Notification.create({
|
|
149
149
|
## Update Notification
|
150
150
|
|
151
151
|
```
|
152
|
-
const
|
152
|
+
const notification = await Notification.find(id)
|
153
153
|
|
154
154
|
await notification.update({
|
155
155
|
'notify_on_copy': true,
|
@@ -226,7 +226,7 @@ await notification.update({
|
|
226
226
|
## Delete Notification
|
227
227
|
|
228
228
|
```
|
229
|
-
const
|
229
|
+
const notification = await Notification.find(id)
|
230
230
|
|
231
231
|
await notification.delete()
|
232
232
|
```
|
package/docs/models/Project.md
CHANGED
@@ -61,7 +61,7 @@ await Project.create({
|
|
61
61
|
## Update Project
|
62
62
|
|
63
63
|
```
|
64
|
-
const
|
64
|
+
const project = await Project.find(id)
|
65
65
|
|
66
66
|
await project.update({
|
67
67
|
'global_access': "global_access",
|
@@ -87,7 +87,7 @@ await project.update({
|
|
87
87
|
## Delete Project
|
88
88
|
|
89
89
|
```
|
90
|
-
const
|
90
|
+
const project = await Project.find(id)
|
91
91
|
|
92
92
|
await project.delete()
|
93
93
|
```
|
package/docs/models/PublicKey.md
CHANGED
@@ -78,7 +78,7 @@ await PublicKey.create({
|
|
78
78
|
## Update Public Key
|
79
79
|
|
80
80
|
```
|
81
|
-
const
|
81
|
+
const public_key = await PublicKey.find(id)
|
82
82
|
|
83
83
|
await public_key.update({
|
84
84
|
'title': "My Main Key",
|
@@ -109,7 +109,7 @@ await public_key.update({
|
|
109
109
|
## Delete Public Key
|
110
110
|
|
111
111
|
```
|
112
|
-
const
|
112
|
+
const public_key = await PublicKey.find(id)
|
113
113
|
|
114
114
|
await public_key.delete()
|
115
115
|
```
|
@@ -307,7 +307,7 @@ await RemoteServer.create({
|
|
307
307
|
## Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
308
308
|
|
309
309
|
```
|
310
|
-
const
|
310
|
+
const remote_server = await RemoteServer.find(id)
|
311
311
|
|
312
312
|
await remote_server.configuration_file({
|
313
313
|
'api_token': "example",
|
@@ -375,7 +375,7 @@ await remote_server.configuration_file({
|
|
375
375
|
## Update Remote Server
|
376
376
|
|
377
377
|
```
|
378
|
-
const
|
378
|
+
const remote_server = await RemoteServer.find(id)
|
379
379
|
|
380
380
|
await remote_server.update({
|
381
381
|
'aws_access_key': "example",
|
@@ -563,7 +563,7 @@ await remote_server.update({
|
|
563
563
|
## Delete Remote Server
|
564
564
|
|
565
565
|
```
|
566
|
-
const
|
566
|
+
const remote_server = await RemoteServer.find(id)
|
567
567
|
|
568
568
|
await remote_server.delete()
|
569
569
|
```
|
@@ -67,7 +67,7 @@ await SftpHostKey.create({
|
|
67
67
|
## Update Sftp Host Key
|
68
68
|
|
69
69
|
```
|
70
|
-
const
|
70
|
+
const sftp_host_key = await SftpHostKey.find(id)
|
71
71
|
|
72
72
|
await sftp_host_key.update({
|
73
73
|
'name': "example",
|
@@ -96,7 +96,7 @@ await sftp_host_key.update({
|
|
96
96
|
## Delete Sftp Host Key
|
97
97
|
|
98
98
|
```
|
99
|
-
const
|
99
|
+
const sftp_host_key = await SftpHostKey.find(id)
|
100
100
|
|
101
101
|
await sftp_host_key.delete()
|
102
102
|
```
|
@@ -81,7 +81,7 @@ await ShareGroup.create({
|
|
81
81
|
## Update Share Group
|
82
82
|
|
83
83
|
```
|
84
|
-
const
|
84
|
+
const share_group = await ShareGroup.find(id)
|
85
85
|
|
86
86
|
await share_group.update({
|
87
87
|
'notes': "This group is defined for testing purposes",
|
@@ -120,7 +120,7 @@ await share_group.update({
|
|
120
120
|
## Delete Share Group
|
121
121
|
|
122
122
|
```
|
123
|
-
const
|
123
|
+
const share_group = await ShareGroup.find(id)
|
124
124
|
|
125
125
|
await share_group.delete()
|
126
126
|
```
|
package/docs/models/Snapshot.md
CHANGED
@@ -73,7 +73,7 @@ await Snapshot.create({
|
|
73
73
|
## Finalize Snapshot
|
74
74
|
|
75
75
|
```
|
76
|
-
const
|
76
|
+
const snapshot = await Snapshot.find(id)
|
77
77
|
|
78
78
|
await snapshot.finalize()
|
79
79
|
```
|
@@ -88,7 +88,7 @@ await snapshot.finalize()
|
|
88
88
|
## Update Snapshot
|
89
89
|
|
90
90
|
```
|
91
|
-
const
|
91
|
+
const snapshot = await Snapshot.find(id)
|
92
92
|
|
93
93
|
await snapshot.update({
|
94
94
|
'expires_at': "2000-01-01T01:00:00Z",
|
@@ -121,7 +121,7 @@ await snapshot.update({
|
|
121
121
|
## Delete Snapshot
|
122
122
|
|
123
123
|
```
|
124
|
-
const
|
124
|
+
const snapshot = await Snapshot.find(id)
|
125
125
|
|
126
126
|
await snapshot.delete()
|
127
127
|
```
|
package/docs/models/Style.md
CHANGED
@@ -35,8 +35,7 @@ await Style.find(path)
|
|
35
35
|
## Update Style
|
36
36
|
|
37
37
|
```
|
38
|
-
const style =
|
39
|
-
style.path = myFilePath
|
38
|
+
const style = await Style.find(path)
|
40
39
|
|
41
40
|
await style.update({
|
42
41
|
'file': "file",
|
@@ -64,8 +63,7 @@ await style.update({
|
|
64
63
|
## Delete Style
|
65
64
|
|
66
65
|
```
|
67
|
-
const style =
|
68
|
-
style.path = myFilePath
|
66
|
+
const style = await Style.find(path)
|
69
67
|
|
70
68
|
await style.delete()
|
71
69
|
```
|
package/docs/models/User.md
CHANGED
@@ -283,7 +283,7 @@ await User.create({
|
|
283
283
|
## Unlock user who has been locked out due to failed logins
|
284
284
|
|
285
285
|
```
|
286
|
-
const
|
286
|
+
const user = await User.find(id)
|
287
287
|
|
288
288
|
await user.unlock()
|
289
289
|
```
|
@@ -298,7 +298,7 @@ await user.unlock()
|
|
298
298
|
## Resend user welcome email
|
299
299
|
|
300
300
|
```
|
301
|
-
const
|
301
|
+
const user = await User.find(id)
|
302
302
|
|
303
303
|
await user.resend_welcome_email()
|
304
304
|
```
|
@@ -313,7 +313,7 @@ await user.resend_welcome_email()
|
|
313
313
|
## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
|
314
314
|
|
315
315
|
```
|
316
|
-
const
|
316
|
+
const user = await User.find(id)
|
317
317
|
|
318
318
|
await user.user_2fa_reset()
|
319
319
|
```
|
@@ -328,7 +328,7 @@ await user.user_2fa_reset()
|
|
328
328
|
## Update User
|
329
329
|
|
330
330
|
```
|
331
|
-
const
|
331
|
+
const user = await User.find(id)
|
332
332
|
|
333
333
|
await user.update({
|
334
334
|
'avatar_delete': true,
|
@@ -497,7 +497,7 @@ await user.update({
|
|
497
497
|
## Delete User
|
498
498
|
|
499
499
|
```
|
500
|
-
const
|
500
|
+
const user = await User.find(id)
|
501
501
|
|
502
502
|
await user.delete()
|
503
503
|
```
|
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.78';
|
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/Behavior.js
CHANGED
@@ -82,7 +82,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
82
82
|
(0, _defineProperty2.default)(this, "setValue", function (value) {
|
83
83
|
_this.attributes.value = value;
|
84
84
|
});
|
85
|
-
// boolean # If true, the parent folder's behavior will be disabled for this folder.
|
85
|
+
// boolean # If true, the parent folder's behavior will be disabled for this folder and its children.
|
86
86
|
(0, _defineProperty2.default)(this, "getDisableParentFolderBehavior", function () {
|
87
87
|
return _this.attributes.disable_parent_folder_behavior;
|
88
88
|
});
|
@@ -113,7 +113,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
113
113
|
// Parameters:
|
114
114
|
// value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
115
115
|
// attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
116
|
-
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
116
|
+
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder and its children.
|
117
117
|
// recursive - boolean - Is behavior recursive?
|
118
118
|
// name - string - Name for this behavior.
|
119
119
|
// description - string - Description for this behavior.
|
@@ -479,7 +479,7 @@ _Behavior = Behavior;
|
|
479
479
|
// Parameters:
|
480
480
|
// value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
481
481
|
// attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
482
|
-
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
482
|
+
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder and its children.
|
483
483
|
// recursive - boolean - Is behavior recursive?
|
484
484
|
// name - string - Name for this behavior.
|
485
485
|
// description - string - Description for this behavior.
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Behavior.js
CHANGED
@@ -77,7 +77,7 @@ class Behavior {
|
|
77
77
|
this.attributes.value = value
|
78
78
|
}
|
79
79
|
|
80
|
-
// boolean # If true, the parent folder's behavior will be disabled for this folder.
|
80
|
+
// boolean # If true, the parent folder's behavior will be disabled for this folder and its children.
|
81
81
|
getDisableParentFolderBehavior = () => this.attributes.disable_parent_folder_behavior
|
82
82
|
|
83
83
|
setDisableParentFolderBehavior = value => {
|
@@ -108,7 +108,7 @@ class Behavior {
|
|
108
108
|
// Parameters:
|
109
109
|
// value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
110
110
|
// attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
111
|
-
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
111
|
+
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder and its children.
|
112
112
|
// recursive - boolean - Is behavior recursive?
|
113
113
|
// name - string - Name for this behavior.
|
114
114
|
// description - string - Description for this behavior.
|
@@ -298,7 +298,7 @@ class Behavior {
|
|
298
298
|
// Parameters:
|
299
299
|
// value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
300
300
|
// attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
301
|
-
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
301
|
+
// disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder and its children.
|
302
302
|
// recursive - boolean - Is behavior recursive?
|
303
303
|
// name - string - Name for this behavior.
|
304
304
|
// description - string - Description for this behavior.
|