1
0
mirror of https://github.com/vercel/commerce.git synced 2025-07-27 12:11:23 +00:00
Files
commerce/framework/bigcommerce/api/endpoints/cart/index.ts
2021-05-20 21:05:56 -05:00

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 }