UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

24 lines 1.07 kB
import { apiFetcher } from '../apiFetcher'; export default (apiUrl) => ({ getTextQualityIndexes: async (sessionId, timestamp) => apiFetcher(`/TextQualityIndexes/${sessionId}${timestamp ? `/${timestamp}` : ''}`, { method: 'GET', apiUrl, }), getEventLogs: async (sessionId, strDateFrom, strDateTo) => apiFetcher(`/EventLogs/${sessionId}/${strDateFrom}/${strDateTo}`, { method: 'GET', apiUrl, }), getMemoryEventLogs: async (sessionId, memoryId, strDateFrom, strDateTo) => apiFetcher(`/EventLogs/${sessionId}/${memoryId}/${strDateFrom}/${strDateTo}`, { method: 'GET', apiUrl, }), getIntentEventLogs: async (sessionId, intentId, strDateFrom, strDateTo) => apiFetcher(`/EventLogs/${sessionId}/${intentId}/${strDateFrom}/${strDateTo}`, { method: 'GET', apiUrl, }), getSessionEventLogs: async (sessionID, eventLogSessionID) => apiFetcher(`/SessionEventLogs/${sessionID}/${eventLogSessionID}`, { method: 'GET', apiUrl, }), }); //# sourceMappingURL=stats.js.map