import { type ListFrontEndInterface } from './CommonType'

export interface DepartmentListInterface {
    contactdepartmentList: ListFrontEndInterface[]
    contactdepartmentDropDownList: bulkmailFormDataInterface[]
    contactdepartmentDropDownListCount: number
}
export interface DepartmentFormDataInterface {
    clientCategoryName: string
    clientCategoryId: number

    activeStatus: string
}

export interface BulkmailFormStateInterface {
    categoryDropDownList: ListFrontEndInterface[]
    contactdepartmentDropDownList: bulkmailFormDataInterface[]
    contactdepartmentDropDownListCount: number
}

export interface BulkmailListDataTypeInterface
    extends bulkmailFormDataInterface {
    key: React.Key
}
export interface bulkmailFormDataInterface {
    key: React.Key
    contactName: string
    emailAddress: string
    businessTypeId: string
    contactNumber: string
    referenceId: string
    serviceId: string
}

export interface BulkEmailPayloadInterface {
    data: bulkmailFormDataInterface[]
    noOfRecords: number
}
export interface bulkmailListInterface {
    contactdepartmentDropDownList: BulkmailListDataTypeInterface[]
    contactdepartmentDropDownListCount: number
}
export interface EmailAttachmentType {
    fileContent: string | null
    fileName: string | null
}
export interface savebulkemial {
    clientCategoryId: number
    statusId: number
    moduleIds: string
    additionalEmail: string
    subject: string
    description: string
    emailAttachment: EmailAttachmentType[] | null
    fromMail: string
    fromName: string
    toMail: string | null
    toClientMailIds: string[] | null
    uniqueCode: string
}
