UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

32 lines 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const apiFetcher_1 = require("../apiFetcher"); exports.default = (apiUrl) => ({ getExpertReferences: async (sessionId) => (0, apiFetcher_1.apiFetcher)(`/ExpertReferences/${sessionId}`, { method: 'GET', apiUrl, }), getExpertReferencesPaginated: async (sessionId, from, howMany) => (0, apiFetcher_1.apiFetcher)(`/ExpertReferences/${sessionId}/${from}/${howMany}`, { method: 'GET', apiUrl, }), getExpertReference: async (sessionId, expertID) => (0, apiFetcher_1.apiFetcher)(`/ExpertReference/${sessionId}/${expertID}`, { method: 'GET', apiUrl, }), updateExpertReference: async (sessionId, expertReference) => (0, apiFetcher_1.apiFetcher)(`/ExpertReference/${sessionId}/${expertReference.expertID}`, { method: 'PATCH', apiUrl, body: expertReference, }), createExpertReference: async (sessionId, expertReference) => (0, apiFetcher_1.apiFetcher)(`/ExpertReference/${sessionId}`, { method: 'POST', apiUrl, body: expertReference, }), deleteExpertReference: async (sessionId, expertID) => (0, apiFetcher_1.apiFetcher)(`/ExpertReference/${sessionId}/${expertID}`, { method: 'DELETE', apiUrl, }), }); //# sourceMappingURL=expertReferences.js.map