mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 13:17:51 +00:00
payload types
This commit is contained in:
parent
04a2c2b29e
commit
5c41217ca0
@ -282,10 +282,10 @@ const reshapeCategory = (category: PayloadCategory): Collection => {
|
|||||||
return {
|
return {
|
||||||
handle: category.id,
|
handle: category.id,
|
||||||
title: category.title,
|
title: category.title,
|
||||||
description: category.title,
|
description: category.description!,
|
||||||
seo: {
|
seo: {
|
||||||
title: category.title,
|
title: category.title,
|
||||||
description: category.title
|
description: category.description!
|
||||||
},
|
},
|
||||||
path: `/search/${category.id}`,
|
path: `/search/${category.id}`,
|
||||||
updatedAt: category.updatedAt
|
updatedAt: category.updatedAt
|
||||||
|
@ -68,6 +68,7 @@ export interface Post {
|
|||||||
export interface Category {
|
export interface Category {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
description?: string | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
}
|
}
|
||||||
@ -175,7 +176,6 @@ export interface Product {
|
|||||||
*/
|
*/
|
||||||
export interface Cart {
|
export interface Cart {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
|
||||||
totalAmount?: number | null;
|
totalAmount?: number | null;
|
||||||
user?: (string | null) | User;
|
user?: (string | null) | User;
|
||||||
lines?:
|
lines?:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user