sbuilder-mcp 0.116.0 → 0.117.0
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.
- package/CHANGELOG.md +13 -0
- package/CHANGELOG.vi.md +13 -0
- package/README.md +2 -2
- package/README.vi.md +2 -2
- package/dist/catalog/api.generated.js +539 -4
- package/dist/catalog/deadkeys.generated.js +2 -2
- package/dist/catalog/elements.generated.js +5670 -1828
- package/dist/catalog/shapes.generated.js +417 -5
- package/dist/catalog/source.generated.js +2 -2
- package/dist/catalog/storepages.generated.js +1420 -79
- package/dist/catalog/translations.generated.js +33 -2
- package/dist/domains/site/node.js +13 -2
- package/dist/domains/site/review.js +4 -1
- package/dist/domains/site/storepage.js +9 -1
- package/dist/tools/menu.js +4 -3
- package/dist/tools/pageupdate.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ All notable changes to this project are documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.117.0] - 2026-11-27
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Product-tag (`/product-tags/{slug}`) and blog-tag (`/blog-tags/{slug}`) pages open as pages like a brand, including seeded store pages for both tag types.
|
|
13
|
+
- `sb_page_update` sets `render_for` and `default_template` on product-tag and blog-tag pages.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- `sb_add` and `sb_set` refuse `productTag` and `blogTag` as a list-dataset `datasetSource`, because tags are single-item sources.
|
|
17
|
+
- `sb_review` treats a tag page as supplying its own tag and reports a tag binding elsewhere as `no_data_context`.
|
|
18
|
+
- `sb_publish` verification reads the product-tag and article-tag paths.
|
|
19
|
+
- The blank tag page note names `page_tag` narrowing.
|
|
20
|
+
- The bundled platform catalog is regenerated from web_builder v1.0.353.
|
|
21
|
+
|
|
9
22
|
## [0.116.0] - 2026-11-26
|
|
10
23
|
|
|
11
24
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,19 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
|
|
|
6
6
|
Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.117.0] - 2026-11-27
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Các trang product-tag (`/product-tags/{slug}`) và blog-tag (`/blog-tags/{slug}`) mở được như trang thương hiệu, kèm trang cửa hàng seed sẵn cho cả hai loại tag.
|
|
13
|
+
- `sb_page_update` đặt được `render_for` và `default_template` trên các trang product-tag và blog-tag.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- `sb_add` và `sb_set` từ chối `productTag` và `blogTag` làm `datasetSource` của list-dataset, vì tag là nguồn một mục.
|
|
17
|
+
- `sb_review` coi trang tag tự cung cấp tag của nó và báo binding tag ở nơi khác là `no_data_context`.
|
|
18
|
+
- Bước xác minh của `sb_publish` đọc các đường dẫn product-tag và article-tag.
|
|
19
|
+
- Ghi chú trang tag trống nêu rõ việc thu hẹp bằng `page_tag`.
|
|
20
|
+
- Catalog nền tảng đi kèm được tạo lại từ web_builder v1.0.353.
|
|
21
|
+
|
|
9
22
|
## [0.116.0] - 2026-11-26
|
|
10
23
|
|
|
11
24
|
### Added
|
package/README.md
CHANGED
|
@@ -143,8 +143,8 @@ in this client: one would put the very key the platform exists to hold back into
|
|
|
143
143
|
| `sb_store` | Run a store flow that must happen in a fixed order — `checkout` (the four writes that make a working one), `checkout_sync` (the store's current payment and delivery methods into every existing order form, checkout page republished), `form` (any of the platform's 17 templates with its own field document), `chrome` (one shared header or footer on a real site menu — site name linked home, desktop menu, mobile drawer, search, cart and account icons), `menu` (a menu node bound to the site's menu, its links resolved), `overlay_attach` (a pop-up or quick view on the open page), `cart` (the site's cart drawer, when it has none; `relocalize` puts an existing one in the site's language) and `app` (a built-in app plus the pages it needs), `global_attach` / `global_detach` (put an EXISTING shared section on the open page, or take it off), `global_promote` (make a section on the page a NEW shared section) and `template_save` (save a section as a reusable template) |
|
|
144
144
|
| `sb_undo` | Undo / redo this session's writes — page and form edits and `sb_api_call` PUTs, each named by tool and target, the open page's by default (`all: true` for every page); a page is refused if someone else saved it since. The platform's versions and history (`sb_page_version`) outlive this process |
|
|
145
145
|
|
|
146
|
-
Forty-three tools, **
|
|
147
|
-
off the handler), 125 elements,
|
|
146
|
+
Forty-three tools, **1026 API operations** (380 of the 472 writes carrying a body shape read
|
|
147
|
+
off the handler), 125 elements, 107 binding sources. `sb_api_find`
|
|
148
148
|
is an index rather than a tool per endpoint, so the tool list stays short while everything
|
|
149
149
|
the platform can do stays reachable — and operations added to the platform arrive with the
|
|
150
150
|
next `npm run codegen`.
|
package/README.vi.md
CHANGED
|
@@ -139,8 +139,8 @@ nhét ngược lại vào mọi bản cài.
|
|
|
139
139
|
| `sb_store` | Chạy một luồng cửa hàng bắt buộc đúng thứ tự — `checkout` (bốn lệnh ghi tạo nên trang thanh toán), `checkout_sync` (đưa phương thức thanh toán và giao hàng hiện tại vào mọi form đặt hàng đã có, publish lại trang thanh toán), `form` (một trong 17 template của nền tảng kèm field document của nó), `chrome` (một header hoặc footer dùng chung trên menu thật của site — tên site dẫn về trang chủ, menu desktop, drawer mobile, ô tìm kiếm, icon giỏ hàng và tài khoản), `menu` (một node menu bind vào menu của site, link đã phân giải), `overlay_attach` (một pop-up hay quick view trên trang đang mở), `cart` (ngăn giỏ hàng của site, khi chưa có; `relocalize` đưa ngăn giỏ đã có về ngôn ngữ của site), `app` (một app dựng sẵn kèm những trang nó cần), và `global_attach` / `global_detach` (đặt một section dùng chung ĐÃ CÓ lên trang đang mở, hoặc gỡ ra), `global_promote` (biến một section trên trang thành section dùng chung MỚI) và `template_save` (lưu một section làm mẫu dùng lại) |
|
|
140
140
|
| `sb_undo` | Hoàn tác / làm lại các thao tác ghi trong phiên — chỉnh sửa trang, form và PUT qua `sb_api_call`, mỗi mục ghi tên tool và đối tượng, mặc định của trang đang mở (`all: true` cho mọi trang); trang bị từ chối nếu người khác đã lưu sau đó. Version và history của nền tảng (`sb_page_version`) sống lâu hơn process này |
|
|
141
141
|
|
|
142
|
-
Bốn mươi ba tool, **
|
|
143
|
-
từ handler), 125 element,
|
|
142
|
+
Bốn mươi ba tool, **1026 operation API** (380 trong 472 lệnh ghi có hình dạng body đọc thẳng
|
|
143
|
+
từ handler), 125 element, 107 nguồn binding. `sb_api_find` là
|
|
144
144
|
một chỉ mục chứ không phải mỗi endpoint một tool, nên danh sách tool vẫn ngắn trong khi mọi
|
|
145
145
|
thứ nền tảng làm được vẫn với tới — và operation mới thêm bên nền tảng sẽ tự có sau lần
|
|
146
146
|
`npm run codegen` kế tiếp.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const SWAGGER_SOURCE = {
|
|
2
|
-
"operations":
|
|
3
|
-
"definitions":
|
|
4
|
-
"bodyCarrying":
|
|
2
|
+
"operations": 1026,
|
|
3
|
+
"definitions": 449,
|
|
4
|
+
"bodyCarrying": 503,
|
|
5
5
|
"bodyUndescribed": 122,
|
|
6
6
|
"generatedFrom": "server/docs/swagger.json"
|
|
7
7
|
};
|
|
@@ -5994,6 +5994,195 @@ export const API_OPERATIONS = [
|
|
|
5994
5994
|
"bodyRef": null,
|
|
5995
5995
|
"credential": "siteScoped"
|
|
5996
5996
|
},
|
|
5997
|
+
{
|
|
5998
|
+
"id": "get:/api/sites/{siteId}/article-tags",
|
|
5999
|
+
"method": "GET",
|
|
6000
|
+
"path": "/api/sites/{siteId}/article-tags",
|
|
6001
|
+
"tags": [
|
|
6002
|
+
"blog"
|
|
6003
|
+
],
|
|
6004
|
+
"summary": "List or create article tags",
|
|
6005
|
+
"params": [
|
|
6006
|
+
{
|
|
6007
|
+
"name": "siteId",
|
|
6008
|
+
"in": "path",
|
|
6009
|
+
"required": true,
|
|
6010
|
+
"type": "string",
|
|
6011
|
+
"description": "Site ID"
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
"name": "limit",
|
|
6015
|
+
"in": "query",
|
|
6016
|
+
"required": false,
|
|
6017
|
+
"type": "integer",
|
|
6018
|
+
"description": "Page size (max 200)"
|
|
6019
|
+
},
|
|
6020
|
+
{
|
|
6021
|
+
"name": "offset",
|
|
6022
|
+
"in": "query",
|
|
6023
|
+
"required": false,
|
|
6024
|
+
"type": "integer",
|
|
6025
|
+
"description": "Page offset"
|
|
6026
|
+
},
|
|
6027
|
+
{
|
|
6028
|
+
"name": "tag",
|
|
6029
|
+
"in": "body",
|
|
6030
|
+
"required": false,
|
|
6031
|
+
"type": "object",
|
|
6032
|
+
"description": "Tag to create (POST only)"
|
|
6033
|
+
}
|
|
6034
|
+
],
|
|
6035
|
+
"bodyDescribed": true,
|
|
6036
|
+
"bodyRef": "github_com_webbuilder_server_internal_blog.Tag",
|
|
6037
|
+
"credential": "siteScoped"
|
|
6038
|
+
},
|
|
6039
|
+
{
|
|
6040
|
+
"id": "post:/api/sites/{siteId}/article-tags",
|
|
6041
|
+
"method": "POST",
|
|
6042
|
+
"path": "/api/sites/{siteId}/article-tags",
|
|
6043
|
+
"tags": [
|
|
6044
|
+
"blog"
|
|
6045
|
+
],
|
|
6046
|
+
"summary": "List or create article tags",
|
|
6047
|
+
"params": [
|
|
6048
|
+
{
|
|
6049
|
+
"name": "siteId",
|
|
6050
|
+
"in": "path",
|
|
6051
|
+
"required": true,
|
|
6052
|
+
"type": "string",
|
|
6053
|
+
"description": "Site ID"
|
|
6054
|
+
},
|
|
6055
|
+
{
|
|
6056
|
+
"name": "limit",
|
|
6057
|
+
"in": "query",
|
|
6058
|
+
"required": false,
|
|
6059
|
+
"type": "integer",
|
|
6060
|
+
"description": "Page size (max 200)"
|
|
6061
|
+
},
|
|
6062
|
+
{
|
|
6063
|
+
"name": "offset",
|
|
6064
|
+
"in": "query",
|
|
6065
|
+
"required": false,
|
|
6066
|
+
"type": "integer",
|
|
6067
|
+
"description": "Page offset"
|
|
6068
|
+
},
|
|
6069
|
+
{
|
|
6070
|
+
"name": "tag",
|
|
6071
|
+
"in": "body",
|
|
6072
|
+
"required": false,
|
|
6073
|
+
"type": "object",
|
|
6074
|
+
"description": "Tag to create (POST only)"
|
|
6075
|
+
}
|
|
6076
|
+
],
|
|
6077
|
+
"bodyDescribed": true,
|
|
6078
|
+
"bodyRef": "github_com_webbuilder_server_internal_blog.Tag",
|
|
6079
|
+
"credential": "siteScoped"
|
|
6080
|
+
},
|
|
6081
|
+
{
|
|
6082
|
+
"id": "get:/api/sites/{siteId}/article-tags/{id}",
|
|
6083
|
+
"method": "GET",
|
|
6084
|
+
"path": "/api/sites/{siteId}/article-tags/{id}",
|
|
6085
|
+
"tags": [
|
|
6086
|
+
"blog"
|
|
6087
|
+
],
|
|
6088
|
+
"summary": "Get, update or delete an article tag",
|
|
6089
|
+
"params": [
|
|
6090
|
+
{
|
|
6091
|
+
"name": "siteId",
|
|
6092
|
+
"in": "path",
|
|
6093
|
+
"required": true,
|
|
6094
|
+
"type": "string",
|
|
6095
|
+
"description": "Site ID"
|
|
6096
|
+
},
|
|
6097
|
+
{
|
|
6098
|
+
"name": "id",
|
|
6099
|
+
"in": "path",
|
|
6100
|
+
"required": true,
|
|
6101
|
+
"type": "string",
|
|
6102
|
+
"description": "Tag ID"
|
|
6103
|
+
},
|
|
6104
|
+
{
|
|
6105
|
+
"name": "tag",
|
|
6106
|
+
"in": "body",
|
|
6107
|
+
"required": false,
|
|
6108
|
+
"type": "object",
|
|
6109
|
+
"description": "Updated tag (PUT only)"
|
|
6110
|
+
}
|
|
6111
|
+
],
|
|
6112
|
+
"bodyDescribed": true,
|
|
6113
|
+
"bodyRef": "github_com_webbuilder_server_internal_blog.Tag",
|
|
6114
|
+
"credential": "siteScoped"
|
|
6115
|
+
},
|
|
6116
|
+
{
|
|
6117
|
+
"id": "put:/api/sites/{siteId}/article-tags/{id}",
|
|
6118
|
+
"method": "PUT",
|
|
6119
|
+
"path": "/api/sites/{siteId}/article-tags/{id}",
|
|
6120
|
+
"tags": [
|
|
6121
|
+
"blog"
|
|
6122
|
+
],
|
|
6123
|
+
"summary": "Get, update or delete an article tag",
|
|
6124
|
+
"params": [
|
|
6125
|
+
{
|
|
6126
|
+
"name": "siteId",
|
|
6127
|
+
"in": "path",
|
|
6128
|
+
"required": true,
|
|
6129
|
+
"type": "string",
|
|
6130
|
+
"description": "Site ID"
|
|
6131
|
+
},
|
|
6132
|
+
{
|
|
6133
|
+
"name": "id",
|
|
6134
|
+
"in": "path",
|
|
6135
|
+
"required": true,
|
|
6136
|
+
"type": "string",
|
|
6137
|
+
"description": "Tag ID"
|
|
6138
|
+
},
|
|
6139
|
+
{
|
|
6140
|
+
"name": "tag",
|
|
6141
|
+
"in": "body",
|
|
6142
|
+
"required": false,
|
|
6143
|
+
"type": "object",
|
|
6144
|
+
"description": "Updated tag (PUT only)"
|
|
6145
|
+
}
|
|
6146
|
+
],
|
|
6147
|
+
"bodyDescribed": true,
|
|
6148
|
+
"bodyRef": "github_com_webbuilder_server_internal_blog.Tag",
|
|
6149
|
+
"credential": "siteScoped"
|
|
6150
|
+
},
|
|
6151
|
+
{
|
|
6152
|
+
"id": "delete:/api/sites/{siteId}/article-tags/{id}",
|
|
6153
|
+
"method": "DELETE",
|
|
6154
|
+
"path": "/api/sites/{siteId}/article-tags/{id}",
|
|
6155
|
+
"tags": [
|
|
6156
|
+
"blog"
|
|
6157
|
+
],
|
|
6158
|
+
"summary": "Get, update or delete an article tag",
|
|
6159
|
+
"params": [
|
|
6160
|
+
{
|
|
6161
|
+
"name": "siteId",
|
|
6162
|
+
"in": "path",
|
|
6163
|
+
"required": true,
|
|
6164
|
+
"type": "string",
|
|
6165
|
+
"description": "Site ID"
|
|
6166
|
+
},
|
|
6167
|
+
{
|
|
6168
|
+
"name": "id",
|
|
6169
|
+
"in": "path",
|
|
6170
|
+
"required": true,
|
|
6171
|
+
"type": "string",
|
|
6172
|
+
"description": "Tag ID"
|
|
6173
|
+
},
|
|
6174
|
+
{
|
|
6175
|
+
"name": "tag",
|
|
6176
|
+
"in": "body",
|
|
6177
|
+
"required": false,
|
|
6178
|
+
"type": "object",
|
|
6179
|
+
"description": "Updated tag (PUT only)"
|
|
6180
|
+
}
|
|
6181
|
+
],
|
|
6182
|
+
"bodyDescribed": true,
|
|
6183
|
+
"bodyRef": "github_com_webbuilder_server_internal_blog.Tag",
|
|
6184
|
+
"credential": "siteScoped"
|
|
6185
|
+
},
|
|
5997
6186
|
{
|
|
5998
6187
|
"id": "get:/api/sites/{siteId}/articles",
|
|
5999
6188
|
"method": "GET",
|
|
@@ -22926,6 +23115,195 @@ export const API_OPERATIONS = [
|
|
|
22926
23115
|
"bodyRef": null,
|
|
22927
23116
|
"credential": "siteScoped"
|
|
22928
23117
|
},
|
|
23118
|
+
{
|
|
23119
|
+
"id": "get:/api/sites/{siteId}/product-tags",
|
|
23120
|
+
"method": "GET",
|
|
23121
|
+
"path": "/api/sites/{siteId}/product-tags",
|
|
23122
|
+
"tags": [
|
|
23123
|
+
"products"
|
|
23124
|
+
],
|
|
23125
|
+
"summary": "List or create product tags",
|
|
23126
|
+
"params": [
|
|
23127
|
+
{
|
|
23128
|
+
"name": "siteId",
|
|
23129
|
+
"in": "path",
|
|
23130
|
+
"required": true,
|
|
23131
|
+
"type": "string",
|
|
23132
|
+
"description": "Site ID"
|
|
23133
|
+
},
|
|
23134
|
+
{
|
|
23135
|
+
"name": "limit",
|
|
23136
|
+
"in": "query",
|
|
23137
|
+
"required": false,
|
|
23138
|
+
"type": "integer",
|
|
23139
|
+
"description": "Page size (max 200)"
|
|
23140
|
+
},
|
|
23141
|
+
{
|
|
23142
|
+
"name": "offset",
|
|
23143
|
+
"in": "query",
|
|
23144
|
+
"required": false,
|
|
23145
|
+
"type": "integer",
|
|
23146
|
+
"description": "Page offset"
|
|
23147
|
+
},
|
|
23148
|
+
{
|
|
23149
|
+
"name": "tag",
|
|
23150
|
+
"in": "body",
|
|
23151
|
+
"required": false,
|
|
23152
|
+
"type": "object",
|
|
23153
|
+
"description": "Tag to create (POST only)"
|
|
23154
|
+
}
|
|
23155
|
+
],
|
|
23156
|
+
"bodyDescribed": true,
|
|
23157
|
+
"bodyRef": "github_com_webbuilder_server_internal_products.ProductTag",
|
|
23158
|
+
"credential": "siteScoped"
|
|
23159
|
+
},
|
|
23160
|
+
{
|
|
23161
|
+
"id": "post:/api/sites/{siteId}/product-tags",
|
|
23162
|
+
"method": "POST",
|
|
23163
|
+
"path": "/api/sites/{siteId}/product-tags",
|
|
23164
|
+
"tags": [
|
|
23165
|
+
"products"
|
|
23166
|
+
],
|
|
23167
|
+
"summary": "List or create product tags",
|
|
23168
|
+
"params": [
|
|
23169
|
+
{
|
|
23170
|
+
"name": "siteId",
|
|
23171
|
+
"in": "path",
|
|
23172
|
+
"required": true,
|
|
23173
|
+
"type": "string",
|
|
23174
|
+
"description": "Site ID"
|
|
23175
|
+
},
|
|
23176
|
+
{
|
|
23177
|
+
"name": "limit",
|
|
23178
|
+
"in": "query",
|
|
23179
|
+
"required": false,
|
|
23180
|
+
"type": "integer",
|
|
23181
|
+
"description": "Page size (max 200)"
|
|
23182
|
+
},
|
|
23183
|
+
{
|
|
23184
|
+
"name": "offset",
|
|
23185
|
+
"in": "query",
|
|
23186
|
+
"required": false,
|
|
23187
|
+
"type": "integer",
|
|
23188
|
+
"description": "Page offset"
|
|
23189
|
+
},
|
|
23190
|
+
{
|
|
23191
|
+
"name": "tag",
|
|
23192
|
+
"in": "body",
|
|
23193
|
+
"required": false,
|
|
23194
|
+
"type": "object",
|
|
23195
|
+
"description": "Tag to create (POST only)"
|
|
23196
|
+
}
|
|
23197
|
+
],
|
|
23198
|
+
"bodyDescribed": true,
|
|
23199
|
+
"bodyRef": "github_com_webbuilder_server_internal_products.ProductTag",
|
|
23200
|
+
"credential": "siteScoped"
|
|
23201
|
+
},
|
|
23202
|
+
{
|
|
23203
|
+
"id": "get:/api/sites/{siteId}/product-tags/{id}",
|
|
23204
|
+
"method": "GET",
|
|
23205
|
+
"path": "/api/sites/{siteId}/product-tags/{id}",
|
|
23206
|
+
"tags": [
|
|
23207
|
+
"products"
|
|
23208
|
+
],
|
|
23209
|
+
"summary": "Get, update or delete a product tag",
|
|
23210
|
+
"params": [
|
|
23211
|
+
{
|
|
23212
|
+
"name": "siteId",
|
|
23213
|
+
"in": "path",
|
|
23214
|
+
"required": true,
|
|
23215
|
+
"type": "string",
|
|
23216
|
+
"description": "Site ID"
|
|
23217
|
+
},
|
|
23218
|
+
{
|
|
23219
|
+
"name": "id",
|
|
23220
|
+
"in": "path",
|
|
23221
|
+
"required": true,
|
|
23222
|
+
"type": "string",
|
|
23223
|
+
"description": "Tag ID"
|
|
23224
|
+
},
|
|
23225
|
+
{
|
|
23226
|
+
"name": "tag",
|
|
23227
|
+
"in": "body",
|
|
23228
|
+
"required": false,
|
|
23229
|
+
"type": "object",
|
|
23230
|
+
"description": "Updated tag (PUT only)"
|
|
23231
|
+
}
|
|
23232
|
+
],
|
|
23233
|
+
"bodyDescribed": true,
|
|
23234
|
+
"bodyRef": "github_com_webbuilder_server_internal_products.ProductTag",
|
|
23235
|
+
"credential": "siteScoped"
|
|
23236
|
+
},
|
|
23237
|
+
{
|
|
23238
|
+
"id": "put:/api/sites/{siteId}/product-tags/{id}",
|
|
23239
|
+
"method": "PUT",
|
|
23240
|
+
"path": "/api/sites/{siteId}/product-tags/{id}",
|
|
23241
|
+
"tags": [
|
|
23242
|
+
"products"
|
|
23243
|
+
],
|
|
23244
|
+
"summary": "Get, update or delete a product tag",
|
|
23245
|
+
"params": [
|
|
23246
|
+
{
|
|
23247
|
+
"name": "siteId",
|
|
23248
|
+
"in": "path",
|
|
23249
|
+
"required": true,
|
|
23250
|
+
"type": "string",
|
|
23251
|
+
"description": "Site ID"
|
|
23252
|
+
},
|
|
23253
|
+
{
|
|
23254
|
+
"name": "id",
|
|
23255
|
+
"in": "path",
|
|
23256
|
+
"required": true,
|
|
23257
|
+
"type": "string",
|
|
23258
|
+
"description": "Tag ID"
|
|
23259
|
+
},
|
|
23260
|
+
{
|
|
23261
|
+
"name": "tag",
|
|
23262
|
+
"in": "body",
|
|
23263
|
+
"required": false,
|
|
23264
|
+
"type": "object",
|
|
23265
|
+
"description": "Updated tag (PUT only)"
|
|
23266
|
+
}
|
|
23267
|
+
],
|
|
23268
|
+
"bodyDescribed": true,
|
|
23269
|
+
"bodyRef": "github_com_webbuilder_server_internal_products.ProductTag",
|
|
23270
|
+
"credential": "siteScoped"
|
|
23271
|
+
},
|
|
23272
|
+
{
|
|
23273
|
+
"id": "delete:/api/sites/{siteId}/product-tags/{id}",
|
|
23274
|
+
"method": "DELETE",
|
|
23275
|
+
"path": "/api/sites/{siteId}/product-tags/{id}",
|
|
23276
|
+
"tags": [
|
|
23277
|
+
"products"
|
|
23278
|
+
],
|
|
23279
|
+
"summary": "Get, update or delete a product tag",
|
|
23280
|
+
"params": [
|
|
23281
|
+
{
|
|
23282
|
+
"name": "siteId",
|
|
23283
|
+
"in": "path",
|
|
23284
|
+
"required": true,
|
|
23285
|
+
"type": "string",
|
|
23286
|
+
"description": "Site ID"
|
|
23287
|
+
},
|
|
23288
|
+
{
|
|
23289
|
+
"name": "id",
|
|
23290
|
+
"in": "path",
|
|
23291
|
+
"required": true,
|
|
23292
|
+
"type": "string",
|
|
23293
|
+
"description": "Tag ID"
|
|
23294
|
+
},
|
|
23295
|
+
{
|
|
23296
|
+
"name": "tag",
|
|
23297
|
+
"in": "body",
|
|
23298
|
+
"required": false,
|
|
23299
|
+
"type": "object",
|
|
23300
|
+
"description": "Updated tag (PUT only)"
|
|
23301
|
+
}
|
|
23302
|
+
],
|
|
23303
|
+
"bodyDescribed": true,
|
|
23304
|
+
"bodyRef": "github_com_webbuilder_server_internal_products.ProductTag",
|
|
23305
|
+
"credential": "siteScoped"
|
|
23306
|
+
},
|
|
22929
23307
|
{
|
|
22930
23308
|
"id": "get:/api/sites/{siteId}/products",
|
|
22931
23309
|
"method": "GET",
|
|
@@ -22984,6 +23362,13 @@ export const API_OPERATIONS = [
|
|
|
22984
23362
|
"type": "integer",
|
|
22985
23363
|
"description": "Page offset"
|
|
22986
23364
|
},
|
|
23365
|
+
{
|
|
23366
|
+
"name": "tagId",
|
|
23367
|
+
"in": "query",
|
|
23368
|
+
"required": false,
|
|
23369
|
+
"type": "string",
|
|
23370
|
+
"description": "Only products linked to this product tag"
|
|
23371
|
+
},
|
|
22987
23372
|
{
|
|
22988
23373
|
"name": "product",
|
|
22989
23374
|
"in": "body",
|
|
@@ -23054,6 +23439,13 @@ export const API_OPERATIONS = [
|
|
|
23054
23439
|
"type": "integer",
|
|
23055
23440
|
"description": "Page offset"
|
|
23056
23441
|
},
|
|
23442
|
+
{
|
|
23443
|
+
"name": "tagId",
|
|
23444
|
+
"in": "query",
|
|
23445
|
+
"required": false,
|
|
23446
|
+
"type": "string",
|
|
23447
|
+
"description": "Only products linked to this product tag"
|
|
23448
|
+
},
|
|
23057
23449
|
{
|
|
23058
23450
|
"name": "product",
|
|
23059
23451
|
"in": "body",
|
|
@@ -32221,6 +32613,77 @@ export const API_DEFINITIONS = {
|
|
|
32221
32613
|
}
|
|
32222
32614
|
}
|
|
32223
32615
|
},
|
|
32616
|
+
"github_com_webbuilder_server_internal_blog.SEO": {
|
|
32617
|
+
"type": "object",
|
|
32618
|
+
"properties": {
|
|
32619
|
+
"canonical": {
|
|
32620
|
+
"type": "string"
|
|
32621
|
+
},
|
|
32622
|
+
"description": {
|
|
32623
|
+
"type": "string"
|
|
32624
|
+
},
|
|
32625
|
+
"keywords": {
|
|
32626
|
+
"type": "string"
|
|
32627
|
+
},
|
|
32628
|
+
"noFollow": {
|
|
32629
|
+
"type": "boolean"
|
|
32630
|
+
},
|
|
32631
|
+
"noIndex": {
|
|
32632
|
+
"type": "boolean"
|
|
32633
|
+
},
|
|
32634
|
+
"ogDesc": {
|
|
32635
|
+
"type": "string"
|
|
32636
|
+
},
|
|
32637
|
+
"ogImage": {
|
|
32638
|
+
"type": "string"
|
|
32639
|
+
},
|
|
32640
|
+
"ogTitle": {
|
|
32641
|
+
"type": "string"
|
|
32642
|
+
},
|
|
32643
|
+
"title": {
|
|
32644
|
+
"type": "string"
|
|
32645
|
+
},
|
|
32646
|
+
"twitterCard": {
|
|
32647
|
+
"type": "string"
|
|
32648
|
+
}
|
|
32649
|
+
}
|
|
32650
|
+
},
|
|
32651
|
+
"github_com_webbuilder_server_internal_blog.Tag": {
|
|
32652
|
+
"type": "object",
|
|
32653
|
+
"properties": {
|
|
32654
|
+
"articleCount": {
|
|
32655
|
+
"description": "ArticleCount is READ-ONLY: how many articles link this tag, filled by\nGetTag/ListTags from one grouped query. Never stored; ignored on write.",
|
|
32656
|
+
"type": "integer"
|
|
32657
|
+
},
|
|
32658
|
+
"createdAt": {
|
|
32659
|
+
"type": "string"
|
|
32660
|
+
},
|
|
32661
|
+
"description": {
|
|
32662
|
+
"type": "string"
|
|
32663
|
+
},
|
|
32664
|
+
"id": {
|
|
32665
|
+
"type": "string"
|
|
32666
|
+
},
|
|
32667
|
+
"image": {
|
|
32668
|
+
"type": "string"
|
|
32669
|
+
},
|
|
32670
|
+
"name": {
|
|
32671
|
+
"type": "string"
|
|
32672
|
+
},
|
|
32673
|
+
"seo": {
|
|
32674
|
+
"$ref": "#/definitions/github_com_webbuilder_server_internal_blog.SEO"
|
|
32675
|
+
},
|
|
32676
|
+
"siteId": {
|
|
32677
|
+
"type": "string"
|
|
32678
|
+
},
|
|
32679
|
+
"slug": {
|
|
32680
|
+
"type": "string"
|
|
32681
|
+
},
|
|
32682
|
+
"updatedAt": {
|
|
32683
|
+
"type": "string"
|
|
32684
|
+
}
|
|
32685
|
+
}
|
|
32686
|
+
},
|
|
32224
32687
|
"github_com_webbuilder_server_internal_codefiles.CodeFile": {
|
|
32225
32688
|
"type": "object",
|
|
32226
32689
|
"properties": {
|
|
@@ -36540,6 +37003,43 @@ export const API_DEFINITIONS = {
|
|
|
36540
37003
|
"ProductStatusArchived"
|
|
36541
37004
|
]
|
|
36542
37005
|
},
|
|
37006
|
+
"github_com_webbuilder_server_internal_products.ProductTag": {
|
|
37007
|
+
"type": "object",
|
|
37008
|
+
"properties": {
|
|
37009
|
+
"createdAt": {
|
|
37010
|
+
"type": "string"
|
|
37011
|
+
},
|
|
37012
|
+
"description": {
|
|
37013
|
+
"description": "plain text",
|
|
37014
|
+
"type": "string"
|
|
37015
|
+
},
|
|
37016
|
+
"id": {
|
|
37017
|
+
"type": "string"
|
|
37018
|
+
},
|
|
37019
|
+
"image": {
|
|
37020
|
+
"type": "string"
|
|
37021
|
+
},
|
|
37022
|
+
"name": {
|
|
37023
|
+
"type": "string"
|
|
37024
|
+
},
|
|
37025
|
+
"productCount": {
|
|
37026
|
+
"description": "ProductCount is READ-ONLY: how many products link to this tag, filled by\nGetTag / ListTags from one grouped pivot read. Never stored.",
|
|
37027
|
+
"type": "integer"
|
|
37028
|
+
},
|
|
37029
|
+
"seo": {
|
|
37030
|
+
"$ref": "#/definitions/github_com_webbuilder_server_internal_products.SEO"
|
|
37031
|
+
},
|
|
37032
|
+
"siteId": {
|
|
37033
|
+
"type": "string"
|
|
37034
|
+
},
|
|
37035
|
+
"slug": {
|
|
37036
|
+
"type": "string"
|
|
37037
|
+
},
|
|
37038
|
+
"updatedAt": {
|
|
37039
|
+
"type": "string"
|
|
37040
|
+
}
|
|
37041
|
+
}
|
|
37042
|
+
},
|
|
36543
37043
|
"github_com_webbuilder_server_internal_products.SEO": {
|
|
36544
37044
|
"type": "object",
|
|
36545
37045
|
"properties": {
|
|
@@ -36878,6 +37378,12 @@ export const API_DEFINITIONS = {
|
|
|
36878
37378
|
"$ref": "#/definitions/github_com_webbuilder_server_internal_renderctx.BlogCategoryIn"
|
|
36879
37379
|
}
|
|
36880
37380
|
},
|
|
37381
|
+
"blogTags": {
|
|
37382
|
+
"type": "array",
|
|
37383
|
+
"items": {
|
|
37384
|
+
"$ref": "#/definitions/github_com_webbuilder_server_internal_renderctx.TagIn"
|
|
37385
|
+
}
|
|
37386
|
+
},
|
|
36881
37387
|
"brands": {
|
|
36882
37388
|
"type": "array",
|
|
36883
37389
|
"items": {
|
|
@@ -36915,6 +37421,13 @@ export const API_DEFINITIONS = {
|
|
|
36915
37421
|
"type": "string"
|
|
36916
37422
|
}
|
|
36917
37423
|
},
|
|
37424
|
+
"productTags": {
|
|
37425
|
+
"description": "ProductTags / BlogTags are the tags a tag route's item resolves\n(productTag.* / blogTag.*). Their shelves have no derived answer: a\ntag's products and articles replay from the recorded Reads only, and an\nenvelope without them renders the shelf empty (never the catalogue).",
|
|
37426
|
+
"type": "array",
|
|
37427
|
+
"items": {
|
|
37428
|
+
"$ref": "#/definitions/github_com_webbuilder_server_internal_renderctx.TagIn"
|
|
37429
|
+
}
|
|
37430
|
+
},
|
|
36918
37431
|
"products": {
|
|
36919
37432
|
"type": "array",
|
|
36920
37433
|
"items": {
|
|
@@ -36993,7 +37506,7 @@ export const API_DEFINITIONS = {
|
|
|
36993
37506
|
}
|
|
36994
37507
|
},
|
|
36995
37508
|
"cssLanes": {
|
|
36996
|
-
"description": "CSSLanes is \"inline\" (default: one <style> bundle) or {\"base\": \"https://…/\"}\n(external <link> lanes served from base + key; lane bytes in the output).",
|
|
37509
|
+
"description": "CSSLanes is \"inline\" (default: one <style> bundle) or {\"base\": \"https://…/\"}\n(external <link> lanes served from base + key; lane bytes in the output).\nEven in base mode a page whose bundle is small is served INLINE (the\nstorefront's inlineCSSMax), and the output then carries no lanes for it:\nonly lanes the page actually links are returned.",
|
|
36997
37510
|
"type": "array",
|
|
36998
37511
|
"items": {
|
|
36999
37512
|
"type": "integer"
|
|
@@ -37190,6 +37703,28 @@ export const API_DEFINITIONS = {
|
|
|
37190
37703
|
}
|
|
37191
37704
|
}
|
|
37192
37705
|
},
|
|
37706
|
+
"github_com_webbuilder_server_internal_renderctx.TagIn": {
|
|
37707
|
+
"type": "object",
|
|
37708
|
+
"properties": {
|
|
37709
|
+
"description": {
|
|
37710
|
+
"type": "string"
|
|
37711
|
+
},
|
|
37712
|
+
"id": {
|
|
37713
|
+
"type": "string"
|
|
37714
|
+
},
|
|
37715
|
+
"image": {
|
|
37716
|
+
"type": "string"
|
|
37717
|
+
},
|
|
37718
|
+
"slug": {
|
|
37719
|
+
"description": "Slug is the tag's own storefront slug — the second segment of\n/product-tags/{slug} or /blog-tags/{slug}, and the ONLY input to `{ns}.url`.",
|
|
37720
|
+
"type": "string"
|
|
37721
|
+
},
|
|
37722
|
+
"title": {
|
|
37723
|
+
"description": "Title is the tag's NAME.",
|
|
37724
|
+
"type": "string"
|
|
37725
|
+
}
|
|
37726
|
+
}
|
|
37727
|
+
},
|
|
37193
37728
|
"github_com_webbuilder_server_internal_renderctx.translations": {
|
|
37194
37729
|
"type": "object",
|
|
37195
37730
|
"properties": {
|