Evan Morikawa
e2e827297c
Add authless /ping endpoint that returns "pong"
2016-07-05 14:09:44 -07:00
Juan Tejada
8b1f012a3c
Fix error serialization
...
- Remove cumbersome NylasError
- Add helper to serialize error when saving to account
2016-07-01 15:49:47 -07:00
Jackie Luo
0af1a43794
Add first sync completion time
2016-07-01 13:15:55 -07:00
Evan Morikawa
fd0c4d734c
Fix delta sync to properly includes sub models
2016-07-01 11:27:20 -07:00
Halla Moore
84ce3bdeb3
Merge branch 'master' of github.com:nylas/k2
2016-06-30 17:11:05 -07:00
Halla Moore
c5157b3553
Fixed 'in' filter for threads endpoint
2016-06-30 17:10:48 -07:00
Jackie Luo
ddf73b6b02
Keep track of sync completion timestamps
2016-06-30 17:04:13 -07:00
Halla Moore
ce61326f7c
Make query keys not camel case
2016-06-30 16:23:55 -07:00
Halla Moore
7221ae3bb9
Added File filtering
2016-06-30 16:19:57 -07:00
Halla Moore
f94acfcb9b
Added filename query to threads endpoint
2016-06-30 16:09:02 -07:00
Halla Moore
d68151a684
Merge branch 'master' of github.com:nylas/k2
2016-06-30 15:49:03 -07:00
Halla Moore
aec946f7de
Added 'in' query to messages endpoint
2016-06-30 15:23:34 -07:00
Halla Moore
6225f09018
Added some filter queries for Messages
2016-06-30 14:22:23 -07:00
Ben Gotow
3c2b8bcb15
Fix account creation redis publish, rename to make more clear
2016-06-30 13:25:13 -07:00
Ben Gotow
ef5c4a29fe
Fix redis keys, dashboard app, show account active state on dashboard
2016-06-30 12:33:10 -07:00
Ben Gotow
f9952f9fa7
Fix 500 error when account token does not resolve to account
2016-06-30 12:33:10 -07:00
Halla Moore
d0666540b9
Added syncback tasks for folders
2016-06-30 11:54:12 -07:00
Ben Gotow
b033b94091
Break Category into Folder, Label, populate Gmail lables for messages
2016-06-30 09:29:21 -07:00
Jackie Luo
b3b5a5106c
Add endpoint for file downloads
2016-06-29 19:14:04 -07:00
Halla Moore
fd7570f6c8
Add various syncback tasks for messages
2016-06-29 18:52:58 -07:00
Halla Moore
80d80eb306
Added StarThread and UnstarThread imap tasks
2016-06-29 17:36:34 -07:00
Halla Moore
ef11508b38
Added MarkThreadAsUnread task
2016-06-29 17:23:18 -07:00
Halla Moore
d3fd671ff6
Update MarkThreadAsRead task
2016-06-29 17:01:30 -07:00
Ben Gotow
b00b1e6d21
Add replyTo to message model
2016-06-29 16:10:45 -07:00
Evan Morikawa
5a56c9a4e4
AccountId -> accountId
2016-06-29 14:43:20 -07:00
Ben Gotow
53d6c6284e
Support for /threads?view=count/expanded, thread & message JSON includes folders
2016-06-29 12:02:31 -07:00
Ben Gotow
9ff7d3aea5
Add folders and labels to /threads response, version numbers to all models
2016-06-29 11:22:38 -07:00
Ben Gotow
6ecacdd591
Add account_id to all responses, downcase model ref columns
2016-06-29 10:36:35 -07:00
Halla Moore
8a53dca755
Merge branch 'master' of github.com:nylas/k2
2016-06-29 10:10:49 -07:00
Ben Gotow
c7422ffaea
Fix bug where always closing connection after sync
2016-06-28 18:43:53 -07:00
Ben Gotow
0189e3e77d
Break Gmail mailboxes into folders and labels
2016-06-28 18:31:40 -07:00
Evan Morikawa
7180ebbb70
PUT route works on threads to create SyncbackRequests
2016-06-28 18:17:11 -07:00
Halla Moore
f5af9c0cb5
Added a syncback task to mark a thread as read, untested
2016-06-28 18:13:49 -07:00
Ben Gotow
222c68a598
Deprecate thread.cleanedSubject, since the only subject is the clean one
2016-06-28 18:11:55 -07:00
Ben Gotow
1d1186cb34
Add more attributes to /threads, move processor to it's own process
2016-06-28 18:10:52 -07:00
Halla Moore
b867bcb31e
Merge branch 'master' of github.com:nylas/k2
2016-06-28 15:56:35 -07:00
Evan Morikawa
14cffcf8a5
Change to notify / observe for syncback requests
2016-06-28 15:35:59 -07:00
Halla Moore
0f64b6e58e
Add category filtering to threads api endpoint
2016-06-28 15:01:41 -07:00
Evan Morikawa
0f4ed7f4a1
Fix package json
2016-06-28 14:09:56 -07:00
Ben Gotow
8108a875ee
Allow trailing slashes on API endpoints
2016-06-28 13:57:07 -07:00
Jackie Luo
eaf19cc522
Add files endpoint for metadata
2016-06-28 13:55:00 -07:00
Juan Tejada
ed749e0f51
Add sync worker error handling
...
- Handles sync errors in a single place. For now, if error is not a
socket error, will treat as a permanent error, save the error to the
account object, and prevent any other syncing until the error is cleared
from the account object
- Adds a NylasError class that can be extended and serialized. Adds it
to global namespace on all packages and replaces all uses of regular
Error
2016-06-27 16:03:38 -07:00
Halla Moore
5077b3f027
Add subject query to threads route
2016-06-27 13:45:11 -07:00
Halla Moore
2e56d3ced4
Add timestamp queries to threads route
2016-06-27 12:30:28 -07:00
Ben Gotow
76d873c2b2
Reintroduce concept of provider
, start work on Gmail
2016-06-27 10:43:53 -07:00
Halla Moore
ab4c8cf32c
Add id query to threads route
2016-06-27 10:35:34 -07:00
Halla Moore
621f8b5c2b
Add starred query to threads route
2016-06-27 10:15:05 -07:00
Juan Tejada
dd350a5081
Update IMAPConnection api + error handling fixes + misc
...
- `IMAPConnection::openBox` now returns a Promise that resolves to an
IMAPBox, and IMAPBox contains all of the `fetch` operations. This makes
the dependency between fetch operations and the currently open mailbox
explicit rather than implicit and by forcing the operations to be called on
a box instance and hopefully prevent errors. It will also throw an error
if the constraint is no longer satisfied.
- `fetch` operations now return an observable stream of messages (or Promise for single value),
while preserving the same logic of the original implementation. You can use `.toPromise()` on
the observable to get a Promise that resolves when the observable stream has
completely drained.
- Fixes error handling in a few places and renames some variables
2016-06-26 01:57:33 -07:00
Juan Tejada
63f48ae817
Adds hapi-boom for easy error responses
2016-06-26 01:44:39 -07:00
Juan Tejada
1336dea0d4
Fix auth response + log errors
2016-06-25 22:19:05 -07:00