Skip to content

Commit

Permalink
fix(gmail): add missing trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSelene committed Mar 25, 2024
1 parent 44a491b commit 42d1809
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/pieces/community/gmail/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@activepieces/piece-gmail",
"version": "0.5.5"
}
"version": "0.5.6"
}
21 changes: 17 additions & 4 deletions packages/pieces/community/gmail/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ import {
} from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/shared';
import { gmailSendEmailAction } from './lib/actions/send-email-action';
import { gmailNewEmailTrigger } from './lib/triggers/new-email';

export const gmailAuth = PieceAuth.OAuth2({
description: '',

authUrl: 'https://accounts.google.com/o/oauth2/auth',
tokenUrl: 'https://oauth2.googleapis.com/token',
required: true,
// TODO add https://www.googleapis.com/auth/gmail.readonly when we have the permission
scope: ['https://www.googleapis.com/auth/gmail.send', 'email'],
scope: [
'https://www.googleapis.com/auth/gmail.send',
'https://www.googleapis.com/auth/gmail.readonly',
],
});

export const gmail = createPiece({
Expand All @@ -37,7 +40,17 @@ export const gmail = createPiece({
displayName: 'Gmail',
description: 'Email service by Google',

authors: ["kanarelo","abdullahranginwala","BastienMe","Salem-Alaa","kishanprmr","MoShizzle","AbdulTheActivePiecer","khaledmashaly","abuaboud"],
triggers: [],
authors: [
'kanarelo',
'abdullahranginwala',
'BastienMe',
'Salem-Alaa',
'kishanprmr',
'MoShizzle',
'AbdulTheActivePiecer',
'khaledmashaly',
'abuaboud',
],
triggers: [gmailNewEmailTrigger],
auth: gmailAuth,
});

0 comments on commit 42d1809

Please sign in to comment.