ultracart_api 4.1.176 → 4.1.178
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/README.md +20 -2
- data/docs/SfvbApi.md +447 -0
- data/docs/SfvbBlogPostDetail.md +46 -0
- data/docs/SfvbBlogPostImage.md +32 -0
- data/docs/SfvbBlogPostImageRequest.md +28 -0
- data/docs/SfvbBlogPostRequest.md +34 -0
- data/docs/SfvbPageAttributeUpdate.md +1 -1
- data/docs/SfvbServerLog.md +38 -0
- data/docs/SfvbServerLogDetail.md +26 -0
- data/docs/SfvbServerLogEntry.md +24 -0
- data/docs/SfvbServerLogsResponse.md +26 -0
- data/lib/ultracart_api/api/sfvb_api.rb +607 -0
- data/lib/ultracart_api/models/sfvb_blog_post_detail.rb +364 -0
- data/lib/ultracart_api/models/sfvb_blog_post_image.rb +290 -0
- data/lib/ultracart_api/models/sfvb_blog_post_image_request.rb +270 -0
- data/lib/ultracart_api/models/sfvb_blog_post_request.rb +336 -0
- data/lib/ultracart_api/models/sfvb_page_attribute_update.rb +1 -1
- data/lib/ultracart_api/models/sfvb_server_log.rb +320 -0
- data/lib/ultracart_api/models/sfvb_server_log_detail.rb +261 -0
- data/lib/ultracart_api/models/sfvb_server_log_entry.rb +250 -0
- data/lib/ultracart_api/models/sfvb_server_logs_response.rb +262 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +8 -0
- metadata +18 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UltracartClient::SfvbBlogPostRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **allow_comments** | **Boolean** | Whether shoppers may comment. Defaults to false on create. | [optional] |
|
|
8
|
+
| **author** | **String** | The author's name as plain text, up to 100 characters, with no quotes or angle brackets. | [optional] |
|
|
9
|
+
| **body** | **String** | The post body as HTML, up to 1 MB, rendered exactly as stored. Refused with sfvb.unsafe_html if it could run script - script and other executable tags, on attributes, links that are not http, https, mailto, tel or relative, and iframes other than YouTube or Vimeo players. Reference an attached image by the url the post's images report. | [optional] |
|
|
10
|
+
| **excerpt** | **String** | The post excerpt as HTML, up to 256 KB. Held to the same rule as body. | [optional] |
|
|
11
|
+
| **publication_dts** | **String** | When the post is published, as an ISO 8601 UTC time in the same form publication_dts reads back. Refused on a draft. A post made public without one is published now. | [optional] |
|
|
12
|
+
| **tags** | **Array<String>** | The post's tags as plain text, up to 100 characters each, with no quotes or angle brackets and no repeats. On an update the list replaces every tag, and an empty list clears them. | [optional] |
|
|
13
|
+
| **title** | **String** | The post title, up to 1000 characters. Required on create. | [optional] |
|
|
14
|
+
| **url_part** | **String** | The post's name in its URL, which is the page path followed by this and .html. Letters, digits, hyphens and underscores, up to 150. Must not be used by another post on the storefront, compared without regard to case, and must not be an item id or an item's url part, because the storefront checks blog posts first and the post would replace the item's page. index and index-N are reserved. Required on create. | [optional] |
|
|
15
|
+
| **visibility** | **String** | P public, L logged in customers only, D draft. Defaults to D on create. Anything but D needs sfvb_publish, and so does any change to a post that is not a draft. | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'ultracart_api'
|
|
21
|
+
|
|
22
|
+
instance = UltracartClient::SfvbBlogPostRequest.new(
|
|
23
|
+
allow_comments: null,
|
|
24
|
+
author: null,
|
|
25
|
+
body: null,
|
|
26
|
+
excerpt: null,
|
|
27
|
+
publication_dts: null,
|
|
28
|
+
tags: null,
|
|
29
|
+
title: null,
|
|
30
|
+
url_part: null,
|
|
31
|
+
visibility: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **name** | **String** | Attribute name. Matched without regard to case against what the page already has, so you do not have to reproduce the exact casing. A name nothing matches creates a new attribute. | [optional] |
|
|
8
8
|
| **type** | **String** | Only consulted when creating an attribute no template declares. For a declared attribute the template's type always wins, because the templates decide it and not the caller. | [optional] |
|
|
9
|
-
| **value** | **String** | The value to store. An empty string clears it. For html the markup is stored as given and rendered as given. For boolean send the text true or false. | [optional] |
|
|
9
|
+
| **value** | **String** | The value to store. An empty string clears it. For html the markup is stored as given and rendered as given. For boolean send the text true or false. For itemset send a comma separated list of merchant item ids in display order, not JSON. An id that does not resolve is dropped. | [optional] |
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UltracartClient::SfvbServerLog
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **app_error** | **Boolean** | True when the render itself failed and the page could not be produced. | [optional] |
|
|
8
|
+
| **duration_ms** | **Integer** | How long the render took in milliseconds. | [optional] |
|
|
9
|
+
| **error_count** | **Integer** | Error lines in the log, including Velocity problems such as a null | [optional] |
|
|
10
|
+
| **line_count** | **Integer** | Lines in the full log text. | [optional] |
|
|
11
|
+
| **log_id** | **String** | Opaque id of this log. Pass it to the get endpoint. Preview pages send the same id in the X-UltraCart-Storefront-Log-Id response header. | [optional] |
|
|
12
|
+
| **request_template** | **String** | The template the page rendered with, when known. | [optional] |
|
|
13
|
+
| **request_url** | **String** | The address that was rendered, as the server recorded it. | [optional] |
|
|
14
|
+
| **start_date** | **String** | When the render started, ISO-8601 in UTC. | [optional] |
|
|
15
|
+
| **status** | **String** | ERROR when the render logged any error line or failed, otherwise SUCCESS. | [optional] |
|
|
16
|
+
| **stop_date** | **String** | When the render finished, ISO-8601 in UTC. | [optional] |
|
|
17
|
+
| **warning_count** | **Integer** | Warning lines in the log. | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'ultracart_api'
|
|
23
|
+
|
|
24
|
+
instance = UltracartClient::SfvbServerLog.new(
|
|
25
|
+
app_error: null,
|
|
26
|
+
duration_ms: null,
|
|
27
|
+
error_count: null,
|
|
28
|
+
line_count: null,
|
|
29
|
+
log_id: null,
|
|
30
|
+
request_template: null,
|
|
31
|
+
request_url: null,
|
|
32
|
+
start_date: null,
|
|
33
|
+
status: null,
|
|
34
|
+
stop_date: null,
|
|
35
|
+
warning_count: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::SfvbServerLogDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **entries** | [**Array<SfvbServerLogEntry>**](SfvbServerLogEntry.md) | The log's lines in the order they were written, at or above min_level. | [optional] |
|
|
8
|
+
| **log** | [**SfvbServerLog**](SfvbServerLog.md) | | [optional] |
|
|
9
|
+
| **min_level** | **String** | The lowest level included in entries. | [optional] |
|
|
10
|
+
| **remote_ip** | **String** | The address of the browser that asked for the page, as the backend log viewer shows it. | [optional] |
|
|
11
|
+
| **user_agent** | **String** | The browser's user agent, as the backend log viewer shows it. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::SfvbServerLogDetail.new(
|
|
19
|
+
entries: null,
|
|
20
|
+
log: null,
|
|
21
|
+
min_level: null,
|
|
22
|
+
remote_ip: null,
|
|
23
|
+
user_agent: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbServerLogEntry
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **category** | **String** | The area that wrote the line, such as VELOCITY, FLOW, CACHE or RUNTIME. Empty for SYSERR lines. | [optional] |
|
|
8
|
+
| **level** | **String** | DEBUG, INFO, WARN, ERROR or SYSERR. SYSERR is an internal logging failure and counts as an error. | [optional] |
|
|
9
|
+
| **logged_at** | **String** | The line's own time as the log wrote it, yyyy/MM/dd hh.mm.ss on a 12 hour clock without AM or PM. Use the log start_date and the entry order for real timing. | [optional] |
|
|
10
|
+
| **message** | **String** | The line's text. A message that spanned several lines keeps its line breaks. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbServerLogEntry.new(
|
|
18
|
+
category: null,
|
|
19
|
+
level: null,
|
|
20
|
+
logged_at: null,
|
|
21
|
+
message: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::SfvbServerLogsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **limit** | **Integer** | The most logs returned. | [optional] |
|
|
8
|
+
| **logs** | [**Array<SfvbServerLog>**](SfvbServerLog.md) | Matching logs, newest first, without their text. | [optional] |
|
|
9
|
+
| **more_available** | **Boolean** | True when older logs in the window were not read. Narrow since, or page by moving since back. | [optional] |
|
|
10
|
+
| **searched** | **Integer** | How many of the newest logs in the window were read to find these. | [optional] |
|
|
11
|
+
| **since** | **String** | The start of the window searched, ISO-8601 in UTC. Logs are kept for seven days. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::SfvbServerLogsResponse.new(
|
|
19
|
+
limit: null,
|
|
20
|
+
logs: null,
|
|
21
|
+
more_available: null,
|
|
22
|
+
searched: null,
|
|
23
|
+
since: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|