Data Layer low complexity backendmobile
0
Dependencies
2
Dependents
1
Entities
0
Integrations

Description

Data access layer that reads and caches expense type definitions stored as JSON in the module_configurations table, scoped per organization. Provides typed access to type metadata including receipt requirements, exclusivity groups, and approval thresholds.

Feature: Expense Types & Requirements

expense-type-config-repository

Responsibilities

  • Query module_configurations for the expense-reimbursement module config blob per organization
  • Parse and type-validate JSON expense type definitions
  • Cache deserialized config in Drift local database for offline access

Interfaces

getExpenseTypeConfig(orgId: string) → ExpenseTypeConfig
cacheConfig(orgId: string, config: ExpenseTypeConfig) → void
getLocalConfig(orgId: string) → ExpenseTypeConfig | null

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component