-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
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
feat: outlook 365 calendar endpoints #15077
base: main
Are you sure you want to change the base?
feat: outlook 365 calendar endpoints #15077
Conversation
…s and redirect url for office 365 calendar
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
Graphite Automations"Add platform team as reviewer" took an action on this PR • (05/16/24)1 reviewer was added to this PR based on Keith Williams's automation. |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 42 Passing - ❌ 1 Failing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 05/17/2024 08:47:50pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: ddcdddb Started: 05/17/2024 08:46:42pm UTC ❌ Failures📄 apps/web/playwright/teams.e2e.ts • 1 FailureTest Case Results
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Signup Flow Test Email verification sent if enabled
Retry 1 • Initial Attempt |
1.13% (3)3 / 266 runsfailed over last 7 days |
24.44% (65)65 / 266 runsflaked over last 7 days |
Rajiv Sahal seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
export const OFFICE_365_CALENDAR_TYPE = "office365_calendar"; | ||
export const OFFICE_365_CALENDAR_ID = "office365-calendar"; | ||
export const GOOGLE_CALENDAR = "google"; | ||
export const MICROSOFT_OUTLOOK_CALENDAR = "google"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
office365
|
||
export interface CalendarApp { | ||
save(state: string, code: string, origin: string): Promise<{ url: string }>; | ||
check(userId: number): Promise<{ status: string }>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check(userId: number): Promise<ApiResponse>;
} | ||
|
||
export interface OAuthCalendarApp extends CalendarApp { | ||
connect(authorization: string, req: Request): Promise<{ status: string; data: { authUrl: string } }>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connect(authorization: string, req: Request): Promise<ApiResponse<{ authUrl: string }>>
const origin = req.get("origin") ?? req.get("host"); | ||
const redirectUrl = await await this.getCalendarRedirectUrl(accessToken, origin ?? ""); | ||
|
||
return { status: "SUCCESS", data: { authUrl: redirectUrl } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ status: SUCCESS_STATUS, data: { authUrl: redirectUrl } };
const origin = req.get("origin") ?? req.get("host"); | ||
const redirectUrl = await await this.getCalendarRedirectUrl(accessToken, origin ?? ""); | ||
|
||
return { status: "SUCCESS", data: { authUrl: redirectUrl } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUCCESS_STATUS
What does this PR do?
This PR adds the endpoints for the microsoft outlook calendar. The frontend can be done in a follow PR once the endpoints are merged. Also added some e2e tests for case where access token or origin might be invalid and also when all the credentials are good