Service Layer medium complexity Shared Component mobile
1
Dependencies
1
Dependents
6
Entities
0
Integrations

Description

Business logic service responsible for constructing and submitting activity payloads to the REST API. Shared with the Simple Activity Logging feature and accepts both quick-log and wizard-format payloads against the same POST /api/v1/activities endpoint.

Feature: Activity Registration Wizard

activity-service

Responsibilities

  • Build and validate the full activity request payload from wizard state
  • Submit activity to REST API via POST /api/v1/activities
  • Handle API error responses and surface domain-level errors
  • Persist submitted activities to local Activity Store for offline resilience

Interfaces

createActivity(payload: ActivityPayload): Future<Activity>
validatePayload(payload: ActivityPayload): ValidationResult
getRecentActivities(userId: string): Future<List<Activity>>
deleteActivity(activityId: string): Future<void>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component