@memori.ai/memori-api-client
Version:
React library to integrate a Memori in your app or website
26 lines • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const apiFetcher_1 = require("../apiFetcher");
exports.default = (apiUrl) => ({
getTextQualityIndexes: async (sessionId, timestamp) => (0, apiFetcher_1.apiFetcher)(`/TextQualityIndexes/${sessionId}${timestamp ? `/${timestamp}` : ''}`, {
method: 'GET',
apiUrl,
}),
getEventLogs: async (sessionId, strDateFrom, strDateTo) => (0, apiFetcher_1.apiFetcher)(`/EventLogs/${sessionId}/${strDateFrom}/${strDateTo}`, {
method: 'GET',
apiUrl,
}),
getMemoryEventLogs: async (sessionId, memoryId, strDateFrom, strDateTo) => (0, apiFetcher_1.apiFetcher)(`/EventLogs/${sessionId}/${memoryId}/${strDateFrom}/${strDateTo}`, {
method: 'GET',
apiUrl,
}),
getIntentEventLogs: async (sessionId, intentId, strDateFrom, strDateTo) => (0, apiFetcher_1.apiFetcher)(`/EventLogs/${sessionId}/${intentId}/${strDateFrom}/${strDateTo}`, {
method: 'GET',
apiUrl,
}),
getSessionEventLogs: async (sessionID, eventLogSessionID) => (0, apiFetcher_1.apiFetcher)(`/SessionEventLogs/${sessionID}/${eventLogSessionID}`, {
method: 'GET',
apiUrl,
}),
});
//# sourceMappingURL=stats.js.map