Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
feat: add nylas exchange provider
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhorgil committed Apr 4, 2020
1 parent 6aa6b79 commit 6394f3e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/data/resolvers/mutations/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ const integrationMutations = {
return dataSources.IntegrationsAPI.createAccount(data);
},

integrationAddExchangeAccount(_root, data, { dataSources }) {
return dataSources.IntegrationsAPI.createAccount(data);
},

/**
* Create Yahoo, Outlook account
*/
Expand All @@ -189,6 +193,7 @@ const integrationMutations = {
'nylas-imap',
'nylas-office365',
'nylas-outlook',
'nylas-exchange',
'nylas-yahoo',
'chatfuel',
'twitter-dm',
Expand Down
8 changes: 8 additions & 0 deletions src/data/schema/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ export const mutations = `
attachments: [JSON]
): JSON
integrationAddExchangeAccount(
email: String!
password: String!
host: String!
username: String
kind: String
): JSON
integrationAddImapAccount(
email: String!
password: String!
Expand Down
3 changes: 3 additions & 0 deletions src/db/models/definitions/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const KIND_CHOICES = {
NYLAS_GMAIL: 'nylas-gmail',
NYLAS_IMAP: 'nylas-imap',
NYLAS_OFFICE365: 'nylas-office365',
NYLAS_EXCHANGE: 'nylas-exchange',
NYLAS_OUTLOOK: 'nylas-outlook',
NYLAS_YAHOO: 'nylas-yahoo',
CALLPRO: 'callpro',
Expand All @@ -83,6 +84,7 @@ export const KIND_CHOICES = {
'nylas-imap',
'nylas-office365',
'nylas-outlook',
'nylas-exchange',
'nylas-yahoo',
'twitter-dm',
'smooch-viber',
Expand All @@ -103,6 +105,7 @@ export const INTEGRATION_NAMES_MAP = {
chatfuel: 'Chatfuel',
'nylas-gmail': 'Gmail',
'nylas-imap': 'Imap',
'nylas-exchange': 'exchange',
'nylas-office365': 'Office 365',
'nylas-outlook': 'Outook',
'nylas-yahoo': 'Yahoo',
Expand Down

0 comments on commit 6394f3e

Please sign in to comment.