import { type ListFrontEndInterface } from './CommonType'

export interface changePassword {
    userId: number
    newPassword: string
}

export interface changePin {
    userId: number
    newPIN: string
}

export interface updateProfile {
    userId: number
    dateOfBrith: string
    addressOne: string
    addressTwo: string
    town: string
    country: string
    postCode: string
    userName: string
    imageurl: string
    contactNo: string
}

export interface ProfileHolidaytableList extends ProfileHolidayData {
    key: React.Key
}

export interface ProfileHolidayData {
    companyHolidayId: number
    holidayName: string
    date: string
    description: string
    activeStatus: string
    countryId: number
    countryName: string
}

export interface ProfileHolidayPayloadInteface {
    data: ProfileHolidayData[]
    noOfRecords: number
}

export interface ListofHistoryPayloadInteerface {
    userHolidayList: ProfileHolidayData[]
    userHolidayListCount: number
}

export interface UserData {
    userId: number
    firstName: string
    middleName: string
    surName: string
    dateOfBirth: string
    addressOne: string
    addressTwo: string
    town: string
    country: string
    postCode: string
    userName: string
    imageurl: string
    emailAddress: string
    contactNo: string
    managerName: string
    workingStatus: string
    userGroupName: string
    clientCategoryName: string
    departmentName: string
    designationName: string
    no: string
    createdDate: string
    createdUser: string
    lastUpdateDate: string
    lastUpdateUser: string
    deletedDate: string
    deletedUser: string
}

export interface ProfileManageFormDataStateInterface {
    countryList: ListFrontEndInterface[]
}

export interface ManageProfileFormData
    extends ProfileManageFormDataStateInterface {
    onSave: (data: updateProfile, callBack: CallableFunction) => void
    editData: UserData
}
