101 lines
2.3 KiB
TypeScript
101 lines
2.3 KiB
TypeScript
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",
|
|
},
|
|
product: {
|
|
comments: "/products/comments",
|
|
create_comment: "/products/comments",
|
|
get: "/products",
|
|
},
|
|
auth: {
|
|
refresh: "/token/refresh",
|
|
verify: "/accounts/verify",
|
|
signin: "/token",
|
|
logout: "/accounts/logout",
|
|
},
|
|
chat: {
|
|
messages: "/chat/product",
|
|
new_message: "/chat/product",
|
|
},
|
|
products: {
|
|
get_all: "/products",
|
|
categories: "/products/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",
|
|
},
|
|
orders: {
|
|
get_all: "/order/all",
|
|
cart: {
|
|
get_all: "/order/cart",
|
|
delete_one: "/order/cart/item",
|
|
delete_all: "/order/cart/all",
|
|
add_one: "/order/cart/item",
|
|
add_discount: "/order/cart/discount",
|
|
},
|
|
},
|
|
};
|
|
|
|
export const QUERY_KEYS = {
|
|
articles: "articles",
|
|
article: "article",
|
|
comments: "comments",
|
|
home: "home",
|
|
chat: "chat",
|
|
product: "product",
|
|
products: "products",
|
|
account: "account",
|
|
categories: "categories",
|
|
addresses: "addresses",
|
|
tickets: "tickets",
|
|
ticket: "ticket",
|
|
orders: "orders",
|
|
cart: "cart",
|
|
};
|
|
|
|
export const MUTATION_KEYS = {
|
|
create_chat: "create_chat",
|
|
};
|
|
|
|
export const PRODUCT_RANGE = {
|
|
min: 0,
|
|
max: 100_000_000,
|
|
};
|
|
|
|
export const NAV_LINKS = [
|
|
{
|
|
title: "خانه",
|
|
path: "/",
|
|
},
|
|
{
|
|
title: "محصولات",
|
|
path: "/products",
|
|
},
|
|
{
|
|
title: "دسته بندی ها",
|
|
path: "/category",
|
|
},
|
|
{
|
|
title: "ارتباط با ما",
|
|
path: "/contact-us",
|
|
},
|
|
];
|