import { IContactInfo } from "../Contacts/contacts"; import { UserInfo } from "../Users/UserTrii"; export interface IEventType { id: string; name: string; color: string; icon: string; } export interface IEvent { id: string; spaceId: string; isPrivate: boolean; relatedContact: IContactInfo; relatedTicket: any; relatedDebt: any; startAt: Date; endAt: Date; /**Event duration expressed in minutes */ duration: number; allDay: boolean; title: string; details: string; location: string; color?: string; eventType?: IEventType; calendarId?: string; rule?: string; parentId?: string; originalOccurrenceDate?: Date; notifications: IEventNotification[]; sharedWith: UserInfo[]; createdAt: Date; createdBy: UserInfo; finalized: boolean; finalizedAt?: Date; finalizedBy?: UserInfo; deletedAt?: Date; deletedBy?: UserInfo; } export interface IRelatedInfo { type: relatedType; id: string; contact: IContactInfo; ticket: any; debt: any; } export declare enum relatedType { CONTACT = 1, DEBT = 2, TICKET = 3 } export interface IEventNotification { id: string; notificacionDateTime: Date; timeValue: number; timePeriod: EventNotificationPeriod; sendToContact: boolean; } export declare enum EventNotificationPeriod { MINUTE = 1, HOUR = 2, DAY = 3, WEEK = 4 }