mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Add dummy endpoints
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
5de4e77e21
commit
049c7f4e16
@ -1 +0,0 @@
|
||||
export default function (_commerce: any) {}
|
1
packages/opencommerce/src/api/endpoints/cart/index.ts
Normal file
1
packages/opencommerce/src/api/endpoints/cart/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
1
packages/opencommerce/src/api/endpoints/catalog/index.ts
Normal file
1
packages/opencommerce/src/api/endpoints/catalog/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
1
packages/opencommerce/src/api/endpoints/customer/card.ts
Normal file
1
packages/opencommerce/src/api/endpoints/customer/card.ts
Normal file
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
1
packages/opencommerce/src/api/endpoints/login/index.ts
Normal file
1
packages/opencommerce/src/api/endpoints/login/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
1
packages/opencommerce/src/api/endpoints/logout/index.ts
Normal file
1
packages/opencommerce/src/api/endpoints/logout/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
1
packages/opencommerce/src/api/endpoints/signup/index.ts
Normal file
1
packages/opencommerce/src/api/endpoints/signup/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
@ -0,0 +1 @@
|
||||
export default function noopApi(...args: any[]): void {}
|
@ -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']> {
|
||||
|
@ -2,9 +2,9 @@
|
||||
"provider": "opencommerce",
|
||||
"features": {
|
||||
"wishlist": false,
|
||||
"cart": true,
|
||||
"search": true,
|
||||
"cart": false,
|
||||
"search": false,
|
||||
"customerAuth": false,
|
||||
"customCheckout": true
|
||||
"customCheckout": false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user