* Set google cal event id to use our uid * Save calendar external id to bookingRef * Pass external calendar ids to update and delete * Create migration * Fix type errors * Fix prisma url Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Omar López <zomars@me.com>
32 lines
688 B
TypeScript
32 lines
688 B
TypeScript
import type { CalendarEvent } from "./Calendar";
|
|
import type { Event } from "./Event";
|
|
|
|
export interface PartialReference {
|
|
id?: number;
|
|
type: string;
|
|
uid: string;
|
|
meetingId?: string | null;
|
|
meetingPassword?: string | null;
|
|
meetingUrl?: string | null;
|
|
externalCalendarId?: string | null;
|
|
}
|
|
|
|
export interface EventResult {
|
|
type: string;
|
|
success: boolean;
|
|
uid: string;
|
|
createdEvent?: Event;
|
|
updatedEvent?: Event | Event[];
|
|
originalEvent: CalendarEvent;
|
|
}
|
|
|
|
export interface CreateUpdateResult {
|
|
results: Array<EventResult>;
|
|
referencesToCreate: Array<PartialReference>;
|
|
}
|
|
|
|
export interface PartialBooking {
|
|
id: number;
|
|
references: Array<PartialReference>;
|
|
}
|