2021-11-25 14:36:32 +00:00
|
|
|
import { FG_Plugin } from '@flaschengeist/types';
|
2021-11-24 20:47:14 +00:00
|
|
|
|
|
|
|
export interface RecurrenceRule {
|
|
|
|
frequency: string;
|
|
|
|
interval: number;
|
|
|
|
count?: number;
|
|
|
|
until?: Date;
|
|
|
|
weekdays?: Array<number>;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface InvitationData {
|
|
|
|
invitation: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface InvitationResponseData {
|
2021-11-25 14:36:32 +00:00
|
|
|
event: number;
|
|
|
|
job: number;
|
|
|
|
invitee: string;
|
2021-11-24 20:47:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface EventNotification extends FG_Plugin.Notification {
|
|
|
|
data: {
|
2021-11-25 14:36:32 +00:00
|
|
|
type: number;
|
2021-11-24 20:47:14 +00:00
|
|
|
} & (InvitationData | InvitationResponseData);
|
2021-05-25 15:11:44 +00:00
|
|
|
}
|