@sonic-commerce/storefront-types 0.24.0 → 0.25.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/dist/index.d.ts +1 -1
- package/dist/schema.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by scripts/build.mjs from app/openapi/public-api.json — do not edit.
|
|
2
|
-
// Spec version 0.
|
|
2
|
+
// Spec version 0.25.0, 54 named schemas.
|
|
3
3
|
|
|
4
4
|
export type { paths, components, operations } from "./schema";
|
|
5
5
|
import type { components } from "./schema";
|
package/dist/schema.d.ts
CHANGED
|
@@ -505,7 +505,7 @@ export interface paths {
|
|
|
505
505
|
};
|
|
506
506
|
/**
|
|
507
507
|
* List categories
|
|
508
|
-
* @description Active, non-internal categories only. `parent_id=null` returns roots.
|
|
508
|
+
* @description Active, non-internal categories only. `parent_id=null` returns roots. Sorted by `rank` then `name` by default; `rank` is per parent, so filter by `parent_id` to get one level in the merchant's order.
|
|
509
509
|
*/
|
|
510
510
|
get: {
|
|
511
511
|
parameters: {
|
|
@@ -672,7 +672,7 @@ export interface paths {
|
|
|
672
672
|
};
|
|
673
673
|
/**
|
|
674
674
|
* Get the category tree
|
|
675
|
-
* @description The full nested menu in one request. Unpaginated; nesting is capped at 8 levels.
|
|
675
|
+
* @description The full nested menu in one request. Unpaginated; nesting is capped at 8 levels. Every `children` array is already in the merchant's order (`rank`, then `name`).
|
|
676
676
|
*/
|
|
677
677
|
get: {
|
|
678
678
|
parameters: {
|
|
@@ -3612,6 +3612,7 @@ export interface components {
|
|
|
3612
3612
|
name?: string;
|
|
3613
3613
|
handle?: string;
|
|
3614
3614
|
description?: string | null;
|
|
3615
|
+
/** @description Merchant-set position among categories with the same parent, starting at 0. Each parent numbers its own children, so compare `rank` only between siblings. */
|
|
3615
3616
|
rank?: number;
|
|
3616
3617
|
parent_id?: string | null;
|
|
3617
3618
|
thumbnail?: string | null;
|
|
@@ -3628,6 +3629,7 @@ export interface components {
|
|
|
3628
3629
|
id: string;
|
|
3629
3630
|
name: string;
|
|
3630
3631
|
handle: string;
|
|
3632
|
+
/** @description Merchant-set position among categories with the same parent, starting at 0. Each parent numbers its own children, so compare `rank` only between siblings. */
|
|
3631
3633
|
rank: number;
|
|
3632
3634
|
thumbnail: string | null;
|
|
3633
3635
|
children: components["schemas"]["CategoryTreeNode"][];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonic-commerce/storefront-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "TypeScript types for the Sonic Commerce storefront API (/v1).",
|
|
5
5
|
"keywords": ["sonic-commerce", "openapi", "types", "storefront"],
|
|
6
6
|
"license": "UNLICENSED",
|