Class is responsible for building and validating common survey configuration
import { UrlBuilder } from '@hello-customer/website-touchpoint' const urlBuilder = new UrlBuilder({ baseUrl: 'https://base.com', tenantId: 'xxxx', touchPointId: 'zzz', language: 'EN', extra: { isPreview: true } });
<script src="https://unpkg.com/@hello-customer/website-touchpoint"></script> <script> const urlBuilder = new hcWebsiteTouchpoint.UrlBuilder({ baseUrl: 'https://base.com', tenantId: 'xxxx', touchPointId: 'zzz', language: 'EN', extra: { isPreview: true } }); </script>
UrlFactory object with injected validated config
If a provided configuration object has to be transformed before usage, here such operations can be defined
Generated using TypeDoc
Class is responsible for building and validating common survey configuration
Example (es module)
import { UrlBuilder } from '@hello-customer/website-touchpoint' const urlBuilder = new UrlBuilder({ baseUrl: 'https://base.com', tenantId: 'xxxx', touchPointId: 'zzz', language: 'EN', extra: { isPreview: true } });
Example (script tag)
<script src="https://unpkg.com/@hello-customer/website-touchpoint"></script> <script> const urlBuilder = new hcWebsiteTouchpoint.UrlBuilder({ baseUrl: 'https://base.com', tenantId: 'xxxx', touchPointId: 'zzz', language: 'EN', extra: { isPreview: true } }); </script>