cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
29 lines (23 loc) • 703 B
JavaScript
import { frontApiRequest } from '../helpers/request';
export function getBoarding(clientId) {
return frontApiRequest('GET', `api/boarding2/${clientId}`)
.then((resp) => (resp.body));
}
export function hasVisited(invite) {
return frontApiRequest('POST', 'api/boarding/visited', invite)
.then((resp) => (resp.body));
}
export function hasSearched(invite) {
return frontApiRequest('POST', 'api/boarding/hasSearched', invite)
.then((resp) => (resp.body));
}
export function allInvitations(clientId) {
return frontApiRequest('GET', `api/users/invites/${clientId}`)
.then((resp) => (resp.body));
}
export default {
getBoarding,
hasVisited,
hasSearched,
allInvitations,
};