Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UrlBuilder

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>

Hierarchy

  • UrlBuilder

Index

Constructors

constructor

Properties

Private Readonly urlFactory

urlFactory: UrlFactory

Private Readonly validator

Methods

getUrlFactory

Static Private transformConfig

Generated using TypeDoc