files.com 1.0.123 → 1.0.128
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/account_line_item.md +18 -2
- data/docs/api_key.md +1 -1
- data/docs/app.md +3 -1
- data/docs/automation.md +51 -16
- data/docs/bandwidth_snapshot.md +5 -1
- data/docs/behavior.md +2 -2
- data/docs/bundle.md +40 -2
- data/docs/bundle_download.md +5 -1
- data/docs/bundle_recipient.md +7 -0
- data/docs/bundle_registration.md +23 -0
- data/docs/external_event.md +1 -1
- data/docs/file.md +7 -1
- data/docs/file_action.md +13 -0
- data/docs/file_comment.md +4 -1
- data/docs/folder.md +7 -1
- data/docs/form_field.md +29 -0
- data/docs/form_field_set.md +154 -0
- data/docs/group.md +13 -7
- data/docs/group_user.md +1 -1
- data/docs/history.md +1 -1
- data/docs/inbox_registration.md +21 -0
- data/docs/inbox_upload.md +35 -0
- data/docs/invoice.md +18 -2
- data/docs/ip_address.md +1 -1
- data/docs/message.md +10 -1
- data/docs/message_comment.md +4 -1
- data/docs/notification.md +1 -1
- data/docs/payment.md +18 -2
- data/docs/permission.md +1 -1
- data/docs/request.md +2 -2
- data/docs/settings_change.md +1 -1
- data/docs/site.md +91 -7
- data/docs/sso_strategy.md +1 -1
- data/docs/status.md +7 -0
- data/docs/style.md +1 -1
- data/docs/usage_daily_snapshot.md +1 -1
- data/docs/user.md +8 -8
- data/lib/files.com.rb +5 -0
- data/lib/files.com/models/api_key.rb +1 -1
- data/lib/files.com/models/automation.rb +60 -31
- data/lib/files.com/models/bandwidth_snapshot.rb +11 -1
- data/lib/files.com/models/behavior.rb +2 -2
- data/lib/files.com/models/bundle.rb +29 -1
- data/lib/files.com/models/bundle_download.rb +7 -2
- data/lib/files.com/models/bundle_recipient.rb +14 -0
- data/lib/files.com/models/bundle_registration.rb +47 -0
- data/lib/files.com/models/external_event.rb +1 -1
- data/lib/files.com/models/file_action.rb +14 -4
- data/lib/files.com/models/form_field.rb +52 -0
- data/lib/files.com/models/form_field_set.rb +171 -0
- data/lib/files.com/models/group.rb +1 -1
- data/lib/files.com/models/history.rb +1 -1
- data/lib/files.com/models/inbox_registration.rb +42 -0
- data/lib/files.com/models/inbox_upload.rb +46 -0
- data/lib/files.com/models/notification.rb +1 -1
- data/lib/files.com/models/permission.rb +1 -1
- data/lib/files.com/models/request.rb +2 -2
- data/lib/files.com/models/settings_change.rb +1 -1
- data/lib/files.com/models/usage_daily_snapshot.rb +1 -1
- data/lib/files.com/models/user.rb +7 -7
- metadata +12 -2
data/docs/external_event.md
CHANGED
@@ -31,7 +31,7 @@ Files::ExternalEvent.list(
|
|
31
31
|
|
32
32
|
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
33
33
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
34
|
-
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `
|
34
|
+
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at` or `status`.
|
35
35
|
* `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
36
36
|
* `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
37
37
|
* `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
data/docs/file.md
CHANGED
@@ -22,7 +22,13 @@ may places where a Ruby File object can be used.
|
|
22
22
|
"download_uri": "https://mysite.files.com/...",
|
23
23
|
"priority_color": "red",
|
24
24
|
"preview_id": 1,
|
25
|
-
"preview":
|
25
|
+
"preview": {
|
26
|
+
"id": 1,
|
27
|
+
"status": "complete",
|
28
|
+
"download_uri": "https://mysite.files.com/...",
|
29
|
+
"type": "complete",
|
30
|
+
"size": 1024
|
31
|
+
}
|
26
32
|
}
|
27
33
|
```
|
28
34
|
|
data/docs/file_action.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
# FileAction
|
2
|
+
|
3
|
+
## Example FileAction Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"status": "enqueued",
|
8
|
+
"file_migration_id": "123"
|
9
|
+
}
|
10
|
+
```
|
11
|
+
|
12
|
+
* `status` (string): Status of file operation. Possible values: completed, enqueued.
|
13
|
+
* `file_migration_id` (int64): If status is enqueued, this is the id of the FileMigration to check for status updates.
|
1
14
|
|
2
15
|
|
3
16
|
---
|
data/docs/file_comment.md
CHANGED
data/docs/folder.md
CHANGED
@@ -24,7 +24,13 @@ Files::Dir is an alias of Files::Folder
|
|
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": "complete",
|
32
|
+
"size": 1024
|
33
|
+
}
|
28
34
|
}
|
29
35
|
```
|
30
36
|
|
data/docs/form_field.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# FormField
|
2
|
+
|
3
|
+
## Example FormField Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"label": "Sample Label",
|
9
|
+
"required": true,
|
10
|
+
"help_text": "Help Text",
|
11
|
+
"field_type": "text",
|
12
|
+
"options_for_select": [
|
13
|
+
"red",
|
14
|
+
"green",
|
15
|
+
"blue"
|
16
|
+
],
|
17
|
+
"default_option": "red",
|
18
|
+
"form_field_set_id": 1
|
19
|
+
}
|
20
|
+
```
|
21
|
+
|
22
|
+
* `id` (int64): Form field id
|
23
|
+
* `label` (string): Label to be displayed
|
24
|
+
* `required` (boolean): Is this a required field?
|
25
|
+
* `help_text` (string): Help text to be displayed
|
26
|
+
* `field_type` (string): Type of Field
|
27
|
+
* `options_for_select` (string): Options to display for radio and dropdown
|
28
|
+
* `default_option` (string): Default option for radio and dropdown
|
29
|
+
* `form_field_set_id` (int64): Form field set id
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# FormFieldSet
|
2
|
+
|
3
|
+
## Example FormFieldSet Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"title": "Sample Form Title",
|
9
|
+
"form_layout": [
|
10
|
+
1,
|
11
|
+
2,
|
12
|
+
3,
|
13
|
+
4
|
14
|
+
],
|
15
|
+
"form_fields": [
|
16
|
+
{
|
17
|
+
"id": 1,
|
18
|
+
"label": "Sample Label",
|
19
|
+
"required": true,
|
20
|
+
"help_text": "Help Text",
|
21
|
+
"field_type": "text",
|
22
|
+
"options_for_select": [
|
23
|
+
"red",
|
24
|
+
"green",
|
25
|
+
"blue"
|
26
|
+
],
|
27
|
+
"default_option": "red",
|
28
|
+
"form_field_set_id": 1
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
```
|
33
|
+
|
34
|
+
* `id` (int64): Form field set id
|
35
|
+
* `title` (string): Title to be displayed
|
36
|
+
* `form_layout` (int64): Layout of the form
|
37
|
+
* `form_fields` (array): Associated form fields
|
38
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
39
|
+
|
40
|
+
|
41
|
+
---
|
42
|
+
|
43
|
+
## List Form Field Sets
|
44
|
+
|
45
|
+
```
|
46
|
+
Files::FormFieldSet.list(
|
47
|
+
user_id: 1,
|
48
|
+
per_page: 1
|
49
|
+
)
|
50
|
+
```
|
51
|
+
|
52
|
+
### Parameters
|
53
|
+
|
54
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
55
|
+
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
56
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
57
|
+
|
58
|
+
|
59
|
+
---
|
60
|
+
|
61
|
+
## Show Form Field Set
|
62
|
+
|
63
|
+
```
|
64
|
+
Files::FormFieldSet.find(id)
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
* `id` (int64): Required - Form Field Set ID.
|
70
|
+
|
71
|
+
|
72
|
+
---
|
73
|
+
|
74
|
+
## Create Form Field Set
|
75
|
+
|
76
|
+
```
|
77
|
+
Files::FormFieldSet.create(
|
78
|
+
user_id: 1,
|
79
|
+
title: "Sample Form Title",
|
80
|
+
form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
|
81
|
+
)
|
82
|
+
```
|
83
|
+
|
84
|
+
### Parameters
|
85
|
+
|
86
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
87
|
+
* `title` (string): Title to be displayed
|
88
|
+
* `form_fields` (array(object)):
|
89
|
+
|
90
|
+
|
91
|
+
---
|
92
|
+
|
93
|
+
## Update Form Field Set
|
94
|
+
|
95
|
+
```
|
96
|
+
Files::FormFieldSet.update(id,
|
97
|
+
title: "Sample Form Title",
|
98
|
+
form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
|
99
|
+
)
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
* `id` (int64): Required - Form Field Set ID.
|
105
|
+
* `title` (string): Title to be displayed
|
106
|
+
* `form_fields` (array(object)):
|
107
|
+
|
108
|
+
|
109
|
+
---
|
110
|
+
|
111
|
+
## Delete Form Field Set
|
112
|
+
|
113
|
+
```
|
114
|
+
Files::FormFieldSet.delete(id)
|
115
|
+
```
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
* `id` (int64): Required - Form Field Set ID.
|
120
|
+
|
121
|
+
|
122
|
+
---
|
123
|
+
|
124
|
+
## Update Form Field Set
|
125
|
+
|
126
|
+
```
|
127
|
+
form_field_set = Files::FormFieldSet.list_for(path).first
|
128
|
+
|
129
|
+
form_field_set.update(
|
130
|
+
title: "Sample Form Title",
|
131
|
+
form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
|
132
|
+
)
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
* `id` (int64): Required - Form Field Set ID.
|
138
|
+
* `title` (string): Title to be displayed
|
139
|
+
* `form_fields` (array(object)):
|
140
|
+
|
141
|
+
|
142
|
+
---
|
143
|
+
|
144
|
+
## Delete Form Field Set
|
145
|
+
|
146
|
+
```
|
147
|
+
form_field_set = Files::FormFieldSet.list_for(path).first
|
148
|
+
|
149
|
+
form_field_set.delete
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
* `id` (int64): Required - Form Field Set ID.
|
data/docs/group.md
CHANGED
@@ -7,14 +7,14 @@
|
|
7
7
|
"id": 1,
|
8
8
|
"name": "owners",
|
9
9
|
"admin_ids": [
|
10
|
-
|
10
|
+
1
|
11
11
|
],
|
12
12
|
"notes": "",
|
13
13
|
"user_ids": [
|
14
|
-
|
14
|
+
1
|
15
15
|
],
|
16
16
|
"usernames": [
|
17
|
-
|
17
|
+
"user"
|
18
18
|
]
|
19
19
|
}
|
20
20
|
```
|
@@ -41,7 +41,7 @@ Files::Group.list(
|
|
41
41
|
|
42
42
|
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
43
43
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
44
|
-
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `
|
44
|
+
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `name`.
|
45
45
|
* `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `name`.
|
46
46
|
* `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `name`.
|
47
47
|
* `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `name`.
|
@@ -70,7 +70,9 @@ Files::Group.find(id)
|
|
70
70
|
|
71
71
|
```
|
72
72
|
Files::Group.create(
|
73
|
-
name: "owners"
|
73
|
+
name: "owners",
|
74
|
+
user_ids: [1],
|
75
|
+
admin_ids: [1]
|
74
76
|
)
|
75
77
|
```
|
76
78
|
|
@@ -88,7 +90,9 @@ Files::Group.create(
|
|
88
90
|
|
89
91
|
```
|
90
92
|
Files::Group.update(id,
|
91
|
-
name: "owners"
|
93
|
+
name: "owners",
|
94
|
+
user_ids: [1],
|
95
|
+
admin_ids: [1]
|
92
96
|
)
|
93
97
|
```
|
94
98
|
|
@@ -122,7 +126,9 @@ Files::Group.delete(id)
|
|
122
126
|
group = Files::Group.list_for(path).first
|
123
127
|
|
124
128
|
group.update(
|
125
|
-
name: "owners"
|
129
|
+
name: "owners",
|
130
|
+
user_ids: [1],
|
131
|
+
admin_ids: [1]
|
126
132
|
)
|
127
133
|
```
|
128
134
|
|
data/docs/group_user.md
CHANGED
data/docs/history.md
CHANGED
@@ -142,7 +142,7 @@ Files::History.list(
|
|
142
142
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
143
143
|
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
144
144
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
145
|
-
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `
|
145
|
+
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `path`, `folder`, `user_id` or `created_at`.
|
146
146
|
* `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
147
147
|
* `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
148
148
|
* `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# InboxRegistration
|
2
|
+
|
3
|
+
## Example InboxRegistration Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"code": "abc123",
|
8
|
+
"name": "account",
|
9
|
+
"company": "Action Verb",
|
10
|
+
"email": "john.doe@files.com",
|
11
|
+
"form_field_set_id": 1,
|
12
|
+
"form_field_data": ""
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
16
|
+
* `code` (string): Registration cookie code
|
17
|
+
* `name` (string): Registrant name
|
18
|
+
* `company` (string): Registrant company name
|
19
|
+
* `email` (string): Registrant email address
|
20
|
+
* `form_field_set_id` (int64): Id of associated form field set
|
21
|
+
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# InboxUpload
|
2
|
+
|
3
|
+
## Example InboxUpload Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"inbox_registration": "",
|
8
|
+
"path": "a/b/test.txt",
|
9
|
+
"created_at": "2020-01-01 00:00:00"
|
10
|
+
}
|
11
|
+
```
|
12
|
+
|
13
|
+
* `inbox_registration`:
|
14
|
+
* `path` (string): Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
15
|
+
* `created_at` (date-time): Upload date/time
|
16
|
+
|
17
|
+
|
18
|
+
---
|
19
|
+
|
20
|
+
## List Inbox Uploads
|
21
|
+
|
22
|
+
```
|
23
|
+
Files::InboxUpload.list(
|
24
|
+
per_page: 1,
|
25
|
+
inbox_registration_id: 1,
|
26
|
+
inbox_id: 1
|
27
|
+
)
|
28
|
+
```
|
29
|
+
|
30
|
+
### Parameters
|
31
|
+
|
32
|
+
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
33
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
34
|
+
* `inbox_registration_id` (int64): InboxRegistration ID
|
35
|
+
* `inbox_id` (int64): Inbox ID
|
data/docs/invoice.md
CHANGED
@@ -11,11 +11,27 @@
|
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
13
|
"invoice_line_items": [
|
14
|
-
|
14
|
+
{
|
15
|
+
"amount": 1.0,
|
16
|
+
"created_at": "2000-01-01T01:00:00Z",
|
17
|
+
"description": "Service from 2019-01-01 through 2019-12-31",
|
18
|
+
"type": "invoice",
|
19
|
+
"service_end_at": "2000-01-01T01:00:00Z",
|
20
|
+
"service_start_at": "2000-01-01T01:00:00Z",
|
21
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
22
|
+
"plan": "Enterprise",
|
23
|
+
"site": "My site"
|
24
|
+
}
|
15
25
|
],
|
16
26
|
"method": "paypal",
|
17
27
|
"payment_line_items": [
|
18
|
-
|
28
|
+
{
|
29
|
+
"amount": 1.0,
|
30
|
+
"created_at": "2000-01-01T01:00:00Z",
|
31
|
+
"invoice_id": 1,
|
32
|
+
"payment_id": 1,
|
33
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
34
|
+
}
|
19
35
|
],
|
20
36
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
21
37
|
"payment_type": "",
|
data/docs/ip_address.md
CHANGED
data/docs/message.md
CHANGED
@@ -8,7 +8,16 @@
|
|
8
8
|
"subject": "Files.com Account Upgrade",
|
9
9
|
"body": "We should upgrade our Files.com account!",
|
10
10
|
"comments": [
|
11
|
-
|
11
|
+
{
|
12
|
+
"id": 1,
|
13
|
+
"body": "What a great idea, thank you!",
|
14
|
+
"reactions": [
|
15
|
+
{
|
16
|
+
"id": 1,
|
17
|
+
"emoji": "👍"
|
18
|
+
}
|
19
|
+
]
|
20
|
+
}
|
12
21
|
]
|
13
22
|
}
|
14
23
|
```
|