126 lines
3.7 KiB
TypeScript
126 lines
3.7 KiB
TypeScript
export const QUERY_KEYS = {
|
|
// Auth
|
|
ADMIN_LOGIN: "admin_login",
|
|
|
|
// Draft Details
|
|
GET_DISCOUNT_DETAIL: "get_discount_detail",
|
|
GET_DRAFT_DETAIL: "get_draft_detail",
|
|
|
|
// Admin Users
|
|
GET_ADMIN_USERS: "get_admin_users",
|
|
GET_ADMIN_USER: "get_admin_user",
|
|
CREATE_ADMIN_USER: "create_admin_user",
|
|
UPDATE_ADMIN_USER: "update_admin_user",
|
|
DELETE_ADMIN_USER: "delete_admin_user",
|
|
|
|
// Roles
|
|
GET_ROLES: "get_roles",
|
|
GET_ROLE: "get_role",
|
|
CREATE_ROLE: "create_role",
|
|
UPDATE_ROLE: "update_role",
|
|
DELETE_ROLE: "delete_role",
|
|
GET_ROLE_PERMISSIONS: "get_role_permissions",
|
|
ASSIGN_ROLE_PERMISSION: "assign_role_permission",
|
|
REMOVE_ROLE_PERMISSION: "remove_role_permission",
|
|
|
|
// Permissions
|
|
GET_PERMISSIONS: "get_permissions",
|
|
GET_PERMISSION: "get_permission",
|
|
CREATE_PERMISSION: "create_permission",
|
|
UPDATE_PERMISSION: "update_permission",
|
|
DELETE_PERMISSION: "delete_permission",
|
|
|
|
// Product Options
|
|
GET_PRODUCT_OPTIONS: "get_product_options",
|
|
GET_PRODUCT_OPTION: "get_product_option",
|
|
CREATE_PRODUCT_OPTION: "create_product_option",
|
|
UPDATE_PRODUCT_OPTION: "update_product_option",
|
|
DELETE_PRODUCT_OPTION: "delete_product_option",
|
|
|
|
// Categories
|
|
GET_CATEGORIES: "get_categories",
|
|
GET_CATEGORY: "get_category",
|
|
SEARCH_CATEGORIES: "search_categories",
|
|
CREATE_CATEGORY: "create_category",
|
|
UPDATE_CATEGORY: "update_category",
|
|
DELETE_CATEGORY: "delete_category",
|
|
|
|
// Products
|
|
GET_PRODUCTS: "get_products",
|
|
GET_PRODUCT: "get_product",
|
|
SEARCH_PRODUCTS: "search_products",
|
|
CREATE_PRODUCT: "create_product",
|
|
UPDATE_PRODUCT: "update_product",
|
|
DELETE_PRODUCT: "delete_product",
|
|
GET_PRODUCT_VARIANTS: "get_product_variants",
|
|
CREATE_PRODUCT_VARIANT: "create_product_variant",
|
|
UPDATE_PRODUCT_VARIANT: "update_product_variant",
|
|
DELETE_PRODUCT_VARIANT: "delete_product_variant",
|
|
|
|
// Files
|
|
GET_FILES: "get_files",
|
|
UPLOAD_FILE: "upload_file",
|
|
GET_FILE: "get_file",
|
|
UPDATE_FILE: "update_file",
|
|
DELETE_FILE: "delete_file",
|
|
|
|
// Images
|
|
GET_IMAGES: "get_images",
|
|
CREATE_IMAGE: "create_image",
|
|
UPDATE_IMAGE: "update_image",
|
|
DELETE_IMAGE: "delete_image",
|
|
|
|
// Landing Hero
|
|
GET_LANDING_HERO: "get_landing_hero",
|
|
UPDATE_LANDING_HERO: "update_landing_hero",
|
|
|
|
// Discount Codes
|
|
GET_DISCOUNT_CODES: "get_discount_codes",
|
|
GET_DISCOUNT_CODE: "get_discount_code",
|
|
CREATE_DISCOUNT_CODE: "create_discount_code",
|
|
UPDATE_DISCOUNT_CODE: "update_discount_code",
|
|
DELETE_DISCOUNT_CODE: "delete_discount_code",
|
|
|
|
// Orders
|
|
GET_ORDERS: "get_orders",
|
|
GET_ORDER: "get_order",
|
|
UPDATE_ORDER_STATUS: "update_order_status",
|
|
|
|
// Shipping Methods
|
|
GET_SHIPPING_METHODS: "get_shipping_methods",
|
|
GET_SHIPPING_METHOD: "get_shipping_method",
|
|
CREATE_SHIPPING_METHOD: "create_shipping_method",
|
|
UPDATE_SHIPPING_METHOD: "update_shipping_method",
|
|
DELETE_SHIPPING_METHOD: "delete_shipping_method",
|
|
|
|
// User Admin
|
|
GET_USERS: "get_users",
|
|
GET_USER: "get_user",
|
|
SEARCH_USERS: "search_users",
|
|
CREATE_USER: "create_user",
|
|
UPDATE_USER: "update_user",
|
|
UPDATE_USER_PROFILE: "update_user_profile",
|
|
UPDATE_USER_AVATAR: "update_user_avatar",
|
|
DELETE_USER: "delete_user",
|
|
VERIFY_USER: "verify_user",
|
|
UNVERIFY_USER: "unverify_user",
|
|
USER_STATS: "user_stats",
|
|
GET_TICKETS: "get_tickets",
|
|
GET_TICKET: "get_ticket_details",
|
|
GET_TICKET_DEPARTMENTS: "get_ticket_departments",
|
|
GET_TICKET_STATUSES: "get_ticket_statuses",
|
|
GET_TICKET_SUBJECTS: "get_ticket_subjects",
|
|
|
|
// Payment IPG
|
|
GET_IPG_STATUS: "get_ipg_status",
|
|
UPDATE_IPG_STATUS: "update_ipg_status",
|
|
|
|
// Payment Card
|
|
GET_PAYMENT_CARD: "get_payment_card",
|
|
UPDATE_PAYMENT_CARD: "update_payment_card",
|
|
|
|
// Wallet
|
|
GET_WALLET_STATUS: "get_wallet_status",
|
|
UPDATE_WALLET_STATUS: "update_wallet_status",
|
|
};
|