UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

26 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const apiFetcher_1 = require("../apiFetcher"); exports.default = (apiUrl) => ({ createTrustedApplication: (authToken, trustedApplication) => (0, apiFetcher_1.apiFetcher)(`/TrustedApplication/${authToken}`, { apiUrl, body: trustedApplication, method: 'POST', }), getTrustedApplication: (authToken, trustedApplicationID) => (0, apiFetcher_1.apiFetcher)(`/TrustedApplication/${authToken}/${trustedApplicationID}`, { apiUrl, }), updateTrustedApplication: (authToken, trustedApplicationID, trustedApplication) => (0, apiFetcher_1.apiFetcher)(`/TrustedApplication/${authToken}/${trustedApplicationID}`, { apiUrl, method: 'PATCH', body: trustedApplication, }), deleteTrustedApplication: (authToken, trustedApplicationID) => (0, apiFetcher_1.apiFetcher)(`/TrustedApplication/${authToken}/${trustedApplicationID}`, { apiUrl, method: 'DELETE', }), getTrustedApplicationsList: (authToken) => (0, apiFetcher_1.apiFetcher)(`/TrustedApplications/${authToken}`, { apiUrl, }), }); //# sourceMappingURL=trustedApplication.js.map