Add dummy endpoints

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe 2022-04-21 16:03:45 +07:00
parent 5de4e77e21
commit 049c7f4e16
14 changed files with 16 additions and 6 deletions

View File

@ -1 +0,0 @@
export default function (_commerce: any) {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -0,0 +1 @@
export default function noopApi(...args: any[]): void {}

View File

@ -15,7 +15,7 @@ export default function getAllProductsOperation({
commerce,
}: OperationContext<Provider>) {
async function getAllProducts<T extends GetAllProductsOperation>(opts?: {
variables?: CatalogItemsQueryVariables
variables?: T['variables']
config?: Partial<OpenCommerceConfig>
preview?: boolean
}): Promise<T['data']>
@ -26,7 +26,7 @@ export default function getAllProductsOperation({
config,
}: {
query?: string
variables?: CatalogItemsQueryVariables
variables?: T['variables']
config?: Partial<OpenCommerceConfig>
preview?: boolean
} = {}): Promise<T['data']> {

View File

@ -2,9 +2,9 @@
"provider": "opencommerce",
"features": {
"wishlist": false,
"cart": true,
"search": true,
"cart": false,
"search": false,
"customerAuth": false,
"customCheckout": true
"customCheckout": false
}
}