Commit Graph

25 Commits

Author SHA1 Message Date
7f445a24e0 Add a basic sync route 2024-07-27 21:18:36 +01:00
eca0a825dc Move worker into its own module also 2024-07-27 21:05:35 +01:00
02a5593411 Split toggl module into multiple files 2024-07-27 21:02:38 +01:00
25a52fa0e5 rustfmt 2024-07-27 20:51:30 +01:00
71f9ed3312 Move all to SOA and tag time entries to join table as this should be how it works and also UNNEST doesn't support nested arrays 2024-07-27 20:51:14 +01:00
6f7db97ab6 Convert more to SOA 2024-07-27 20:41:43 +01:00
300ee37cf5 Workspace SOA UNNEST 2024-07-27 20:29:58 +01:00
4efbb95204 SOA for batch inserts using UNNEST as per docs 2024-07-27 20:28:39 +01:00
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
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
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
4cbb60b5ac Add workspaces 2024-07-16 17:22:57 +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