This reverts commit d294a74aad.
This commit is contained in:
1 parent
bdf94c7f48
commit
6272c881c8
39 files changed
+240
-952
No files matched your search
Vendored
+2
-18
@@ -1,9 +1,4 @@
|
||||
import type {
|
||||
BookingSeat,
|
||||
DestinationCalendar,
|
||||
Prisma,
|
||||
SelectedCalendar as _SelectedCalendar,
|
||||
} from "@prisma/client";
|
||||
import type { BookingSeat, DestinationCalendar, Prisma, SelectedCalendar } from "@prisma/client";
|
||||
import type { Dayjs } from "dayjs";
|
||||
import type { calendar_v3 } from "googleapis";
|
||||
import type { Time } from "ical.js";
|
||||
@@ -236,7 +231,7 @@ export interface AdditionalInformation {
|
||||
hangoutLink?: string;
|
||||
}
|
||||
|
||||
export interface IntegrationCalendar extends Ensure<Partial<_SelectedCalendar>, "externalId"> {
|
||||
export interface IntegrationCalendar extends Ensure<Partial<SelectedCalendar>, "externalId"> {
|
||||
primary?: boolean;
|
||||
name?: string;
|
||||
readOnly?: boolean;
|
||||
@@ -264,13 +259,7 @@ export interface Calendar {
|
||||
selectedCalendars: IntegrationCalendar[]
|
||||
): Promise<EventBusyDate[]>;
|
||||
|
||||
fetchAvailabilityAndSetCache?(selectedCalendars: IntegrationCalendar[]): Promise<unknown>;
|
||||
|
||||
listCalendars(event?: CalendarEvent): Promise<IntegrationCalendar[]>;
|
||||
|
||||
watchCalendar?(options: { calendarId: string }): Promise<unknown>;
|
||||
|
||||
unwatchCalendar?(options: { calendarId: string }): Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -279,8 +268,3 @@ export interface Calendar {
|
||||
type Class<I, Args extends any[] = any[]> = new (...args: Args) => I;
|
||||
|
||||
export type CalendarClass = Class<Calendar, [CredentialPayload]>;
|
||||
|
||||
export type SelectedCalendar = Pick<
|
||||
_SelectedCalendar,
|
||||
"userId" | "integration" | "externalId" | "credentialId"
|
||||
>;
|
||||
Reference in new issue
Block a user