Skip to content

Missing integration help #22

@gfreches

Description

@gfreches

hello
I was using your "api" and decided to implement the remaining features for myself. to make your life easier, here's where you should look for the remaining things:
I dug into the Firestore layout for the missing features. The main missing paths are:

  • Pump logs:

    • entries: pump/{child_uid}/intervals/{interval_id}
    • latest pointer: pump/{child_uid}.prefs.lastPump
    • relevant fields on the interval docs: start, leftAmount, rightAmount, units, entryMode, duration, offset, lastUpdated
    • note: pump intervals can also appear in batched docs with multi: true and nested data
  • Medication logs:

    • entries: health/{child_uid}/data/{entry_id} (data, not intervals)
    • latest pointer: health/{child_uid}.prefs.lastMedication
    • relevant fields: mode: "medication", amount, units, medication_id, medication_name, notes, start, offset, lastUpdated, type: "health"
    • note: health/{child_uid}/data can also contain batched multi: true docs with nested data
  • Temperature logs:

    • entries: health/{child_uid}/data/{entry_id} (data, not intervals)
    • latest pointer: health/{child_uid}.prefs.lastTemperature
    • relevant fields: mode: "temperature", amount, units, start, offset, lastUpdated, type: "health"
  • Sweet spot / wake-window tracking:

    • child doc: childs/{child_uid} (childs is the collection name)
    • current sweet-spot display data: childs/{child_uid}.sweetspot.displayedSweetSpot
    • fallback child-level times: childs/{child_uid}.sweetspot.sweetSpotTimes
    • selector fields: childs/{child_uid}.sweetspot.selectedNapDay and sleep/{child_uid}.prefs.sweetSpotWhich
    • historical / fallback interval-level data: sleep/{child_uid}/intervals/{interval_id}.sweetspotTimes

So if these features are added to py-huckleberry-api, the main missing collection/document paths are:

  • pump/{child_uid}/intervals
  • health/{child_uid}/data
  • childs/{child_uid}.sweetspot.*
  • sleep/{child_uid}/intervals/* .sweetspotTimes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions