41 lines
813 B
TypeScript
41 lines
813 B
TypeScript
export const API_ENDPOINTS = {
|
|
account: {
|
|
profile: "/accounts/profile",
|
|
send_otp: "/accounts/send_otp",
|
|
},
|
|
product: {
|
|
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",
|
|
},
|
|
};
|
|
|
|
export const QUERY_KEYS = {
|
|
chat: "chat",
|
|
product: "product",
|
|
products: "products",
|
|
account: "account",
|
|
categories: "categories",
|
|
};
|
|
|
|
export const MUTATION_KEYS = {
|
|
create_chat: "create_chat",
|
|
};
|
|
|
|
export const PRODUCT_RANGE = {
|
|
min: 0,
|
|
max: 100_000_000,
|
|
};
|