| 1 |
export const USERS_ENDPOINT = '/wp/v2/users' |
| 2 |
|
| 3 |
export interface User { |
| 4 |
readonly id: number |
| 5 |
username?: string |
| 6 |
name: string |
| 7 |
first_name?: string |
| 8 |
last_name?: string |
| 9 |
email?: string |
| 10 |
url: string |
| 11 |
description: string |
| 12 |
readonly link: string |
| 13 |
locale?: string |
| 14 |
nickname?: string |
| 15 |
slug: string |
| 16 |
registered_date?: string |
| 17 |
roles?: string[] |
| 18 |
readonly capabilities?: Record<string, boolean> |
| 19 |
readonly extra_capabilities?: Record<string, boolean> |
| 20 |
readonly avatar_urls: Record<string, string> |
| 21 |
meta: Record<string, unknown> |
| 22 |
} |
| 23 |
|
| 24 |
export type Users = User[] |
| 25 |
|