files.com 1.0.158 → 1.0.159
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 +20 -24
- data/docs/bundle.md +14 -16
- data/docs/external_event.md +2 -2
- data/docs/file_comment.md +5 -7
- data/docs/form_field_set.md +18 -20
- data/docs/group.md +1 -1
- data/docs/invoice.md +20 -24
- data/docs/message.md +7 -11
- data/docs/message_comment.md +5 -7
- data/docs/payment.md +20 -24
- data/docs/sso_strategy.md +2 -4
- data/docs/status.md +7 -9
- data/lib/files.com/models/account_line_item.rb +2 -2
- data/lib/files.com/models/external_event.rb +2 -2
- data/lib/files.com/models/file_comment.rb +1 -1
- data/lib/files.com/models/form_field_set.rb +1 -1
- data/lib/files.com/models/group.rb +1 -1
- 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/payment.rb +2 -2
- data/lib/files.com/models/sso_strategy.rb +1 -1
- data/lib/files.com/models/status.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ee353bca980becced463ffab55eb6af982e055c1f3a52535a27312606ac76e
|
4
|
+
data.tar.gz: 58c06946578d59ee0af44c90b575613ca3500d75da5249665ffed66724b36ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a88a40b7f09c6d2efb1167d1b8b7011018d2f2af640b2fc3c7d2d901ae86e60d7cece1bfaab0afc5f08fbbd042321d05c4822c00ed21370ec0b789896741a0
|
7
|
+
data.tar.gz: cbd82ba833efb51e42ba69c22dc6784118d0141d1c368c00ebdebb3e36384373ab21c07007260bb74dfcdd2533e8d597ca0cb279c70324796eda345e8abc6315
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.159
|
data/docs/account_line_item.md
CHANGED
@@ -10,29 +10,25 @@
|
|
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
|
-
|
24
|
-
}
|
25
|
-
],
|
13
|
+
"invoice_line_items": {
|
14
|
+
"amount": 1.0,
|
15
|
+
"created_at": "2000-01-01T01:00:00Z",
|
16
|
+
"description": "Service from 2019-01-01 through 2019-12-31",
|
17
|
+
"type": "invoice",
|
18
|
+
"service_end_at": "2000-01-01T01:00:00Z",
|
19
|
+
"service_start_at": "2000-01-01T01:00:00Z",
|
20
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
21
|
+
"plan": "Enterprise",
|
22
|
+
"site": "My site"
|
23
|
+
},
|
26
24
|
"method": "paypal",
|
27
|
-
"payment_line_items":
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
35
|
-
],
|
25
|
+
"payment_line_items": {
|
26
|
+
"amount": 1.0,
|
27
|
+
"created_at": "2000-01-01T01:00:00Z",
|
28
|
+
"invoice_id": 1,
|
29
|
+
"payment_id": 1,
|
30
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
31
|
+
},
|
36
32
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
37
33
|
"payment_type": "",
|
38
34
|
"site_name": "My Site",
|
@@ -47,9 +43,9 @@
|
|
47
43
|
* `created_at` (date-time): Line item created at
|
48
44
|
* `currency` (string): Line item currency
|
49
45
|
* `download_uri` (string): Line item download uri
|
50
|
-
* `invoice_line_items
|
46
|
+
* `invoice_line_items`: Associated invoice line items
|
51
47
|
* `method` (string): Line item payment method
|
52
|
-
* `payment_line_items
|
48
|
+
* `payment_line_items`: Associated payment line items
|
53
49
|
* `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
|
54
50
|
* `payment_type` (string): Type of payment if applicable
|
55
51
|
* `site_name` (string): Site name this line item is for
|
data/docs/bundle.md
CHANGED
@@ -20,22 +20,20 @@
|
|
20
20
|
3,
|
21
21
|
4
|
22
22
|
],
|
23
|
-
"form_fields":
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
],
|
23
|
+
"form_fields": {
|
24
|
+
"id": 1,
|
25
|
+
"label": "Sample Label",
|
26
|
+
"required": true,
|
27
|
+
"help_text": "Help Text",
|
28
|
+
"field_type": "text",
|
29
|
+
"options_for_select": [
|
30
|
+
"red",
|
31
|
+
"green",
|
32
|
+
"blue"
|
33
|
+
],
|
34
|
+
"default_option": "red",
|
35
|
+
"form_field_set_id": 1
|
36
|
+
},
|
39
37
|
"skip_name": true,
|
40
38
|
"skip_email": true,
|
41
39
|
"skip_company": true
|
data/docs/external_event.md
CHANGED
@@ -11,8 +11,8 @@
|
|
11
11
|
}
|
12
12
|
```
|
13
13
|
|
14
|
-
* `event_type` (string): Type of event being recorded.
|
15
|
-
* `status` (string): Status of event.
|
14
|
+
* `event_type` (string): Type of event being recorded.
|
15
|
+
* `status` (string): Status of event.
|
16
16
|
* `body` (string): Event body
|
17
17
|
* `created_at` (date-time): External event create date/time
|
18
18
|
|
data/docs/file_comment.md
CHANGED
@@ -6,18 +6,16 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"body": "What a great file!",
|
9
|
-
"reactions":
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
]
|
9
|
+
"reactions": {
|
10
|
+
"id": 1,
|
11
|
+
"emoji": "👍"
|
12
|
+
}
|
15
13
|
}
|
16
14
|
```
|
17
15
|
|
18
16
|
* `id` (int64): File Comment ID
|
19
17
|
* `body` (string): Comment body.
|
20
|
-
* `reactions
|
18
|
+
* `reactions`: Reactions to this comment.
|
21
19
|
* `path` (string): File path.
|
22
20
|
|
23
21
|
|
data/docs/form_field_set.md
CHANGED
@@ -12,22 +12,20 @@
|
|
12
12
|
3,
|
13
13
|
4
|
14
14
|
],
|
15
|
-
"form_fields":
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
}
|
30
|
-
],
|
15
|
+
"form_fields": {
|
16
|
+
"id": 1,
|
17
|
+
"label": "Sample Label",
|
18
|
+
"required": true,
|
19
|
+
"help_text": "Help Text",
|
20
|
+
"field_type": "text",
|
21
|
+
"options_for_select": [
|
22
|
+
"red",
|
23
|
+
"green",
|
24
|
+
"blue"
|
25
|
+
],
|
26
|
+
"default_option": "red",
|
27
|
+
"form_field_set_id": 1
|
28
|
+
},
|
31
29
|
"skip_name": true,
|
32
30
|
"skip_email": true,
|
33
31
|
"skip_company": true
|
@@ -37,7 +35,7 @@
|
|
37
35
|
* `id` (int64): Form field set id
|
38
36
|
* `title` (string): Title to be displayed
|
39
37
|
* `form_layout` (int64): Layout of the form
|
40
|
-
* `form_fields
|
38
|
+
* `form_fields`: Associated form fields
|
41
39
|
* `skip_name` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing name
|
42
40
|
* `skip_email` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing email
|
43
41
|
* `skip_company` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing company
|
@@ -86,7 +84,7 @@ Files::FormFieldSet.create(
|
|
86
84
|
skip_email: true,
|
87
85
|
skip_name: true,
|
88
86
|
skip_company: true,
|
89
|
-
form_fields:
|
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}
|
90
88
|
)
|
91
89
|
```
|
92
90
|
|
@@ -110,7 +108,7 @@ Files::FormFieldSet.update(id,
|
|
110
108
|
skip_email: true,
|
111
109
|
skip_name: true,
|
112
110
|
skip_company: true,
|
113
|
-
form_fields:
|
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}
|
114
112
|
)
|
115
113
|
```
|
116
114
|
|
@@ -149,7 +147,7 @@ form_field_set.update(
|
|
149
147
|
skip_email: true,
|
150
148
|
skip_name: true,
|
151
149
|
skip_company: true,
|
152
|
-
form_fields:
|
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}
|
153
151
|
)
|
154
152
|
```
|
155
153
|
|
data/docs/group.md
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
* `id` (int64): Group ID
|
23
23
|
* `name` (string): Group name
|
24
|
-
* `admin_ids` (
|
24
|
+
* `admin_ids` (string): List of user IDs who are group administrators (separated by commas)
|
25
25
|
* `notes` (string): Notes about this group
|
26
26
|
* `user_ids` (array): List of user IDs who belong to this group (separated by commas)
|
27
27
|
* `usernames` (array): List of usernames who belong to this group (separated by commas)
|
data/docs/invoice.md
CHANGED
@@ -10,29 +10,25 @@
|
|
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
|
-
|
24
|
-
}
|
25
|
-
],
|
13
|
+
"invoice_line_items": {
|
14
|
+
"amount": 1.0,
|
15
|
+
"created_at": "2000-01-01T01:00:00Z",
|
16
|
+
"description": "Service from 2019-01-01 through 2019-12-31",
|
17
|
+
"type": "invoice",
|
18
|
+
"service_end_at": "2000-01-01T01:00:00Z",
|
19
|
+
"service_start_at": "2000-01-01T01:00:00Z",
|
20
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
21
|
+
"plan": "Enterprise",
|
22
|
+
"site": "My site"
|
23
|
+
},
|
26
24
|
"method": "paypal",
|
27
|
-
"payment_line_items":
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
35
|
-
],
|
25
|
+
"payment_line_items": {
|
26
|
+
"amount": 1.0,
|
27
|
+
"created_at": "2000-01-01T01:00:00Z",
|
28
|
+
"invoice_id": 1,
|
29
|
+
"payment_id": 1,
|
30
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
31
|
+
},
|
36
32
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
37
33
|
"payment_type": "",
|
38
34
|
"site_name": "My Site",
|
@@ -47,9 +43,9 @@
|
|
47
43
|
* `created_at` (date-time): Line item created at
|
48
44
|
* `currency` (string): Line item currency
|
49
45
|
* `download_uri` (string): Line item download uri
|
50
|
-
* `invoice_line_items
|
46
|
+
* `invoice_line_items`: Associated invoice line items
|
51
47
|
* `method` (string): Line item payment method
|
52
|
-
* `payment_line_items
|
48
|
+
* `payment_line_items`: Associated payment line items
|
53
49
|
* `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
|
54
50
|
* `payment_type` (string): Type of payment if applicable
|
55
51
|
* `site_name` (string): Site name this line item is for
|
data/docs/message.md
CHANGED
@@ -7,25 +7,21 @@
|
|
7
7
|
"id": 1,
|
8
8
|
"subject": "Files.com Account Upgrade",
|
9
9
|
"body": "We should upgrade our Files.com account!",
|
10
|
-
"comments":
|
11
|
-
|
10
|
+
"comments": {
|
11
|
+
"id": 1,
|
12
|
+
"body": "What a great idea, thank you!",
|
13
|
+
"reactions": {
|
12
14
|
"id": 1,
|
13
|
-
"
|
14
|
-
"reactions": [
|
15
|
-
{
|
16
|
-
"id": 1,
|
17
|
-
"emoji": "👍"
|
18
|
-
}
|
19
|
-
]
|
15
|
+
"emoji": "👍"
|
20
16
|
}
|
21
|
-
|
17
|
+
}
|
22
18
|
}
|
23
19
|
```
|
24
20
|
|
25
21
|
* `id` (int64): Message ID
|
26
22
|
* `subject` (string): Message subject.
|
27
23
|
* `body` (string): Message body.
|
28
|
-
* `comments
|
24
|
+
* `comments`: Comments.
|
29
25
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
30
26
|
* `project_id` (int64): Project to which the message should be attached.
|
31
27
|
|
data/docs/message_comment.md
CHANGED
@@ -6,18 +6,16 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"body": "What a great idea, thank you!",
|
9
|
-
"reactions":
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
]
|
9
|
+
"reactions": {
|
10
|
+
"id": 1,
|
11
|
+
"emoji": "👍"
|
12
|
+
}
|
15
13
|
}
|
16
14
|
```
|
17
15
|
|
18
16
|
* `id` (int64): Message Comment ID
|
19
17
|
* `body` (string): Comment body.
|
20
|
-
* `reactions
|
18
|
+
* `reactions`: Reactions to this comment.
|
21
19
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
22
20
|
|
23
21
|
|
data/docs/payment.md
CHANGED
@@ -10,29 +10,25 @@
|
|
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
|
-
|
24
|
-
}
|
25
|
-
],
|
13
|
+
"invoice_line_items": {
|
14
|
+
"amount": 1.0,
|
15
|
+
"created_at": "2000-01-01T01:00:00Z",
|
16
|
+
"description": "Service from 2019-01-01 through 2019-12-31",
|
17
|
+
"type": "invoice",
|
18
|
+
"service_end_at": "2000-01-01T01:00:00Z",
|
19
|
+
"service_start_at": "2000-01-01T01:00:00Z",
|
20
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
21
|
+
"plan": "Enterprise",
|
22
|
+
"site": "My site"
|
23
|
+
},
|
26
24
|
"method": "paypal",
|
27
|
-
"payment_line_items":
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
35
|
-
],
|
25
|
+
"payment_line_items": {
|
26
|
+
"amount": 1.0,
|
27
|
+
"created_at": "2000-01-01T01:00:00Z",
|
28
|
+
"invoice_id": 1,
|
29
|
+
"payment_id": 1,
|
30
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
31
|
+
},
|
36
32
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
37
33
|
"payment_type": "",
|
38
34
|
"site_name": "My Site",
|
@@ -47,9 +43,9 @@
|
|
47
43
|
* `created_at` (date-time): Line item created at
|
48
44
|
* `currency` (string): Line item currency
|
49
45
|
* `download_uri` (string): Line item download uri
|
50
|
-
* `invoice_line_items
|
46
|
+
* `invoice_line_items`: Associated invoice line items
|
51
47
|
* `method` (string): Line item payment method
|
52
|
-
* `payment_line_items
|
48
|
+
* `payment_line_items`: Associated payment line items
|
53
49
|
* `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
|
54
50
|
* `payment_type` (string): Type of payment if applicable
|
55
51
|
* `site_name` (string): Site name this line item is for
|
data/docs/sso_strategy.md
CHANGED
@@ -4,9 +4,7 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
-
"protocol":
|
8
|
-
"okta"
|
9
|
-
],
|
7
|
+
"protocol": "oauth2",
|
10
8
|
"provider": "okta",
|
11
9
|
"label": "My Corporate SSO Provider",
|
12
10
|
"logo_url": "https://mysite.files.com/.../logo.png",
|
@@ -51,7 +49,7 @@
|
|
51
49
|
}
|
52
50
|
```
|
53
51
|
|
54
|
-
* `protocol` (
|
52
|
+
* `protocol` (string): SSO Protocol
|
55
53
|
* `provider` (string): Provider name
|
56
54
|
* `label` (string): Custom label for the SSO provider on the login page.
|
57
55
|
* `logo_url` (string): URL holding a custom logo for the SSO provider on the login page.
|
data/docs/status.md
CHANGED
@@ -8,16 +8,14 @@
|
|
8
8
|
"message": "",
|
9
9
|
"status": "",
|
10
10
|
"data": "",
|
11
|
-
"errors":
|
12
|
-
|
13
|
-
"fields": [
|
11
|
+
"errors": {
|
12
|
+
"fields": [
|
14
13
|
|
15
|
-
|
16
|
-
|
14
|
+
],
|
15
|
+
"messages": [
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
],
|
17
|
+
]
|
18
|
+
},
|
21
19
|
"clickwrap_id": 1,
|
22
20
|
"clickwrap_body": ""
|
23
21
|
}
|
@@ -27,6 +25,6 @@
|
|
27
25
|
* `message` (string): Error message
|
28
26
|
* `status` (string): Status message
|
29
27
|
* `data`: Additional data
|
30
|
-
* `errors
|
28
|
+
* `errors`: A list of api errors
|
31
29
|
* `clickwrap_id` (int64): Required Clickwrap id
|
32
30
|
* `clickwrap_body` (string): Required Clickwrap body
|
@@ -39,7 +39,7 @@ module Files
|
|
39
39
|
@attributes[:download_uri]
|
40
40
|
end
|
41
41
|
|
42
|
-
#
|
42
|
+
# Associated invoice line items
|
43
43
|
def invoice_line_items
|
44
44
|
@attributes[:invoice_line_items]
|
45
45
|
end
|
@@ -49,7 +49,7 @@ module Files
|
|
49
49
|
@attributes[:method]
|
50
50
|
end
|
51
51
|
|
52
|
-
#
|
52
|
+
# Associated payment line items
|
53
53
|
def payment_line_items
|
54
54
|
@attributes[:payment_line_items]
|
55
55
|
end
|
@@ -9,12 +9,12 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
-
# string - Type of event being recorded.
|
12
|
+
# string - Type of event being recorded.
|
13
13
|
def event_type
|
14
14
|
@attributes[:event_type]
|
15
15
|
end
|
16
16
|
|
17
|
-
# string - Status of event.
|
17
|
+
# string - Status of event.
|
18
18
|
def status
|
19
19
|
@attributes[:status]
|
20
20
|
end
|
@@ -27,7 +27,7 @@ module Files
|
|
27
27
|
@attributes[:name] = value
|
28
28
|
end
|
29
29
|
|
30
|
-
#
|
30
|
+
# string - List of user IDs who are group administrators (separated by commas)
|
31
31
|
def admin_ids
|
32
32
|
@attributes[:admin_ids]
|
33
33
|
end
|
@@ -39,7 +39,7 @@ module Files
|
|
39
39
|
@attributes[:download_uri]
|
40
40
|
end
|
41
41
|
|
42
|
-
#
|
42
|
+
# Associated invoice line items
|
43
43
|
def invoice_line_items
|
44
44
|
@attributes[:invoice_line_items]
|
45
45
|
end
|
@@ -49,7 +49,7 @@ module Files
|
|
49
49
|
@attributes[:method]
|
50
50
|
end
|
51
51
|
|
52
|
-
#
|
52
|
+
# Associated payment line items
|
53
53
|
def payment_line_items
|
54
54
|
@attributes[:payment_line_items]
|
55
55
|
end
|
@@ -39,7 +39,7 @@ module Files
|
|
39
39
|
@attributes[:download_uri]
|
40
40
|
end
|
41
41
|
|
42
|
-
#
|
42
|
+
# Associated invoice line items
|
43
43
|
def invoice_line_items
|
44
44
|
@attributes[:invoice_line_items]
|
45
45
|
end
|
@@ -49,7 +49,7 @@ module Files
|
|
49
49
|
@attributes[:method]
|
50
50
|
end
|
51
51
|
|
52
|
-
#
|
52
|
+
# Associated payment line items
|
53
53
|
def payment_line_items
|
54
54
|
@attributes[:payment_line_items]
|
55
55
|
end
|