Service Layer low complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Admin-facing service for reading and writing organization-specific threshold rule sets stored as JSON in the module_configurations table under the encrypted-assignments module key. Validates rule structure before persistence.

Feature: Assignment Threshold Tracking

threshold-rules-config-service

Responsibilities

  • Read threshold rule JSON config for a given organization from module_configurations
  • Validate rule set schema (count, label, action_type) before saving
  • Persist updated threshold rules with version timestamp
  • Expose rule set to frontend admin config widget

Interfaces

getThresholdConfig(organizationId: string) → Promise<ThresholdConfig>
saveThresholdConfig(organizationId: string, config: ThresholdConfig) → Promise<void>
validateThresholdConfig(config: unknown) → ValidationResult

Related Data Entities (1)

Data entities managed by this component