Data Layer low complexity Shared Component mobile
0
Dependencies
2
Dependents
2
Entities
0
Integrations

Description

Local SQLite repository for submitted notes, shared between the Notes List and Note Editor features. Provides CRUD operations and a reactive stream consumed by list and detail views. Acts as the offline cache for the notes REST API resource.

Feature: Note Editor

notes-store

Responsibilities

  • Persist submitted notes to the local SQLite database
  • Provide reactive streams of notes filtered by contact or user
  • Update or delete local note records after confirmed remote operations
  • Return a single note record by ID for the editor pre-population

Interfaces

watchNotesByContact(contactId: string): Stream<List<Note>>
getNoteById(noteId: string): Future<Note?>
upsertNote(note: Note): Future<void>
deleteNote(noteId: string): Future<void>
clearAll(): Future<void>

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component