mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
14 lines
474 B
TypeScript
14 lines
474 B
TypeScript
import type { GetAPISchema } from '@commerce/api'
|
|
import type { CartSchema } from '../../../types/cart'
|
|
import type { BigcommerceAPI } from '../..'
|
|
import getCart from './get-cart'
|
|
import addItem from './add-item'
|
|
import updateItem from './update-item'
|
|
import removeItem from './remove-item'
|
|
|
|
export type CartAPI = GetAPISchema<BigcommerceAPI, CartSchema>
|
|
|
|
export type CartEndpoint = CartAPI['endpoint']
|
|
|
|
export const handlers = { getCart, addItem, updateItem, removeItem }
|