* feat: ics-feed calendar api-v2 * fixup! feat: ics-feed calendar api-v2 * chore: bump platform libraries --------- Co-authored-by: Keith Williams <keithwillcode@gmail.com>
29 lines
920 B
TypeScript
29 lines
920 B
TypeScript
import { CreateIcsFeedOutputResponseDto } from "@/ee/calendars/input/create-ics.output";
|
|
import { Request } from "express";
|
|
|
|
import { ApiResponse } from "@calcom/platform-types";
|
|
|
|
export interface CalendarApp {
|
|
save(state: string, code: string, origin: string): Promise<{ url: string }>;
|
|
check(userId: number): Promise<ApiResponse>;
|
|
}
|
|
|
|
export interface CredentialSyncCalendarApp {
|
|
save(userId: number, userEmail: string, username: string, password: string): Promise<{ status: string }>;
|
|
check(userId: number): Promise<ApiResponse>;
|
|
}
|
|
|
|
export interface ICSFeedCalendarApp {
|
|
save(
|
|
userId: number,
|
|
userEmail: string,
|
|
urls: string[],
|
|
readonly?: boolean
|
|
): Promise<CreateIcsFeedOutputResponseDto>;
|
|
check(userId: number): Promise<ApiResponse>;
|
|
}
|
|
|
|
export interface OAuthCalendarApp extends CalendarApp {
|
|
connect(authorization: string, req: Request): Promise<ApiResponse<{ authUrl: string }>>;
|
|
}
|