mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
23 lines
526 B
TypeScript
23 lines
526 B
TypeScript
import type { OrdercloudConfig } from '../'
|
|
|
|
import { GetAllPagesOperation } from '@commerce/types/page'
|
|
|
|
export type Page = { url: string }
|
|
export type GetAllPagesResult = { pages: Page[] }
|
|
|
|
export default function getAllPagesOperation() {
|
|
async function getAllPages<T extends GetAllPagesOperation>({
|
|
config,
|
|
preview,
|
|
}: {
|
|
url?: string
|
|
config?: Partial<OrdercloudConfig>
|
|
preview?: boolean
|
|
} = {}): Promise<T['data']> {
|
|
return Promise.resolve({
|
|
pages: [],
|
|
})
|
|
}
|
|
return getAllPages
|
|
}
|