import { Address } from "nodemailer/lib/mailer";
export interface MailInterface {
  from: string | Address | undefined;
  to: string | string[];
  subject: string;
  text?: string;
  html: string;
}
import { Request } from "express";
export const messages: {
    [name: string]: string;
} = {
    loginMsg: "User login successful",
    createUser: "User created successfully",
    errorMsg: "Something went wrong",
    UserMsg: "User data retrieved successfully.",
    deleteUser: "Deleted successfully.",
    userNotFound: "User not found.",
    updateMsg: "Updated successfully.",
    getUser: "User data retrieved successfully",
    getUserByEmail: "User not found. Please check your email.",
    wrongPassword: "Invalid password. Please try again.",
    emailExists: "Email already exists. Please choose a different email.",
    invest: "Invest successful.",
    insufficientFunds: "Insufficient Funds",
    salespersonsMsg: "Sale persons retrieved successfully.",
    transaction: "Transaction data retrieved successfully.",
    sendOtp: "OTP send your mail please check",
    invalidOtp: "Invalid OTP. Please try again",
    otpVerify: "OTP verified successfully",
    changePassword: "Password chaneg successfully",
    withdrawSuccess: "withdraw request send successfully",
    createSalesPersons: "Sale person created successfully",
    viewData: "View data successfully",
    notificationRegisterMessage: "New user registered",
    notificationWithdrawMessage: "You have successfully submitted a withdrawal request of $",
    notificationDepositMessage: "Your deposit amount is: $",
};

interface User {
    id: string;
    name: string;
    email: string;
    // Add other properties as needed
}

// Define a new interface that extends Request and includes the 'user' property
export interface AuthenticatedRequest extends Request {
    user?: Partial<User>; // Use Partial<User> to make all properties optional
}


