UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

19 lines 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const apiFetcher_1 = require("../apiFetcher"); exports.default = (apiUrl) => ({ getCorrelationPairs: async (sessionId, from, howMany) => (0, apiFetcher_1.apiFetcher)(`/CorrelationPairs/${sessionId}${from ? `/${from}${howMany ? `/${howMany}` : ''}` : ''}`, { method: 'GET', apiUrl, }), postCorrelationPair: async (sessionId, correlationPair) => (0, apiFetcher_1.apiFetcher)(`/CorrelationPair/${sessionId}`, { method: 'POST', apiUrl, body: correlationPair, }), deleteCorrelationPair: async (sessionId, pairId) => (0, apiFetcher_1.apiFetcher)(`/CorrelationPair/${sessionId}/${pairId}`, { method: 'DELETE', apiUrl, }), }); //# sourceMappingURL=correlationPairs.js.map