import { type ListFrontEndInterface } from '../CommonType'

export interface CHFillingHistoryListDataTypeInterface
    extends CHFillingHistoryFormDataInterface {
    key: React.Key
}

export interface CHFillingHistoryListInterface {
    CHFillingHistoryList: CHFillingHistoryListDataTypeInterface[]
    CHFillingHistoryListCount: number
    fillingTypeList: ListFrontEndInterface[]
}

export interface CHFillingHistoryFormDataInterface {
    submissionId: number
    submissionNumber: string
    submissionDate: string
    submissionType: string
    companyHouseStatus: string
    companyName: string
    companyRegNumber: string
    rejectedComments: string // `null` treated as `string`
    submittedBy: string
    rejections: string // `null` treated as `str
}

export interface CHFillingHistoryPayloadInterface {
    data: CHFillingHistoryFormDataInterface[]
    noOfRecords: number
}
export interface CHFillingHistoryExpandViewInterface {
    expandData: string
}
