* Add calendar UID to calendar event * Add iCalUID to booking event * On reschedule write to evt the iCalUID * Add uid to ics file * Remove console logs * Pass iCalUID if available * Remove generated app store files * Rename product id to calcom * Add UID to ics on reschedule * Type fixes * Type fixes * Type fixes * Remove comment * Remove console.log * Removed serverConfig block from this branch --------- Co-authored-by: Alex van Andel <me@alexvanandel.com>
38 lines
816 B
TypeScript
38 lines
816 B
TypeScript
import type { CalendarEvent } from "./Calendar";
|
|
|
|
export interface PartialReference {
|
|
id?: number;
|
|
type: string;
|
|
uid: string;
|
|
meetingId?: string | null;
|
|
meetingPassword?: string | null;
|
|
meetingUrl?: string | null;
|
|
externalCalendarId?: string | null;
|
|
credentialId?: number | null;
|
|
}
|
|
|
|
export interface EventResult<T> {
|
|
type: string;
|
|
appName: string;
|
|
success: boolean;
|
|
uid: string;
|
|
iCalUID?: string | null;
|
|
createdEvent?: T;
|
|
updatedEvent?: T | T[];
|
|
originalEvent: CalendarEvent;
|
|
calError?: string;
|
|
calWarnings?: string[];
|
|
}
|
|
|
|
export interface CreateUpdateResult {
|
|
results: Array<EventResult>;
|
|
referencesToCreate: Array<PartialReference>;
|
|
}
|
|
|
|
export interface PartialBooking {
|
|
id: number;
|
|
userId: number | null;
|
|
references: Array<PartialReference>;
|
|
credentialId?: number;
|
|
}
|