Untitled

 avatar
unknown
plain_text
5 months ago
826 B
2
Indexable
/*
  changes: 
    • change timestamps to iso
    • don't save last sync on client
*/


const request = {

  // end time of the query to read data
  lastSyncDate: Date,
  // the syncronizing 
  provider: "healthkit",

  groups: [
    {
      // group id, which is the id of the first entry
      uuid: String,

      // start time of the first entry
      startTime: Date,
      // end time of the last entry
      endTime: Date,

      // in meters
      totalDistance: Number,
      totalSteps: Number,

      metadata: {
        // the source of the entries
        provider: "com.google.fit",
      },

      entries: [
        {

          startTime: Date,
          endTime: Date,

          steps: Number,
          // there is a possibilty of distance is 0
          distance: Number,
        }
      ]
    }
  ]
}
Editor is loading...
Leave a Comment