a94d51c4bd
* WIP
* warnings and errors, and working app
* Refresh token now usable
* Correcting env.appStore.example
* Reverting changes that will come from Sendgrid App PR
* Resetting with main
* Renaming all othercalendars
* Fixing types
* Renaming leftovers
* More renaming stuff
* Format readme
* Adds prettier override for website wordlist
* Omit salesforce app in this PR
* Cleanup
* Update AppSettings.tsx
* Revert "Cleanup"
This reverts commit 41f94c52c3
.
* Update yarn.lock
Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
40 lines
882 B
TypeScript
40 lines
882 B
TypeScript
import { DestinationCalendar } from "@prisma/client";
|
|
|
|
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;
|
|
credentialId?: number | null;
|
|
}
|
|
|
|
export interface EventResult<T> {
|
|
type: string;
|
|
appName: string;
|
|
success: boolean;
|
|
uid: string;
|
|
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;
|
|
}
|