Package-level declarations

Types

Link copied to clipboard
abstract class BaseModel<Key : Keyword, Self : BaseModel<Key, Self>>(properties: Map<Key, Serializable>?)

Abstract class that wraps around a map to control access to its contents. Provides helper functions to control the map's key type

Link copied to clipboard
class Event(val metric: EventMetric, properties: Map<EventKey, Serializable>?) : BaseModel<EventKey, Event>

Controls the data that can be input into a map of event attributes recognised by Klaviyo

Link copied to clipboard
sealed class EventKey : Keyword

All event property keys recognised by the Klaviyo APIs Custom properties can be defined using the CUSTOM inner class

Link copied to clipboard
sealed class EventMetric : Keyword

Common clientside event metrics recognized by Klaviyo Custom metrics can be defined with the CUSTOM inner class

Link copied to clipboard

Immutable implementation of Profile model to support observability and prevent untracked mutations

Link copied to clipboard
abstract class Keyword(val name: String)

Base class used to provide polymorphic properties to the use of profile and event keys

Link copied to clipboard

Controls the data that can be input into a map of profile attributes recognised by Klaviyo

Link copied to clipboard
sealed class ProfileKey : Keyword

All profile attributes recognised by the Klaviyo APIs Custom properties can be defined using the CUSTOM inner class