files.com 1.0.281 → 1.0.284
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/account_line_item.md +24 -20
- data/docs/app.md +1 -1
- data/docs/automation.md +8 -6
- data/docs/bundle.md +24 -14
- data/docs/file.md +2 -0
- data/docs/file_comment.md +7 -5
- data/docs/folder.md +2 -0
- data/docs/form_field.md +1 -1
- data/docs/form_field_set.md +21 -19
- data/docs/group.md +12 -18
- data/docs/invoice.md +24 -20
- data/docs/invoice_line_item.md +1 -1
- data/docs/message.md +11 -7
- data/docs/message_comment.md +7 -5
- data/docs/notification.md +2 -2
- data/docs/payment.md +24 -20
- data/docs/remote_server.md +10 -0
- data/docs/settings_change.md +1 -1
- data/docs/site.md +8 -0
- data/docs/status.md +9 -7
- data/docs/usage_daily_snapshot.md +1 -1
- data/lib/files.com/models/account_line_item.rb +2 -2
- data/lib/files.com/models/app.rb +1 -1
- data/lib/files.com/models/automation.rb +2 -2
- data/lib/files.com/models/bundle.rb +15 -0
- data/lib/files.com/models/file.rb +6 -1
- data/lib/files.com/models/file_comment.rb +1 -1
- data/lib/files.com/models/folder.rb +5 -0
- data/lib/files.com/models/form_field.rb +1 -1
- data/lib/files.com/models/form_field_set.rb +2 -2
- data/lib/files.com/models/group.rb +3 -3
- data/lib/files.com/models/invoice.rb +2 -2
- data/lib/files.com/models/message.rb +1 -1
- data/lib/files.com/models/message_comment.rb +1 -1
- data/lib/files.com/models/notification.rb +2 -2
- data/lib/files.com/models/payment.rb +2 -2
- data/lib/files.com/models/remote_server.rb +21 -0
- data/lib/files.com/models/settings_change.rb +1 -1
- data/lib/files.com/models/site.rb +12 -0
- data/lib/files.com/models/status.rb +1 -1
- 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: 8fd4eab3efb137ddb0e2b4c597055334da75039bc7582ac286da5643de0512a0
|
4
|
+
data.tar.gz: 9f088873cf535eabdd03d60f5c4cc3cd7a80cf508f4ad83d66f5fe23cc2023d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1eb7ad577d5dc730be8a1f105c1a2f54b40aa4ea115f6103c95e6807aa93af7120a07f5732e52c53574fa605c0ff82df50131e026a4266d8f326228b190bfdf
|
7
|
+
data.tar.gz: af161e7e54102acf16115dce51e744c1372f0a1cdd183b83f8b54b28bb0bc4448f4e9fe05d99c350f797a613434da2790d1aed9306a910c1f1231a2c9884db22
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.284
|
data/docs/account_line_item.md
CHANGED
@@ -10,25 +10,29 @@
|
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
|
-
"invoice_line_items":
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
"invoice_line_items": [
|
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": "Premier",
|
23
|
+
"site": "My site"
|
24
|
+
}
|
25
|
+
],
|
24
26
|
"method": "paypal",
|
25
|
-
"payment_line_items":
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
"payment_line_items": [
|
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
|
+
}
|
35
|
+
],
|
32
36
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
33
37
|
"payment_type": "",
|
34
38
|
"site_name": "My Site",
|
@@ -43,9 +47,9 @@
|
|
43
47
|
* `created_at` (date-time): Line item created at
|
44
48
|
* `currency` (string): Line item currency
|
45
49
|
* `download_uri` (string): Line item download uri
|
46
|
-
* `invoice_line_items` (
|
50
|
+
* `invoice_line_items` (array): Associated invoice line items
|
47
51
|
* `method` (string): Line item payment method
|
48
|
-
* `payment_line_items` (
|
52
|
+
* `payment_line_items` (array): Associated payment line items
|
49
53
|
* `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
|
50
54
|
* `payment_type` (string): Type of payment if applicable
|
51
55
|
* `site_name` (string): Site name this line item is for
|
data/docs/app.md
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
* `documentation_links` (object): Collection of named links to documentation
|
32
32
|
* `icon_url` (string): App icon
|
33
33
|
* `logo_url` (string): Full size logo for the App
|
34
|
-
* `screenshot_list_urls` (
|
34
|
+
* `screenshot_list_urls` (array): Screenshots of the App
|
35
35
|
* `logo_thumbnail_url` (string): Logo thumbnail for the App
|
36
36
|
* `sso_strategy_type` (string): Associated SSO Strategy type, if any
|
37
37
|
* `remote_server_type` (string): Associated Remote Server type, if any
|
data/docs/automation.md
CHANGED
@@ -42,7 +42,9 @@
|
|
42
42
|
2
|
43
43
|
],
|
44
44
|
"webhook_url": "https://app.files.com/api/webhooks/abc123",
|
45
|
-
"trigger_actions":
|
45
|
+
"trigger_actions": [
|
46
|
+
"[ \"create\" ]"
|
47
|
+
],
|
46
48
|
"value": "{\"limit\": \"1\"}"
|
47
49
|
}
|
48
50
|
```
|
@@ -57,7 +59,7 @@
|
|
57
59
|
* `name` (string): Name for this automation.
|
58
60
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
59
61
|
* `source` (string): Source Path
|
60
|
-
* `destinations` (
|
62
|
+
* `destinations` (array): Destination Path
|
61
63
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
62
64
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
63
65
|
* `description` (string): Description for the this Automation.
|
@@ -66,7 +68,7 @@
|
|
66
68
|
* `user_ids` (array): IDs of Users for the Automation (i.e. who to Request File from)
|
67
69
|
* `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
|
68
70
|
* `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
69
|
-
* `trigger_actions` (
|
71
|
+
* `trigger_actions` (array): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
70
72
|
* `value` (object): A Hash of attributes specific to the automation type.
|
71
73
|
* `destination` (string): DEPRECATED: Destination Path. Use `destinations` instead.
|
72
74
|
|
@@ -125,7 +127,7 @@ Files::Automation.create(
|
|
125
127
|
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
126
128
|
disabled: true,
|
127
129
|
trigger: "realtime",
|
128
|
-
trigger_actions: "[ \"create\" ]",
|
130
|
+
trigger_actions: ["[ \"create\" ]"],
|
129
131
|
value: "{\"limit\": \"1\"}",
|
130
132
|
automation: "create_folder"
|
131
133
|
)
|
@@ -166,7 +168,7 @@ Files::Automation.update(id,
|
|
166
168
|
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
167
169
|
disabled: true,
|
168
170
|
trigger: "realtime",
|
169
|
-
trigger_actions: "[ \"create\" ]",
|
171
|
+
trigger_actions: ["[ \"create\" ]"],
|
170
172
|
value: "{\"limit\": \"1\"}",
|
171
173
|
automation: "create_folder"
|
172
174
|
)
|
@@ -223,7 +225,7 @@ automation.update(
|
|
223
225
|
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
224
226
|
disabled: true,
|
225
227
|
trigger: "realtime",
|
226
|
-
trigger_actions: "[ \"create\" ]",
|
228
|
+
trigger_actions: ["[ \"create\" ]"],
|
227
229
|
value: "{\"limit\": \"1\"}",
|
228
230
|
automation: "create_folder"
|
229
231
|
)
|
data/docs/bundle.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"url": "https://subdomain.files.com/f/12345678",
|
9
9
|
"description": "The public description of the bundle.",
|
10
10
|
"password_protected": true,
|
11
|
+
"permissions": "read",
|
11
12
|
"preview_only": true,
|
12
13
|
"require_registration": true,
|
13
14
|
"require_share_recipient": true,
|
@@ -21,20 +22,22 @@
|
|
21
22
|
3,
|
22
23
|
4
|
23
24
|
],
|
24
|
-
"form_fields":
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
"
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
25
|
+
"form_fields": [
|
26
|
+
{
|
27
|
+
"id": 1,
|
28
|
+
"label": "Sample Label",
|
29
|
+
"required": true,
|
30
|
+
"help_text": "Help Text",
|
31
|
+
"field_type": "text",
|
32
|
+
"options_for_select": [
|
33
|
+
"red",
|
34
|
+
"green",
|
35
|
+
"blue"
|
36
|
+
],
|
37
|
+
"default_option": "red",
|
38
|
+
"form_field_set_id": 1
|
39
|
+
}
|
40
|
+
],
|
38
41
|
"skip_name": true,
|
39
42
|
"skip_email": true,
|
40
43
|
"skip_company": true
|
@@ -67,6 +70,7 @@
|
|
67
70
|
* `url` (string): Public URL of Share Link
|
68
71
|
* `description` (string): Public description
|
69
72
|
* `password_protected` (boolean): Is this bundle password protected?
|
73
|
+
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
70
74
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
71
75
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
72
76
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
@@ -147,6 +151,7 @@ Files::Bundle.create(
|
|
147
151
|
description: "The public description of the bundle.",
|
148
152
|
note: "The internal note on the bundle.",
|
149
153
|
code: "abc123",
|
154
|
+
permissions: "read",
|
150
155
|
preview_only: true,
|
151
156
|
require_registration: true,
|
152
157
|
clickwrap_id: 1,
|
@@ -169,6 +174,7 @@ Files::Bundle.create(
|
|
169
174
|
* `description` (string): Public description
|
170
175
|
* `note` (string): Bundle internal note
|
171
176
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
177
|
+
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
172
178
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
173
179
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
174
180
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
@@ -216,6 +222,7 @@ Files::Bundle.update(id,
|
|
216
222
|
inbox_id: 1,
|
217
223
|
max_uses: 1,
|
218
224
|
note: "The internal note on the bundle.",
|
225
|
+
permissions: "read",
|
219
226
|
preview_only: true,
|
220
227
|
require_registration: true,
|
221
228
|
require_share_recipient: true,
|
@@ -239,6 +246,7 @@ Files::Bundle.update(id,
|
|
239
246
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
240
247
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
241
248
|
* `note` (string): Bundle internal note
|
249
|
+
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
242
250
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
243
251
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
244
252
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
@@ -302,6 +310,7 @@ bundle.update(
|
|
302
310
|
inbox_id: 1,
|
303
311
|
max_uses: 1,
|
304
312
|
note: "The internal note on the bundle.",
|
313
|
+
permissions: "read",
|
305
314
|
preview_only: true,
|
306
315
|
require_registration: true,
|
307
316
|
require_share_recipient: true,
|
@@ -325,6 +334,7 @@ bundle.update(
|
|
325
334
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
326
335
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
327
336
|
* `note` (string): Bundle internal note
|
337
|
+
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
328
338
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
329
339
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
330
340
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
data/docs/file.md
CHANGED
@@ -11,6 +11,7 @@ may places where a Ruby File object can be used.
|
|
11
11
|
"display_name": "file.txt",
|
12
12
|
"type": "file",
|
13
13
|
"size": 1024,
|
14
|
+
"created_at": "2000-01-01T01:00:00Z",
|
14
15
|
"mtime": "2000-01-01T01:00:00Z",
|
15
16
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
16
17
|
"crc32": "70976923",
|
@@ -36,6 +37,7 @@ may places where a Ruby File object can be used.
|
|
36
37
|
* `display_name` (string): File/Folder display name
|
37
38
|
* `type` (string): Type: `directory` or `file`.
|
38
39
|
* `size` (int64): File/Folder size
|
40
|
+
* `created_at` (date-time): File created date/time
|
39
41
|
* `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
42
|
* `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
43
|
* `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
data/docs/file_comment.md
CHANGED
@@ -6,16 +6,18 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"body": "What a great file!",
|
9
|
-
"reactions":
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
"reactions": [
|
10
|
+
{
|
11
|
+
"id": 1,
|
12
|
+
"emoji": "👍"
|
13
|
+
}
|
14
|
+
]
|
13
15
|
}
|
14
16
|
```
|
15
17
|
|
16
18
|
* `id` (int64): File Comment ID
|
17
19
|
* `body` (string): Comment body.
|
18
|
-
* `reactions` (
|
20
|
+
* `reactions` (array): Reactions to this comment.
|
19
21
|
* `path` (string): File path.
|
20
22
|
|
21
23
|
|
data/docs/folder.md
CHANGED
@@ -13,6 +13,7 @@ Files::Dir is an alias of Files::Folder
|
|
13
13
|
"display_name": "file.txt",
|
14
14
|
"type": "file",
|
15
15
|
"size": 1024,
|
16
|
+
"created_at": "2000-01-01T01:00:00Z",
|
16
17
|
"mtime": "2000-01-01T01:00:00Z",
|
17
18
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
18
19
|
"crc32": "70976923",
|
@@ -38,6 +39,7 @@ Files::Dir is an alias of Files::Folder
|
|
38
39
|
* `display_name` (string): File/Folder display name
|
39
40
|
* `type` (string): Type: `directory` or `file`.
|
40
41
|
* `size` (int64): File/Folder size
|
42
|
+
* `created_at` (date-time): File created date/time
|
41
43
|
* `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.
|
42
44
|
* `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.
|
43
45
|
* `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
data/docs/form_field.md
CHANGED
@@ -24,6 +24,6 @@
|
|
24
24
|
* `required` (boolean): Is this a required field?
|
25
25
|
* `help_text` (string): Help text to be displayed
|
26
26
|
* `field_type` (string): Type of Field
|
27
|
-
* `options_for_select` (
|
27
|
+
* `options_for_select` (array): Options to display for radio and dropdown
|
28
28
|
* `default_option` (string): Default option for radio and dropdown
|
29
29
|
* `form_field_set_id` (int64): Form field set id
|
data/docs/form_field_set.md
CHANGED
@@ -12,20 +12,22 @@
|
|
12
12
|
3,
|
13
13
|
4
|
14
14
|
],
|
15
|
-
"form_fields":
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
+
],
|
29
31
|
"skip_name": true,
|
30
32
|
"skip_email": true,
|
31
33
|
"skip_company": true
|
@@ -34,8 +36,8 @@
|
|
34
36
|
|
35
37
|
* `id` (int64): Form field set id
|
36
38
|
* `title` (string): Title to be displayed
|
37
|
-
* `form_layout` (
|
38
|
-
* `form_fields` (
|
39
|
+
* `form_layout` (array): Layout of the form
|
40
|
+
* `form_fields` (array): Associated form fields
|
39
41
|
* `skip_name` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing name
|
40
42
|
* `skip_email` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing email
|
41
43
|
* `skip_company` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing company
|
@@ -84,7 +86,7 @@ Files::FormFieldSet.create(
|
|
84
86
|
skip_email: true,
|
85
87
|
skip_name: true,
|
86
88
|
skip_company: true,
|
87
|
-
form_fields: {"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}
|
89
|
+
form_fields: [{"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}]
|
88
90
|
)
|
89
91
|
```
|
90
92
|
|
@@ -108,7 +110,7 @@ Files::FormFieldSet.update(id,
|
|
108
110
|
skip_email: true,
|
109
111
|
skip_name: true,
|
110
112
|
skip_company: true,
|
111
|
-
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}
|
113
|
+
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}]
|
112
114
|
)
|
113
115
|
```
|
114
116
|
|
@@ -147,7 +149,7 @@ form_field_set.update(
|
|
147
149
|
skip_email: true,
|
148
150
|
skip_name: true,
|
149
151
|
skip_company: true,
|
150
|
-
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}
|
152
|
+
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}]
|
151
153
|
)
|
152
154
|
```
|
153
155
|
|
data/docs/group.md
CHANGED
@@ -6,25 +6,19 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"name": "owners",
|
9
|
-
"admin_ids":
|
10
|
-
1
|
11
|
-
],
|
9
|
+
"admin_ids": "1",
|
12
10
|
"notes": "",
|
13
|
-
"user_ids":
|
14
|
-
|
15
|
-
],
|
16
|
-
"usernames": [
|
17
|
-
"user"
|
18
|
-
]
|
11
|
+
"user_ids": "1",
|
12
|
+
"usernames": "user"
|
19
13
|
}
|
20
14
|
```
|
21
15
|
|
22
16
|
* `id` (int64): Group ID
|
23
17
|
* `name` (string): Group name
|
24
|
-
* `admin_ids` (string):
|
18
|
+
* `admin_ids` (string): Comma-delimited list of user IDs who are group administrators (separated by commas)
|
25
19
|
* `notes` (string): Notes about this group
|
26
|
-
* `user_ids` (
|
27
|
-
* `usernames` (
|
20
|
+
* `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
|
21
|
+
* `usernames` (string): Comma-delimited list of usernames who belong to this group (separated by commas)
|
28
22
|
|
29
23
|
|
30
24
|
---
|
@@ -71,8 +65,8 @@ Files::Group.find(id)
|
|
71
65
|
```
|
72
66
|
Files::Group.create(
|
73
67
|
name: "owners",
|
74
|
-
user_ids:
|
75
|
-
admin_ids:
|
68
|
+
user_ids: "1",
|
69
|
+
admin_ids: "1"
|
76
70
|
)
|
77
71
|
```
|
78
72
|
|
@@ -91,8 +85,8 @@ Files::Group.create(
|
|
91
85
|
```
|
92
86
|
Files::Group.update(id,
|
93
87
|
name: "owners",
|
94
|
-
user_ids:
|
95
|
-
admin_ids:
|
88
|
+
user_ids: "1",
|
89
|
+
admin_ids: "1"
|
96
90
|
)
|
97
91
|
```
|
98
92
|
|
@@ -127,8 +121,8 @@ group = Files::Group.list.first
|
|
127
121
|
|
128
122
|
group.update(
|
129
123
|
name: "owners",
|
130
|
-
user_ids:
|
131
|
-
admin_ids:
|
124
|
+
user_ids: "1",
|
125
|
+
admin_ids: "1"
|
132
126
|
)
|
133
127
|
```
|
134
128
|
|
data/docs/invoice.md
CHANGED
@@ -10,25 +10,29 @@
|
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
|
-
"invoice_line_items":
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
"invoice_line_items": [
|
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": "Premier",
|
23
|
+
"site": "My site"
|
24
|
+
}
|
25
|
+
],
|
24
26
|
"method": "paypal",
|
25
|
-
"payment_line_items":
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
"payment_line_items": [
|
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
|
+
}
|
35
|
+
],
|
32
36
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
33
37
|
"payment_type": "",
|
34
38
|
"site_name": "My Site",
|
@@ -43,9 +47,9 @@
|
|
43
47
|
* `created_at` (date-time): Line item created at
|
44
48
|
* `currency` (string): Line item currency
|
45
49
|
* `download_uri` (string): Line item download uri
|
46
|
-
* `invoice_line_items` (
|
50
|
+
* `invoice_line_items` (array): Associated invoice line items
|
47
51
|
* `method` (string): Line item payment method
|
48
|
-
* `payment_line_items` (
|
52
|
+
* `payment_line_items` (array): Associated payment line items
|
49
53
|
* `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
|
50
54
|
* `payment_type` (string): Type of payment if applicable
|
51
55
|
* `site_name` (string): Site name this line item is for
|
data/docs/invoice_line_item.md
CHANGED
data/docs/message.md
CHANGED
@@ -7,21 +7,25 @@
|
|
7
7
|
"id": 1,
|
8
8
|
"subject": "Files.com Account Upgrade",
|
9
9
|
"body": "We should upgrade our Files.com account!",
|
10
|
-
"comments":
|
11
|
-
|
12
|
-
"body": "What a great idea, thank you!",
|
13
|
-
"reactions": {
|
10
|
+
"comments": [
|
11
|
+
{
|
14
12
|
"id": 1,
|
15
|
-
"
|
13
|
+
"body": "What a great idea, thank you!",
|
14
|
+
"reactions": [
|
15
|
+
{
|
16
|
+
"id": 1,
|
17
|
+
"emoji": "👍"
|
18
|
+
}
|
19
|
+
]
|
16
20
|
}
|
17
|
-
|
21
|
+
]
|
18
22
|
}
|
19
23
|
```
|
20
24
|
|
21
25
|
* `id` (int64): Message ID
|
22
26
|
* `subject` (string): Message subject.
|
23
27
|
* `body` (string): Message body.
|
24
|
-
* `comments` (
|
28
|
+
* `comments` (array): Comments.
|
25
29
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
26
30
|
* `project_id` (int64): Project to which the message should be attached.
|
27
31
|
|
data/docs/message_comment.md
CHANGED
@@ -6,16 +6,18 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"body": "What a great idea, thank you!",
|
9
|
-
"reactions":
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
"reactions": [
|
10
|
+
{
|
11
|
+
"id": 1,
|
12
|
+
"emoji": "👍"
|
13
|
+
}
|
14
|
+
]
|
13
15
|
}
|
14
16
|
```
|
15
17
|
|
16
18
|
* `id` (int64): Message Comment ID
|
17
19
|
* `body` (string): Comment body.
|
18
|
-
* `reactions` (
|
20
|
+
* `reactions` (array): Reactions to this comment.
|
19
21
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
20
22
|
|
21
23
|
|
data/docs/notification.md
CHANGED
@@ -40,8 +40,8 @@
|
|
40
40
|
* `path` (string): Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
41
41
|
* `group_id` (int64): Notification group id
|
42
42
|
* `group_name` (string): Group name if applicable
|
43
|
-
* `triggering_group_ids` (
|
44
|
-
* `triggering_user_ids` (
|
43
|
+
* `triggering_group_ids` (array): Only notify on actions made by a member of one of the specified groups
|
44
|
+
* `triggering_user_ids` (array): Only notify on actions made one of the specified users
|
45
45
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
46
46
|
* `notify_user_actions` (boolean): Trigger notification on notification user actions?
|
47
47
|
* `notify_on_copy` (boolean): Triggers notification when copying files to this path
|