We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently some Gmail API calls are scattered throughout the app. All Gmail API interactions should live in apps/web/utils/gmail/.
apps/web/utils/gmail/
Search the project for .gmail. and you'll see all the places we're calling the Gmail API outside of the apps/web/utils/gmail/ folder.
.gmail.
Unifying this into the gmail folder, will make it easier to add Outlook integration.
Good (already in gmail folder):
// apps/web/utils/gmail/message.ts export async function getMessage( messageId: string, gmail: gmail_v1.Gmail, format?: "full" | "metadata", ): Promise<MessageWithPayload>
Need to fix (currently outside gmail folder):
// Found in app code const response = await gmail.users.messages.list({ userId: "me", labelIds: type === "OTHER" ? undefined : [type], maxResults: 5, q: getQuery(type), pageToken, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Move all Gmail API calls into gmail utils folder
Currently some Gmail API calls are scattered throughout the app. All Gmail API interactions should live in
apps/web/utils/gmail/
.Search the project for
.gmail.
and you'll see all the places we're calling the Gmail API outside of theapps/web/utils/gmail/
folder.Unifying this into the gmail folder, will make it easier to add Outlook integration.
Examples
Good (already in gmail folder):
Need to fix (currently outside gmail folder):
Tasks
Done when
apps/web/utils/gmail/
The text was updated successfully, but these errors were encountered: