Bonfire.Notify.UserSubscription (Bonfire v1.0.1-social-alpha.28)
View SourceThe subscription schema for web push notifications.
Summary
Functions
Creates a changeset for a subscription.
Marks a subscription as failed with an error.
Marks a subscription as expired/inactive.
Marks a subscription as successful.
Parses browser subscription data into the format expected by our schema. Returns an error tuple if the data structure is invalid.
Converts a UserSubscription record to ExNudge.Subscription format.
Updates the last_used_at timestamp for a subscription.
Functions
Creates a changeset for a subscription.
Marks a subscription as failed with an error.
Marks a subscription as expired/inactive.
Marks a subscription as successful.
Parses browser subscription data into the format expected by our schema. Returns an error tuple if the data structure is invalid.
Converts a UserSubscription record to ExNudge.Subscription format.
Updates the last_used_at timestamp for a subscription.