Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api-helper/goal/sdmGoal"

Index

Functions

goalData

  • Read and parse goal event data. If the goal event has no data, return an empty object. Note: this purposely only works if the data field is stringified JSON.

    Parameters

    Returns any

    JSON parsed goal event data property

goalKeyEquals

goalKeyString

mapKeyToGoal

  • mapKeyToGoal<T>(goals: T[]): (k: SdmGoalKey) => T

mergeGoalData

  • Return a shallow merge the provided data and the goal event data property, parsed as JSON. Properties in data take precedence over those in the parsed goal event data object.

    Parameters

    Returns any

    shallow merge of data and SDM goal event data property

sdmGoalTimeout

  • sdmGoalTimeout(cfg?: Configuration): number
  • Return configured SDM goal timeout or default value, 10 minutes.

    Parameters

    • Optional cfg: Configuration

    Returns number

Generated using TypeDoc