Skip to main content

Data Model: hbf-event-publisher

Domain objects used by this service. Full schemas: docs/domain-model.md

Objects This Service Uses

hbf-event-publisher does not depend on @helvia/hbf-core-api. It defines its own User/UserGroup DTOs and accesses hbf-core via a minimal HTTP client for auth only.

ObjectAccessKey Fields Used
Userreads via HTTP to hbf-core (auth only)id, email, fullName, organizationRoles, tenantRoles, effectiveRoles
UserGroupreads via HTTP to hbf-core (auth only)id, name, organizationId, users

Local Entities

EntityTableDBKey Fields
FlowAssociationflow_associationMySQLid (auto-increment integer), triggerType (enum), displayName, triggerUrl, externalId (indexed), organizationId, tenantId, activityId, implementation, triggersSuccess, triggersFailed
PushAssociationpush_associationMySQLtoken (PK), platformUserId (indexed), isValid, platform (web/mobile), platformName, version

Key Enums

EnumValues
TriggerTypelivechat-request-missed, livechat-conversation-finished, survey-completed, automated-answer-triggered, chat-session-completed
Platformweb, mobile

Notes

  • FlowAssociation maps platform events to external webhook URLs (Power Automate flows or custom connectors).
  • PushAssociation stores push notification tokens for web and mobile clients.
  • Tracks success/failure counts per flow association for observability.
  • Auth passthrough to hbf-core /users/me endpoint. Does not use the hbf-core-api npm client.