2021-03-26 15:50:31 -06:00

14 lines
464 B
TypeScript

import type { GetAPISchema } from '@commerce/api'
import type { CartSchema } from '../../types/cart'
import type { CommerceAPI } 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<CommerceAPI, CartSchema>
export type CartEndpoint = CartAPI['endpoint']
export const operations = { getCart, addItem, updateItem, removeItem }