UNPKG

nexus-react-core

Version:

A comprehensive React toolkit with services, hooks, and Redux store management

71 lines 1.46 kB
export interface ApiResponse<T = any> { success: boolean; data?: T; message?: string; error?: string; } export interface User { _id: string; name: string; email: string; image?: string; rank?: string; swipes?: number; point?: number; dgn?: number; walletAddress?: string; role?: string; } export interface Mission { _id?: string; title: string; desc: string; preSwipeDescription?: string; postSwipeDescription?: string; points: number; time: string; isNew?: boolean; images?: string[]; platform?: string; itemsCount?: number; completion?: number; type?: string; } export interface Achievement { _id: string; name: string; description: string; icon?: string; points: number; unlocked: boolean; unlockedAt?: Date; progress?: number; } export interface PaginationParams { page?: number; limit?: number; sort?: string; order?: "asc" | "desc"; } export interface PaginatedResponse<T> { data: T[]; pagination: { page: number; limit: number; total: number; pages: number; }; } export interface DGNConfig { apiBaseUrl: string; wsUrl?: string; csrfEnabled?: boolean; } export interface DGNError extends Error { code?: string; status?: number; originalError?: any; requestInfo?: any; responseInfo?: any; } //# sourceMappingURL=common.d.ts.map