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

View File

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