mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
67 lines
1.0 KiB
TypeScript
67 lines
1.0 KiB
TypeScript
import type { Image } from 'sanity'
|
|
|
|
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: []
|
|
} |