CdhConfigurationBeautifier

CdhConfigurationBeautifier

Cdh Configuration Beautifier class. Simplifies the CDH configuration object.

Constructor

new CdhConfigurationBeautifier()

Source:

Methods

beautify(cdhConfigurationData) → {Object}

Source:

Filters the main data from the CDH configuration object to a simplified object with:

"Visitor Attributes" "Event Attributes" "Audiences by Id to Name" "Audiences by Name to Id" "Event Specs"

Parameters:
Name Type Description
cdhConfigurationData Object

A composite representation of the CDH configuration

Returns:

A simplified object with a structural definition between ID and Name for the various CDH configuration

Type
Object

beautifyAudiencesById(cdhConfigurationData) → {Object}

Source:

Filters the main data from the CDH configuration object to a simplified object with:

"Audiences by Id to Name"

Parameters:
Name Type Description
cdhConfigurationData Object

A composite representation of the CDH configuration

Returns:

A simplified object with a structural definition between ID and Name for CDH audiences

Type
Object

beautifyAudiencesByName(cdhConfigurationData) → {Object}

Source:

Filters the main data from the CDH configuration object to a simplified object with:

"Audiences by Name to Id"

Parameters:
Name Type Description
cdhConfigurationData Object

A composite representation of the CDH configuration

Returns:

A simplified object with a structural definition between Name and ID for CDH audiences

Type
Object

beautifyEventAttributes(cdhConfigurationData) → {Object}

Source:

Filters the main data from the CDH configuration object to a simplified object with:

"Event Attributes"

Parameters:
Name Type Description
cdhConfigurationData Object

A composite representation of the CDH configuration

Returns:

A simplified object with a structural definition between ID and Name for CDH event attributes

Type
Object

beautifyEventSpecs(cdhConfigurationData) → {Object}

Source:

Filters the main data from the CDH configuration object to a simplified object with:

"Event Specs"

Parameters:
Name Type Description
cdhConfigurationData Object

A composite representation of the CDH configuration

Returns:

A simplified object with a structural definition between ID and Name for CDH event specifications

Type
Object

beautifyVisitorAttributes(cdhConfigurationData) → {Object}

Source:

Filters the main data from the CDH configuration object to a simplified object with:

"Visitor Attributes"

Parameters:
Name Type Description
cdhConfigurationData Object

A composite representation of the CDH configuration

Returns:

A simplified object with a structural definition between ID and Name for CDH visitor attributes

Type
Object