import type { Department } from '../departments/types' import type { Role } from '../roles/types' export type Distribution = { id: string name: string maxNum: number timeToRedistribute: number redistributeAll: boolean redistributeAssignedTickets: boolean distributeQueue: boolean accountId: string archivedAt: string | null deletedAt: string | null createdAt: string updatedAt: string // relationships departments?: Department[] roles?: Role[] } export type DistributionRelationships = 'departments' | 'roles' export type CreateDistributionPayload = { name: string maxNum: number redistributeAll: boolean timeToRedistribute?: number redistributeAssignedTickets?: boolean distributeQueue?: boolean } export type UpdateDistributionPayload = { name?: string maxNum?: number redistributeAll?: boolean timeToRedistribute?: number redistributeAssignedTickets?: boolean distributeQueue?: boolean }