Skip to content

Commit

Permalink
[Task] #32 update types to reflect subobjects of entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Jan 30, 2024
1 parent 7bfdced commit 0bee573
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,12 @@ namespace Models {
/**
* object containing horizontal vertical and total distance, in meters
*/
distance: {
horizontal: number,
vertical: number,
total: number
},
distance: Models.IDistance,

/**
* object containing horizontal vertical and total speed, in km/h
*/
speed: {
gps: number;
horizontal: number,
vertical: number,
total: number
},
speed: Models.ISpeed,

/**
* index, position of the entry point in the chain
Expand Down Expand Up @@ -90,17 +81,31 @@ namespace Models {
/**
* time object containing UNIX timestamps with milliseconds, gps creation time (as recieved via gps), server time (when the server recieved and computed it), differce to last entry (time between waypoints), upload time differnce
*/
time: {
created: number,
recieved: number,
uploadDuration: number,
diff: number
createdString: string
},
time: Models.time,

/**
* user as recieved
*/
user: string
}

interface ITime {
created: number,
recieved: number,
uploadDuration: number,
diff: number
createdString: string
}

interface ISpeed {
gps: number;
horizontal: number,
vertical: number,
total: number
}
interface IDistance {
horizontal: number,
vertical: number,
total: number
}
}

0 comments on commit 0bee573

Please sign in to comment.