Commit graph

21 commits

Author SHA1 Message Date
Ben Gotow
84d8979265 Add ability to auth gmail account via /auth 2016-07-12 13:24:48 -07:00
Ben Gotow
4fb848e91f fix for re-authing the same account 2016-07-11 21:38:05 -07:00
Annie
1fc30fa810 Merge branch 'master' of github.com:nylas/K2 2016-07-11 16:37:44 -07:00
Annie
e673573fcd added folder view api route 2016-07-11 16:37:39 -07:00
Ben Gotow
3c63268eec Return a new token for existing account instead of duplicating accounts 2016-07-11 16:01:18 -07:00
Evan Morikawa
1360599ffc Fix deafult test account email address 2016-07-11 14:23:35 -07:00
Juan Tejada
dce872fac8 Adds bunyan for json logging on every package!
- Bunyan logs json output, and added a stream to send our logs to
cloudwatch
- Replaces /all/ instances of console.log. Turned eslint rule back on,
so we don't use console.log ever again.
- Added npm scripts to view pretty logs
2016-07-08 17:30:24 -07:00
Ben Gotow
822b8e54e6 Allow usage with mysql in addition to SQLite 2016-07-07 11:37:55 -07:00
Jackie Luo
ddf73b6b02 Keep track of sync completion timestamps 2016-06-30 17:04:13 -07:00
Ben Gotow
3c2b8bcb15 Fix account creation redis publish, rename to make more clear 2016-06-30 13:25:13 -07:00
Evan Morikawa
5a56c9a4e4 AccountId -> accountId 2016-06-29 14:43:20 -07:00
Ben Gotow
76d873c2b2 Reintroduce concept of provider, start work on Gmail 2016-06-27 10:43:53 -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
1336dea0d4 Fix auth response + log errors 2016-06-25 22:19:05 -07:00
Ben Gotow
69e87cbf49 Gmail auth at http://localhost:5100/auth/gmail 2016-06-24 16:46:41 -07:00
Halla Moore
18ad15937f Change uppercase instance of Joi to lowercase 2016-06-24 14:07:10 -07:00
Ben Gotow
f678045c4f sync db <=> redis with sequelize hooks 2016-06-23 16:28:51 -07:00
Ben Gotow
c2e9093b42 Escalate sync policy based on number of stream connections 2016-06-23 11:45:33 -07:00
Ben Gotow
12d9db8dd9 Redis coordination of sync processes / assignment 2016-06-23 00:49:26 -07:00
Ben Gotow
2e9bfa68b5 Refactor DeltaStreamQueue (connection per subscription) 2016-06-23 00:49:26 -07:00
Ben Gotow
f5f435236f /auth + remove hardcoded stub in favor of curl request 2016-06-22 17:19:48 -07:00