| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import type { Pagination } from './common.types'
- export interface User {
- id: number
- is_me: boolean
- first_name: string
- last_name: string
- full_name: string
- phone: string
- email: null
- username: string
- province_id: number
- city_id: number
- gender: number
- birth_date: string
- weight: number
- height: number
- foot_specialization: string
- post_skill: string
- skill_level: string
- activity_history: number
- team_name: null
- favorite_iranian_team: string
- favorite_foreign_team: string
- shirt_number: number
- bio: null
- followers_count: number
- following_count: number
- post_count: number
- avatar?: Avatar
- created_at: string
- updated_at: string
- }
- export interface UsersListMeta {
- total?: number
- per_page?: number
- current_page?: number
- last_page?: number
- }
- export interface GetUserResponse {
- success: boolean
- message: string
- data: {
- users: User[]
- pagination: Pagination
- }
- }
- export interface Avatar {
- name: string
- url: string
- hash: string
- type: string
- entity_slug: string
- }
- export interface Post {
- id: number
- user_id: number
- state: string
- caption: string
- video: Avatar
- thumbnail: null
- likes_count: number
- dislikes_count: number
- views_count: number
- comment_count: number
- created_at: string
- updated_at: string
- }
- export interface GetUserDetailResponse {
- success: boolean
- message: string
- data: {
- user: User
- posts: Post[]
- }
- }
- export interface CreateUserPayload {
- phone: string
- first_name: string
- last_name: string
- email?: string
- username: string
- province_id?: number
- city_id?: number
- gender: number
- birth_date: string | undefined
- weight?: number
- height?: number
- foot_specialization?: string
- post_skill?: string
- skill_level?: string
- activity_history?: boolean | number
- team_name?: string
- favorite_iranian_team?: string
- favorite_foreign_team?: string
- shirt_number?: number
- bio?: string
- }
|