mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
79 lines
1.2 KiB
TypeScript
79 lines
1.2 KiB
TypeScript
import type { Image } from 'sanity'
|
|
|
|
export interface MenuItem {
|
|
_type: string
|
|
slug?: string
|
|
title?: string
|
|
}
|
|
|
|
export interface HomePagePayload {
|
|
content?: []
|
|
title?: string
|
|
_type?: string
|
|
seo?: {
|
|
title?: string;
|
|
description?: string;
|
|
image: Image
|
|
}
|
|
}
|
|
|
|
export interface PagePayload {
|
|
content?: []
|
|
title?: string
|
|
_type?: string
|
|
slug?: string
|
|
seo?: {
|
|
title?: string;
|
|
description?: string;
|
|
image: Image
|
|
}
|
|
}
|
|
|
|
export interface ProductPayload {
|
|
title?: string
|
|
name?: string
|
|
description?: string
|
|
images?: Image[]
|
|
currencyCode?: string
|
|
_type?: string
|
|
slug?: string
|
|
seo?: {
|
|
title?: string;
|
|
description?: string;
|
|
image: Image
|
|
}
|
|
}
|
|
|
|
export interface CategoryPayload {
|
|
title?: string
|
|
_type?: string
|
|
slug?: string
|
|
seo?: {
|
|
title?: string;
|
|
description?: string;
|
|
image: Image
|
|
}
|
|
}
|
|
|
|
export interface SearchPayload {
|
|
title?: string
|
|
_type?: string
|
|
slug?: string
|
|
seo?: {
|
|
title?: string;
|
|
description?: string;
|
|
image: Image
|
|
}
|
|
}
|
|
|
|
export interface MainMenuPayload {
|
|
title?: string
|
|
_type?: string
|
|
items?: MenuItem[]
|
|
}
|
|
|
|
export interface FooterMenusPayload {
|
|
title?: string
|
|
_type?: string
|
|
menu?: MenuItem[]
|
|
} |