0.1.7 • Published 4 years ago

maklaro-one-stop-shop v0.1.7

Weekly downloads
32
License
-
Repository
-
Last release
4 years ago

Moss - Maklaro one stop shop service

##Embedding the service

You will need a build folder containing 3 folders:

<script src="./js/runtime-main.{id}.js"></script>
<script src="./js/2.{bundleId}.chunk.js"></script>
<script src="./js/main.{anotherId}.chunk.js"></script>
<link href="./css/2.{uniqueId}.chunk.css" rel="stylesheet" />
initMossService(serviceConfig)
{
  serviceId?: string; // navigates to a particular service creation form
  directAccessToken?: string // navigates to a particular service creation form
  sessionToken?: string; // navigates to the new order selection view
  externalIdToken?: string; // navigates to the list of already created orders
  onEscape?: () => void; // not required. Initialize the application with starting a new order creation form of choice. If not passed the app starts with service selection view.
  language?: AvailableLanguages; // not required. 'de' is default.
  containerNodeId: string; // container id of the dom element application should mount into
  contactEmail: string; // email address to be displayed at the simplified contact page
}

serviceToken, sessionToken, externalIdToken are all nullable, but one of these must be passed