WhatsApp Analytics/Metrics helpers backed by the Baileys rc9 event registry.
Summary
Types
One event entry for a WAM buffer.
Ordered WAM key/value pairs.
Scalar values accepted by the WAM encoder.
Functions
Clear buffered events while preserving the current sequence.
Encode a WAM buffer into the rc9 binary wire format.
Build an ordered WAM event payload.
Increment the WAM buffer sequence.
Create a new WAM buffer.
Append a WAM event entry to the buffer.
Append a named WAM event to the buffer.
Types
@type event_input() :: BaileysEx.WAM.BinaryInfo.event_input()
One event entry for a WAM buffer.
@type ordered_values() :: BaileysEx.WAM.BinaryInfo.ordered_values()
Ordered WAM key/value pairs.
@type value() :: BaileysEx.WAM.BinaryInfo.value()
Scalar values accepted by the WAM encoder.
Functions
@spec clear_events(BaileysEx.WAM.BinaryInfo.t()) :: BaileysEx.WAM.BinaryInfo.t()
Clear buffered events while preserving the current sequence.
@spec encode(BaileysEx.WAM.BinaryInfo.t()) :: binary()
Encode a WAM buffer into the rc9 binary wire format.
@spec event(String.t() | atom(), ordered_values(), ordered_values()) :: event_input()
Build an ordered WAM event payload.
@spec increment_sequence(BaileysEx.WAM.BinaryInfo.t()) :: BaileysEx.WAM.BinaryInfo.t()
Increment the WAM buffer sequence.
@spec new(keyword()) :: BaileysEx.WAM.BinaryInfo.t()
Create a new WAM buffer.
@spec put_event(BaileysEx.WAM.BinaryInfo.t(), event_input()) :: BaileysEx.WAM.BinaryInfo.t()
Append a WAM event entry to the buffer.
@spec put_event( BaileysEx.WAM.BinaryInfo.t(), String.t() | atom(), ordered_values(), ordered_values() ) :: BaileysEx.WAM.BinaryInfo.t()
Append a named WAM event to the buffer.