UNPKG

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.

24 lines (23 loc) 850 B
var request = require( '../helpers/request' ); module.exports = { getBoarding: function( clientId ) { return request.frontApiRequest( 'GET', 'api/boarding2/' + clientId ).then( function( resp ) { return resp.body; } ); }, hasVisited: function( invite ) { return request.frontApiRequest( 'POST', 'api/boarding/visited', invite ).then( function( resp ) { return resp.body; } ); }, hasSearched: function( invite ) { return request.frontApiRequest( 'POST', 'api/boarding/hasSearched', invite ).then( function( resp ) { return resp.body; } ); }, allInvitations: function( clientId ) { return request.frontApiRequest( 'GET', 'api/users/invites/' + clientId ).then( function( resp ) { return resp.body; } ); } };