diff --git a/framework/local/api/operations/get-all-pages.ts b/framework/local/api/operations/get-all-pages.ts index e524eb15f..153aa18b1 100644 --- a/framework/local/api/operations/get-all-pages.ts +++ b/framework/local/api/operations/get-all-pages.ts @@ -1,8 +1,16 @@ export type Page = any export type GetAllPagesResult = { pages: Page[] } +import type { LocalConfig } from '../index' export default function getAllPagesOperation() { - function getAllPages(): Promise { + function getAllPages({ + config, + preview, + }: { + url?: string + config?: Partial + preview?: boolean + }): Promise { return Promise.resolve({ pages: [], }) diff --git a/framework/local/api/operations/get-site-info.ts b/framework/local/api/operations/get-site-info.ts index dbeaccbc8..180a6e9b4 100644 --- a/framework/local/api/operations/get-site-info.ts +++ b/framework/local/api/operations/get-site-info.ts @@ -1,5 +1,6 @@ import { OperationContext } from '@commerce/api/operations' import { Category } from '@commerce/types/site' +import { LocalConfig } from '../index' export type GetSiteInfoResult< T extends { categories: any[]; brands: any[] } = { @@ -9,7 +10,16 @@ export type GetSiteInfoResult< > = T export default function getSiteInfoOperation({}: OperationContext) { - function getSiteInfo(): Promise { + function getSiteInfo({ + query, + variables, + config: cfg, + }: { + query?: string + variables?: any + config?: Partial + preview?: boolean + } = {}): Promise { return Promise.resolve({ categories: [], brands: [],