import type { ListFrontEndInterface } from './CommonType'

export interface WorkflowListInterface {
    workflowList: WorkflowListDataTypeInterface[]
    workflowListCount: number
}

export interface WorkflowListDataTypeInterface
    extends WorkflowFormDataInterface {
    key: React.Key
}

export interface WorkflowFormDataInterface {
    clientCategoryName: string
    clientCategoryId: number
    departmentName: string
    departmentId: number
    workflowFor: number
    workflowForName: string
    activeStatus: string
    workflowName: string
    workflowId: string
}

export interface WorkflowPayloadInterface {
    data: WorkflowFormDataInterface[]
    noOfRecords: number
}

export interface WorkflowDetailsDataPayloadInterface {
    data: WorkflowFormDataInterface
}

export interface WorkflowFormStateInterface {
    workflowTypeDropDownList: ListFrontEndInterface[]
    categoryDropDownList: ListFrontEndInterface[]
    departmentDropDownList: ListFrontEndInterface[]
}

export interface WorkflowFormInterface extends WorkflowFormStateInterface {
    onSave: (
        data: WorkflowFormDataInterface,
        callBack: CallableFunction
    ) => void
    editData: WorkflowFormDataInterface
    isLoadingModal: boolean
}
