import type { TablePaginationConfig } from 'antd/es/table'
import { type createCategoryParentInterface } from './CreateCategory'

export interface TableParamsInterface {
    pagination?: TablePaginationConfig
    sorter: SorterInterface
    filter: FilterInterface
}

export interface SorterInterface {
    field: string
    order: string
}

export interface FilterInterface {
    fieldName: string
    searchOperator: number
    fieldValue1: string
    fieldValue2: string
}

export interface ListBackendInterface {
    stdId: number
    stdName: string
}

export interface ListFrontEndInterface {
    id: number
    value: number
    label: string
}

export interface TableListInterface {
    pageNo?: number
    pageSize?: number
    searchCriteriaList: object[]
    sortOrderList: object[]
}

export interface LoadingStatus {
    status: boolean
}

export interface SuccessStatus {
    status: boolean
}

export interface MainLayoutProps {
    isLogin: boolean
    isAuthenticate: boolean
    isLoading: boolean
    fixedMenus: number
    fixedSize: number
}

export interface sideLayoutProps {
    fixedMenus: number
    clientParentCategory: createCategoryParentInterface[]
}

export interface SignableDocsave {
    businessTypeId: number
    referenceId: number
    appConnectId: number
    pdfUrl: string
    title: string
    fileName: string
    serviceProcessId: number
}

export interface ListNationalityBackendInterface {
    stdId: string
    stdName: string
}

export interface ListNationalityFrontEndInterface {
    id: number
    value: string
    label: string
}
