synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
22 lines (21 loc) • 607 B
JavaScript
import { getEndpoint as i, BackendDestinationEnum as o } from "./getEndpoint.js";
import { GRID_PAGE_SESSION_ID_QUERY_PARAM as r, GRID_PAGE_TASK_ID_QUERY_PARAM as _ } from "../SynapseConstants.js";
function u(e, n) {
let t = `${i(
o.PORTAL_ENDPOINT
)}Synapse:${e}`;
return n != null && (t += `/version/${n}`), t;
}
function A(e, n) {
let t = `${i(
o.PORTAL_ENDPOINT
)}Grid:default?${r}=${encodeURIComponent(
e
)}`;
return n != null && (t += `&${_}=${n}`), t;
}
export {
u as getLinkToEntityPage,
A as getLinkToGridSession
};
//# sourceMappingURL=getSynapseWebClientLink.js.map