Adds a field sanitizer to the evaluation list
Add a value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name.
Does this field value sanitizer handle this path / field combination
The field path
The name of the field
Sanitizes the Property. It checks the that the property name and value are valid. It also checks/populates the correct type and pii of the property value.
The root path of the property
The property name.
The property value or an IEventProperty containing value, type ,pii and customer content.
Optional
stringifyObjects: booleanIf supplied tells the sanitizer that it should JSON stringify() objects
IEventProperty containing valid name, value, pii and type or null if invalid.
Removes the field sanitizer to the evaluation list if present
Removes the value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name if present.
Sanitizes the value. It checks the that the property name and value are valid. It also checks/populates the correct type and pii of the property value.
The root path of the property
The property name.
The property value or an IEventProperty containing value, type ,pii and customer content.
Optional
stringifyObjects: booleanIf supplied tells the sanitizer that it should JSON stringify() objects
IEventProperty containing valid name, value, pii and type or null if invalid.
Generated using TypeDoc
This interface is used during the serialization of events into envelope (serialized object) which is sent to the services, the format is defined via the Common Schema 4.0 specification. The path and field names used are based on how the data is serialized to the service (CS 4.0 location) and not specifically the location on the event object you pass into the track methods (unless they are the same).