UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

15 lines 997 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const apiFetcher_1 = require("../apiFetcher"); exports.default = (apiUrl) => ({ getTenantConsumptionLogs: (authToken, tenantID, type, dateFrom, dateTo) => (0, apiFetcher_1.apiFetcher)(`/TenantConsumptionLogs/${authToken}/${tenantID}/${type}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, { apiUrl, }), getUserConsumptionLogs: (authToken, userID, type, dateFrom, dateTo) => (0, apiFetcher_1.apiFetcher)(`/UserConsumptionLogs/${authToken}/${userID}/${type}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, { apiUrl, }), getMemoriConsumptionLogs: (authToken, memoriID, type, dateFrom, dateTo) => (0, apiFetcher_1.apiFetcher)(`/MemoriConsumptionLogs/${authToken}/${memoriID}/${type}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, { apiUrl, }), }); //# sourceMappingURL=consumptionLogs.js.map