UNPKG

@cocalc/server

Version:

CoCalc server functionality: functions used by either the hub and the next.js server

5 lines (4 loc) 416 B
import { ProductType, ProductDescription } from "@cocalc/util/db-schema/shopping-cart-items"; export default function addToCart(account_id: string, product: ProductType, description?: ProductDescription, project_id?: string): Promise<number>; export declare function putBackInCart(account_id: string, id: number): Promise<number>; export declare function buyItAgain(account_id: string, id: number): Promise<number>;