UNPKG

@chayns-components/person-finder

Version:

A set of beautiful React components for developing your own applications with chayns.

24 lines (23 loc) 783 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertSiteEntry = exports.convertPersonEntry = void 0; var _personFinder = require("../types/personFinder"); const convertSiteEntry = entries => entries.map(entry => ({ id: entry.siteId, name: entry.name, url: `https://${entry.domain}`, type: _personFinder.PersonFinderFilterTypes.SITE })); exports.convertSiteEntry = convertSiteEntry; const convertPersonEntry = entries => entries.map(entry => ({ id: entry.personId, firstName: entry.firstName, lastName: entry.lastName, commonSites: entry.relationCount, isVerified: entry.verified, type: _personFinder.PersonFinderFilterTypes.PERSON })); exports.convertPersonEntry = convertPersonEntry; //# sourceMappingURL=convert.js.map