files.com 1.0.338 → 1.0.340
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/auto.md +1 -1
- data/docs/bundle.md +17 -2
- data/docs/file.md +7 -1
- data/docs/folder.md +8 -1
- data/docs/site.md +75 -8
- data/lib/files.com/models/folder.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec11939bfc3ee2c6860a9148c5ecc3deca1fb063873dc534cc31ccaf7567ca8
|
4
|
+
data.tar.gz: acc5e793fe5420c1be00ecbda2cddae9231437382ea618d05de07dbbcaf2a3a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53632b42d45e4cc1d95eb80bb8599f3b6ed70e4e86328e954be0f61ca1e349ac74268db4703aa51691237b23d1e5b8b8d5cc5424db5431f30b34e5be46d6e8c6
|
7
|
+
data.tar.gz: 9dd8fc4343873d0f1ab2cf51ffee31d6f046beeea228a6e5001c4009fbe80b28f669876e89454904b34210f2f3f1737dcbfeb6c0edfc24687d7eb4a5529eff46
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.340
|
data/docs/auto.md
CHANGED
data/docs/bundle.md
CHANGED
@@ -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
|
},
|
data/docs/file.md
CHANGED
@@ -24,7 +24,13 @@ may places where a Ruby File object can be used.
|
|
24
24
|
"download_uri": "https://mysite.files.com/...",
|
25
25
|
"priority_color": "red",
|
26
26
|
"preview_id": 1,
|
27
|
-
"preview":
|
27
|
+
"preview": {
|
28
|
+
"id": 1,
|
29
|
+
"status": "complete",
|
30
|
+
"download_uri": "https://mysite.files.com/...",
|
31
|
+
"type": "image",
|
32
|
+
"size": "large"
|
33
|
+
}
|
28
34
|
}
|
29
35
|
```
|
30
36
|
|
data/docs/folder.md
CHANGED
@@ -26,7 +26,13 @@ Files::Dir is an alias of Files::Folder
|
|
26
26
|
"download_uri": "https://mysite.files.com/...",
|
27
27
|
"priority_color": "red",
|
28
28
|
"preview_id": 1,
|
29
|
-
"preview":
|
29
|
+
"preview": {
|
30
|
+
"id": 1,
|
31
|
+
"status": "complete",
|
32
|
+
"download_uri": "https://mysite.files.com/...",
|
33
|
+
"type": "image",
|
34
|
+
"size": "large"
|
35
|
+
}
|
30
36
|
}
|
31
37
|
```
|
32
38
|
|
@@ -71,6 +77,7 @@ Files::Folder.list_for(path,
|
|
71
77
|
* `path` (string): Required - Path to operate on.
|
72
78
|
* `filter` (string): If specified, will filter folders/files list by this string. Wildcards of `*` and `?` are acceptable here.
|
73
79
|
* `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
80
|
+
* `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"}`.
|
74
81
|
* `search` (string): If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
|
75
82
|
* `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.
|
76
83
|
* `with_previews` (boolean): Include file previews?
|
data/docs/site.md
CHANGED
@@ -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,
|
@@ -328,6 +328,7 @@ module Files
|
|
328
328
|
# path (required) - string - Path to operate on.
|
329
329
|
# filter - string - If specified, will filter folders/files list by this string. Wildcards of `*` and `?` are acceptable here.
|
330
330
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
331
|
+
# 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"}`.
|
331
332
|
# search - string - If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
|
332
333
|
# 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.
|
333
334
|
# with_previews - boolean - Include file previews?
|
@@ -340,6 +341,7 @@ module Files
|
|
340
341
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
341
342
|
raise InvalidParameterError.new("Bad parameter: filter must be an String") if params[:filter] and !params[:filter].is_a?(String)
|
342
343
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
344
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
343
345
|
raise InvalidParameterError.new("Bad parameter: search must be an String") if params[:search] and !params[:search].is_a?(String)
|
344
346
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
345
347
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.340
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|