export const API_ENDPOINTS = {
    home: "/home",
    blog: {
        articles: "/blogs/all",
        article: "/blogs",
    },
    account: {
        profile: "/accounts/profile",
        send_otp: "/accounts/send_otp",
        address: {
            create: "/accounts/address/create",
            update: "/accounts/address/edit",
            get_all: "/accounts/address/list",
            delete: "/accounts/address/delete",
        },
        update: "/accounts/profile",
        subscribe: "/accounts/subscribe",
        notifications: {
            get_all: "/accounts/notification/all",
        },
    },
    product: {
        comments: "/products/comments",
        create_comment: "/products/comments",
        get: "/products",
        save: "/accounts/favorites/toggle",
    },
    auth: {
        refresh: "/token/refresh",
        verify: "/accounts/verify",
        signin: "/token",
        signout: "/accounts/logout",
    },
    chat: {
        messages: "/chat/product",
        new_message: "/chat/product",
    },
    products: {
        get_all: "/products",
        categories: "/products/categories/v2",
        saved: "/accounts/favorites",
    },
    resellers_products: {
        get_all: "/products/slider_category",
        categories: "/products/slider_categories",
    },
    tickets: {
        get_all: "/tickets",
        create: "/tickets/create",
        upload_attachment: "/tickets/attachment/create",
        delete_attachment: "/tickets/attachment/delete",
        get_one: "/tickets",
        create_message: "/tickets/message/create",
        contact_us_ticket: "/tickets/contact-us/create",
    },
    orders: {
        get_all: "/order/all",
        cart: {
            download_invoice: "/order/invoice",
            get_all: "/order/cart",
            delete_one: "/order/cart/item",
            delete_all: "/order/cart/all",
            add_one: "/order/cart/item",
            add_discount: "/order/cart/discount",
            delete_discount: "/order/cart/discount",
            add_special_discount: "/order/cart/special-discount",
            delete_special_discount: "/order/cart/special-discount",
        },
        delivery: {
            set_address: "/order/cart/set-address",
        },
        checkout: {
            payment: "/order/cart/payment",
            transaction: "/order/transaction",
        },
    },
};

export const QUERY_KEYS = {
    articles: "articles",
    article: "article",
    comments: "comments",
    home: "home",
    chat: "chat",
    product: "product",
    products: "products",
    saved_products: "saved-products",
    resellers_products: "resellers_products",
    account: "account",
    categories: "categories",
    resellers_categories: "resellers_categories",
    addresses: "addresses",
    tickets: "tickets",
    ticket: "ticket",
    orders: "orders",
    cart: "cart",
    transaction: "transaction",
    notifications: "notifications",
};

export const MUTATION_KEYS = {
    create_chat: "create_chat",
};

export const PRODUCT_RANGE = {
    min: 0,
    max: 10_000_000_000,
};

export const NAV_LINKS = [
    {
        title: "خانه",
        path: "/",
        icon: "/img/mobile-drawer/home.gif",
    },
    {
        title: "محصولات",
        path: "/products",
        icon: "/img/mobile-drawer/products.gif",
    },
    {
        title: "دسته بندی ها",
        path: "/category",
        icon: "/img/mobile-drawer/category.gif",
    },
    {
        title: "ارتباط با ما",
        path: "/contact-us",
        icon: "/img/mobile-drawer/contact.gif",
    },
];

export const PRODUCTS_SORTS = [
    { title: "جدیدترین ها", value: "newest" },
    { title: "گران ترین ها", value: "price" },
    { title: "ارزان ترین ها", value: "-price" },
];
