|
| 1 | + |
| 2 | + |
| 3 | +/** |
| 4 | + * @see https://developers.forem.com/api/v0#tag/users/operation/getUser |
| 5 | + * @typedef {Object} DevToUser |
| 6 | + * @property {string} type_of - The type of the object, in this case "user". |
| 7 | + * @property {number} id - The unique identifier of the user. |
| 8 | + * @property {string} username - The username of the user. |
| 9 | + * @property {string} name - The name of the user. |
| 10 | + * @property {string} summary - A brief summary or bio of the user. |
| 11 | + * @property {string} twitter_username - The user's Twitter username. |
| 12 | + * @property {string} github_username - The user's GitHub username. |
| 13 | + * @property {?string} website_url - The user's personal website URL or null if not provided. |
| 14 | + * @property {string} location - The user's location. |
| 15 | + * @property {string} joined_at - The date the user joined, formatted as a string. |
| 16 | + * @property {string} profile_image - The URL to the user's profile image. |
| 17 | + */ |
| 18 | + |
| 19 | +/** |
| 20 | + * @see https://developers.forem.com/api/v1#tag/articles/operation/getArticles |
| 21 | + * @typedef {Object} DevToArticle |
| 22 | + * @property {string} type_of - The type of the object, in this case "article". |
| 23 | + * @property {number} id - The unique identifier of the article. |
| 24 | + * @property {string} title - The title of the article. |
| 25 | + * @property {string} description - A brief description of the article. |
| 26 | + * @property {string} readable_publish_date - The human-readable publish date. |
| 27 | + * @property {string} slug - The article's slug. |
| 28 | + * @property {string} path - The relative path to the article. |
| 29 | + * @property {string} url - The full URL to the article. |
| 30 | + * @property {number} comments_count - The number of comments on the article. |
| 31 | + * @property {number} public_reactions_count - The number of public reactions to the article. |
| 32 | + * @property {?number} collection_id - The collection ID if the article belongs to a collection. |
| 33 | + * @property {string} published_timestamp - The timestamp when the article was published. |
| 34 | + * @property {number} positive_reactions_count - The number of positive reactions to the article. |
| 35 | + * @property {string} cover_image - The URL to the article's cover image. |
| 36 | + * @property {string} social_image - The URL to the article's social image. |
| 37 | + * @property {string} canonical_url - The canonical URL of the article. |
| 38 | + * @property {string} created_at - The timestamp when the article was created. |
| 39 | + * @property {?string} edited_at - The timestamp when the article was last edited. |
| 40 | + * @property {?string} crossposted_at - The timestamp when the article was crossposted. |
| 41 | + * @property {string} published_at - The timestamp when the article was published. |
| 42 | + * @property {string} last_comment_at - The timestamp of the last comment on the article. |
| 43 | + * @property {number} reading_time_minutes - The estimated reading time in minutes. |
| 44 | + * @property {Array<string>} tag_list - List of tags associated with the article. |
| 45 | + * @property {string} tags - Comma-separated string of tags. |
| 46 | + * @property {DevToUser} user - The user who wrote the article. |
| 47 | + * @property {DevToOrganization} organization - The organization associated with the article. |
| 48 | + * @property {DevToFlareTag} flare_tag - The flare tag associated with the article. |
| 49 | + */ |
| 50 | + |
| 51 | +/** |
| 52 | + * @typedef {Object} DevToOrganization |
| 53 | + * @property {string} name - The name of the organization. |
| 54 | + * @property {string} username - The username of the organization. |
| 55 | + * @property {string} slug - The slug of the organization. |
| 56 | + * @property {string} profile_image - The URL to the organization's profile image. |
| 57 | + * @property {string} profile_image_90 - The URL to the 90x90 version of the organization's profile image. |
| 58 | + */ |
| 59 | + |
| 60 | +/** |
| 61 | + * @typedef {Object} DevToFlareTag |
| 62 | + * @property {string} name - The name of the flare tag. |
| 63 | + * @property {string} bg_color_hex - The background color of the flare tag in HEX format. |
| 64 | + * @property {string} text_color_hex - The text color of the flare tag in HEX format. |
| 65 | + */ |
| 66 | + |
| 67 | + |
0 commit comments