@elliemae/em-ssf-guest

Ellie Mae Secure Scripting Framework Guest Library

Usage no npm install needed!

<script type="module">
  import elliemaeEmSsfGuest from 'https://cdn.skypack.dev/@elliemae/em-ssf-guest';
</script>

README

Ellie Mae Scripting Framework Guest Library (EM-SSF)

This library provides the JavaScript object framework required to interact with Ellie Mae applications, such as LO Connect, TPO Connect, etc. Because integrators' code runs within a sandboxed iframe, it cannot directly access the objects/resources of the parent ("host") application. Instead, the application "publishes" a set of JavaScript objects that can be invoked by the iframed JavaScript (referred to as the "guest").

Interactions thru the EM-SSF always start by instantiating the scripting object and retrieving a published object from the host, e.g.

import emssf from '@elliemae/em-ssf-guest'
var hostObject = await emssf.getObject("<object_name>");

Once an object is retrieved, you can call its publicly exposed methods to interact with the host application. Note that each host application will expose a different set of objects, so consult the documentation for the appropriate product to learn more about the published objects.