UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

17 lines 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const apiFetcher_1 = require("../apiFetcher"); exports.default = (apiUrl) => ({ analyzeUserQuery: async (authToken, memoriID, params) => (0, apiFetcher_1.apiFetcher)(`/Analysis/AnalyzeUserQuery/${authToken}/${memoriID}`, { apiUrl, method: 'POST', body: { ...params, }, }), getUserQueryMatches: async (authToken, analysisID, from, howMany, threshold) => (0, apiFetcher_1.apiFetcher)(`/Analysis/UserQueryMatches/${authToken}/${analysisID}/${from}/${howMany}${threshold ? `/${threshold}` : ''}`, { apiUrl, method: 'GET', }), }); //# sourceMappingURL=analysis.js.map