Skip to content

Commit

Permalink
add prefs models
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Aug 26, 2024
1 parent 786d22f commit 47b4180
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/utils/types/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,46 @@ export namespace UserData {
*/
followingCount: number
}

/**
* This data is returned from the API by calling the userprefs endpoint.
* @see UserDataDocumentsType
*/
export interface UserPrefsType {
total: number
documents: UserPrefsDocumentsType[]
}

/**
* This data is returned from the API within the `documents` array.
* @see UserPrefsType
*/
export interface UserPrefsDocumentsType extends Models.Document {
/**
* The user ID of the user.
*/
userId: string
/**
* The user's notes.
*/
notes: string
/**
* The user's favorite status.
*/
isFavorited: boolean
/**
* The user's blocked status.
*/
isBlocked: boolean
/**
* The user's muted status.
*/
isMuted: boolean
/**
* The user's nickname.
*/
nickName: string
}
}

export namespace Location {
Expand Down

0 comments on commit 47b4180

Please sign in to comment.