import type { Contact } from '../contacts/types' import type { Department } from '../departments/types' import type { User } from '../users/types' export type Schedule = { id: string status: string reason: string | null message: string notes: string openTicket: boolean notificateUser: boolean extraOptions: Record | null hsmId: string | null hsmFileId: string | null scheduledAt: string contactId: string userId: string | null departmentId: string accountId: string createdAt: string updatedAt: string deletedAt: string | null // relationships contact?: Contact department?: Department user?: User | null } export type ScheduleRelationships = 'contact' | 'department' | 'user' export type CreateSchedulePayload = { scheduledAt: string contactId: string departmentId: string message: string notes: string openTicket: boolean notificateUser?: boolean userId?: string hsmId?: string hsmFileId?: string extraOptions?: Record } export type UpdateSchedulePayload = { scheduledAt?: string contactId?: string departmentId?: string userId?: string | null message?: string notes?: string openTicket?: boolean notificateUser?: boolean hsmId?: string | null hsmFileId?: string | null extraOptions?: Record | null }