UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

16 lines (15 loc) 905 B
import type { ResponseSpec, Notification } from '../types'; declare const _default: (apiUrl: string) => { getTenantNotifications: (tenantID: string) => Promise<ResponseSpec & { notifications: Notification[]; }>; getUserNotifications: (authToken: string) => Promise<ResponseSpec & { notifications: Notification[]; }>; createNotification: (token: string, notificationData: Notification) => Promise<ResponseSpec>; getNotification: (token: string, notificationId: string) => Promise<ResponseSpec>; deleteNotification: (token: string, notificationId: string) => Promise<ResponseSpec>; listAllNotifications: (token: string, filter?: 'ACTIVE_AND_FUTURE' | 'ONLY_FUTURE' | 'ALL') => Promise<ResponseSpec>; updateNotification: (token: string, notificationId: string, notificationData: Partial<Notification>) => Promise<ResponseSpec>; }; export default _default;