UNPKG

mdl-shoplet-ts

Version:

TypeScript client SDK for the headless micro CRM, Minddale.

10 lines (9 loc) 399 B
import { Shoplet, Membership } from '../models/shoplet'; export declare class MinddaleClient { static readonly TIMEOUT = 5000; static readonly BASE_URL = "https://api.minddale.com"; private client; constructor(apiKey: string, baseUrl?: string, timeout?: number); put<T>(endpoint: string, shoplet: Shoplet | Membership): Promise<T>; delete<R>(endpoint: string): Promise<R>; }