Commit Graph

24 Commits

Author SHA1 Message Date
ce46739f30 Try bulk insert with query builder 2024-07-27 20:03:26 +01:00
ead22776c3 Refactor API and add 'fetch_within' method
Changed `workspace_id` type to `u64` for broader compatibility. Introduced `fetch_within` to allow fetching time entries within a given date range and abstracted database update logic into `update_database`.
2024-07-27 19:34:48 +01:00
7fb0ab06e1 Add limit to look_back 2024-07-27 18:41:01 +01:00
3f2bbdd229 Make description field optional and allow for a fixed lookback 2024-07-27 18:39:31 +01:00
3f17c45297 Allow zero time_entries 2024-07-27 18:32:40 +01:00
a72acbc42f Complete set 2024-07-27 18:18:10 +01:00
5b4f850b8f Stash sync logic 2024-07-27 18:15:15 +01:00
5887ae4946 Initial db sync work 2024-07-27 17:58:34 +01:00
5969a1b3d8 Add initial sql tables 2024-07-16 19:04:12 +01:00
08ed00a555 Add initial sql tables 2024-07-16 17:25:01 +01:00
4cbb60b5ac Add workspaces 2024-07-16 17:22:57 +01:00
a780af3f62 Add SQLx 2024-07-16 08:46:31 +01:00
2658f8f26f Add some missing fields to the TogglReportFilters type 2024-07-16 08:38:02 +01:00
6f629a5976 Stash 2024-07-16 08:35:06 +01:00
45f1497df2 Stash 2024-07-16 08:30:02 +01:00
c1b8636407 Add /me/time_entries 2024-07-16 08:16:01 +01:00
9c20dc09ec Add Tags 2024-07-15 16:46:08 +01:00
29a8865bd5 Add Clients 2024-07-15 16:42:18 +01:00
f447cabed1 Add Projects 2024-07-15 16:38:05 +01:00
06de91a6fd Improve duration deserialization 2024-07-15 16:05:42 +01:00
5539b7706d Initial impl 2024-07-15 15:59:30 +01:00
bd5608a1de Move API client to its own file 2024-07-15 13:28:16 +01:00
72aaf40f4b Move retry and rate limiting to a library 2024-07-15 13:26:26 +01:00
d8206cd99b Initial work 2024-07-15 13:12:43 +01:00