files.com 1.0.264 → 1.0.266

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.264
1
+ 1.0.266
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```
6
6
  {
7
- "dynamic": ""
7
+ "dynamic": null
8
8
  }
9
9
  ```
10
10
 
@@ -13,7 +13,22 @@
13
13
  "require_registration": true,
14
14
  "require_share_recipient": true,
15
15
  "clickwrap_body": "[Legal text]",
16
- "form_field_set": "",
16
+ "form_field_set": {
17
+ "id": 1,
18
+ "title": "Sample Form Title",
19
+ "form_layout": [
20
+ 1,
21
+ 2,
22
+ 3,
23
+ 4
24
+ ],
25
+ "form_fields": [
26
+ null
27
+ ],
28
+ "skip_name": true,
29
+ "skip_email": true,
30
+ "skip_company": true
31
+ },
17
32
  "skip_name": true,
18
33
  "skip_email": true,
19
34
  "skip_company": true,
@@ -29,7 +44,7 @@
29
44
  "username": "user",
30
45
  "clickwrap_id": 1,
31
46
  "inbox_id": 1,
32
- "watermark_attachment": "",
47
+ "watermark_attachment": null,
33
48
  "watermark_value": {
34
49
  "key": "example value"
35
50
  },
@@ -260,7 +275,22 @@ await bundle.update({
260
275
  "require_registration": true,
261
276
  "require_share_recipient": true,
262
277
  "clickwrap_body": "[Legal text]",
263
- "form_field_set": "",
278
+ "form_field_set": {
279
+ "id": 1,
280
+ "title": "Sample Form Title",
281
+ "form_layout": [
282
+ 1,
283
+ 2,
284
+ 3,
285
+ 4
286
+ ],
287
+ "form_fields": [
288
+ null
289
+ ],
290
+ "skip_name": true,
291
+ "skip_email": true,
292
+ "skip_company": true
293
+ },
264
294
  "skip_name": true,
265
295
  "skip_email": true,
266
296
  "skip_company": true,
@@ -276,7 +306,7 @@ await bundle.update({
276
306
  "username": "user",
277
307
  "clickwrap_id": 1,
278
308
  "inbox_id": 1,
279
- "watermark_attachment": "",
309
+ "watermark_attachment": null,
280
310
  "watermark_value": {
281
311
  "key": "example value"
282
312
  },
@@ -21,7 +21,13 @@
21
21
  "download_uri": "https://mysite.files.com/...",
22
22
  "priority_color": "red",
23
23
  "preview_id": 1,
24
- "preview": ""
24
+ "preview": {
25
+ "id": 1,
26
+ "status": "complete",
27
+ "download_uri": "https://mysite.files.com/...",
28
+ "type": "image",
29
+ "size": "large"
30
+ }
25
31
  }
26
32
  ```
27
33
 
@@ -150,7 +156,13 @@ await file.download({
150
156
  "download_uri": "https://mysite.files.com/...",
151
157
  "priority_color": "red",
152
158
  "preview_id": 1,
153
- "preview": ""
159
+ "preview": {
160
+ "id": 1,
161
+ "status": "complete",
162
+ "download_uri": "https://mysite.files.com/...",
163
+ "type": "image",
164
+ "size": "large"
165
+ }
154
166
  }
155
167
  ```
156
168
 
@@ -195,7 +207,13 @@ await file.update({
195
207
  "download_uri": "https://mysite.files.com/...",
196
208
  "priority_color": "red",
197
209
  "preview_id": 1,
198
- "preview": ""
210
+ "preview": {
211
+ "id": 1,
212
+ "status": "complete",
213
+ "download_uri": "https://mysite.files.com/...",
214
+ "type": "image",
215
+ "size": "large"
216
+ }
199
217
  }
200
218
  ```
201
219
 
@@ -21,7 +21,13 @@
21
21
  "download_uri": "https://mysite.files.com/...",
22
22
  "priority_color": "red",
23
23
  "preview_id": 1,
24
- "preview": ""
24
+ "preview": {
25
+ "id": 1,
26
+ "status": "complete",
27
+ "download_uri": "https://mysite.files.com/...",
28
+ "type": "image",
29
+ "size": "large"
30
+ }
25
31
  }
26
32
  ```
27
33
 
@@ -66,6 +72,7 @@ await Folder.listFor(path, {
66
72
  * `path` (string): Required - Path to operate on.
67
73
  * `filter` (string): If specified, will filter folders/files list by this string. Wildcards of `*` and `?` are acceptable here.
68
74
  * `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
75
+ * `sort_by` (object): Search by field and direction. Valid fields are `path`, `size`, `modified_at_datetime`, `provided_modified_at`. Valid directions are `asc` and `desc`. Defaults to `{"path":"asc"}`.
69
76
  * `search` (string): If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
70
77
  * `search_all` (boolean): Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the UI. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
71
78
  * `with_previews` (boolean): Include file previews?
@@ -22,7 +22,7 @@
22
22
  "bundle_registration_notifications": "never",
23
23
  "bundle_require_share_recipient": true,
24
24
  "bundle_upload_receipt_notifications": "never",
25
- "bundle_watermark_attachment": "",
25
+ "bundle_watermark_attachment": null,
26
26
  "bundle_watermark_value": {
27
27
  "key": "example value"
28
28
  },
@@ -58,10 +58,10 @@
58
58
  "non_sso_users_allowed": true,
59
59
  "folder_permissions_groups_only": true,
60
60
  "hipaa": true,
61
- "icon128": "",
62
- "icon16": "",
63
- "icon32": "",
64
- "icon48": "",
61
+ "icon128": null,
62
+ "icon16": null,
63
+ "icon32": null,
64
+ "icon48": null,
65
65
  "immutable_files_set_at": "2000-01-01T01:00:00Z",
66
66
  "include_password_in_welcome_email": true,
67
67
  "language": "en",
@@ -82,7 +82,7 @@
82
82
  "ldap_username": "[ldap username]",
83
83
  "ldap_username_field": "sAMAccountName",
84
84
  "login_help_text": "Login page help text.",
85
- "logo": "",
85
+ "logo": null,
86
86
  "max_prior_passwords": 1,
87
87
  "motd_text": "example",
88
88
  "motd_use_for_ftp": true,
@@ -107,7 +107,12 @@
107
107
  "require_2fa": true,
108
108
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
109
109
  "require_2fa_user_type": "`site_admins`",
110
- "session": "",
110
+ "session": {
111
+ "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
112
+ "language": "en",
113
+ "read_only": true,
114
+ "sftp_insecure_ciphers": true
115
+ },
111
116
  "session_pinned_by_ip": true,
112
117
  "sftp_enabled": true,
113
118
  "sftp_host_key_type": "default",
@@ -133,7 +138,69 @@
133
138
  "trial_until": "2000-01-01T01:00:00Z",
134
139
  "updated_at": "2000-01-01T01:00:00Z",
135
140
  "use_provided_modified_at": true,
136
- "user": "",
141
+ "user": {
142
+ "id": 1,
143
+ "username": "user",
144
+ "admin_group_ids": [
145
+ 1
146
+ ],
147
+ "allowed_ips": "127.0.0.1",
148
+ "attachments_permission": true,
149
+ "api_keys_count": 1,
150
+ "authenticate_until": "2000-01-01T01:00:00Z",
151
+ "authentication_method": "password",
152
+ "avatar_url": "example",
153
+ "billing_permission": true,
154
+ "bypass_site_allowed_ips": true,
155
+ "bypass_inactive_disable": true,
156
+ "created_at": "2000-01-01T01:00:00Z",
157
+ "dav_permission": true,
158
+ "disabled": true,
159
+ "email": "example",
160
+ "first_login_at": "2000-01-01T01:00:00Z",
161
+ "ftp_permission": true,
162
+ "group_ids": "example",
163
+ "header_text": "User-specific message.",
164
+ "language": "en",
165
+ "last_login_at": "2000-01-01T01:00:00Z",
166
+ "last_web_login_at": "2000-01-01T01:00:00Z",
167
+ "last_ftp_login_at": "2000-01-01T01:00:00Z",
168
+ "last_sftp_login_at": "2000-01-01T01:00:00Z",
169
+ "last_dav_login_at": "2000-01-01T01:00:00Z",
170
+ "last_desktop_login_at": "2000-01-01T01:00:00Z",
171
+ "last_restapi_login_at": "2000-01-01T01:00:00Z",
172
+ "last_api_use_at": "2000-01-01T01:00:00Z",
173
+ "last_active_at": "2000-01-01T01:00:00Z",
174
+ "last_protocol_cipher": "example",
175
+ "lockout_expires": "2000-01-01T01:00:00Z",
176
+ "name": "John Doe",
177
+ "company": "ACME Corp.",
178
+ "notes": "Internal notes on this user.",
179
+ "notification_daily_send_time": 18,
180
+ "office_integration_enabled": true,
181
+ "password_set_at": "2000-01-01T01:00:00Z",
182
+ "password_validity_days": 1,
183
+ "public_keys_count": 1,
184
+ "receive_admin_alerts": true,
185
+ "require_2fa": "always_require",
186
+ "active_2fa": true,
187
+ "require_password_change": true,
188
+ "password_expired": true,
189
+ "restapi_permission": true,
190
+ "self_managed": true,
191
+ "sftp_permission": true,
192
+ "site_admin": true,
193
+ "skip_welcome_screen": true,
194
+ "ssl_required": "always_require",
195
+ "sso_strategy_id": 1,
196
+ "subscribe_to_newsletter": true,
197
+ "externally_managed": true,
198
+ "time_zone": "Pacific Time (US & Canada)",
199
+ "type_of_2fa": "yubi",
200
+ "user_root": "example",
201
+ "days_remaining_until_password_expire": 1,
202
+ "password_expire_at": "2000-01-01T01:00:00Z"
203
+ },
137
204
  "user_lockout": true,
138
205
  "user_lockout_lock_period": 1,
139
206
  "user_lockout_tries": 1,
@@ -186,6 +186,7 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
186
186
  // path (required) - string - Path to operate on.
187
187
  // filter - string - If specified, will filter folders/files list by this string. Wildcards of `*` and `?` are acceptable here.
188
188
  // preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
189
+ // sort_by - object - Search by field and direction. Valid fields are `path`, `size`, `modified_at_datetime`, `provided_modified_at`. Valid directions are `asc` and `desc`. Defaults to `{"path":"asc"}`.
189
190
  // search - string - If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
190
191
  // search_all - boolean - Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the UI. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
191
192
  // with_previews - boolean - Include file previews?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.264",
3
+ "version": "1.0.266",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -166,6 +166,7 @@ class Folder {
166
166
  // path (required) - string - Path to operate on.
167
167
  // filter - string - If specified, will filter folders/files list by this string. Wildcards of `*` and `?` are acceptable here.
168
168
  // preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
169
+ // sort_by - object - Search by field and direction. Valid fields are `path`, `size`, `modified_at_datetime`, `provided_modified_at`. Valid directions are `asc` and `desc`. Defaults to `{"path":"asc"}`.
169
170
  // search - string - If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
170
171
  // search_all - boolean - Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the UI. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
171
172
  // with_previews - boolean - Include file previews?