|
6 | 6 | from linkedapi.types.params import BaseActionParams, LimitParams |
7 | 7 |
|
8 | 8 | PostType = Literal["original", "repost"] |
| 9 | +PostActorType = Literal["person", "company"] |
9 | 10 | ReactionType = Literal["like", "celebrate", "support", "love", "insightful", "funny"] |
10 | 11 | PostCommenterType = Literal["person", "company"] |
11 | 12 | PostEngagerType = Literal["person", "company"] |
@@ -60,14 +61,38 @@ class PostReaction(LinkedApiModel): |
60 | 61 | type: ReactionType | None = None |
61 | 62 |
|
62 | 63 |
|
| 64 | +class PostAuthor(LinkedApiModel): |
| 65 | + type: PostActorType | None = None |
| 66 | + name: str | None = None |
| 67 | + profile_url: str | None = None |
| 68 | + headline: str | None = None |
| 69 | + company_url: str | None = None |
| 70 | + |
| 71 | + |
| 72 | +class PostReposter(LinkedApiModel): |
| 73 | + type: PostActorType | None = None |
| 74 | + name: str | None = None |
| 75 | + profile_url: str | None = None |
| 76 | + headline: str | None = None |
| 77 | + company_url: str | None = None |
| 78 | + |
| 79 | + |
63 | 80 | class Post(LinkedApiModel): |
64 | 81 | url: str | None = None |
65 | 82 | time: str | None = None |
66 | 83 | type: PostType | None = None |
| 84 | + activity_urn: str | None = None |
| 85 | + author: PostAuthor | None = None |
| 86 | + reposter: PostReposter | None = None |
67 | 87 | repost_text: str | None = None |
| 88 | + hashtags: list[str] | None = None |
| 89 | + mentions: list[str] | None = None |
| 90 | + external_links: list[str] | None = None |
68 | 91 | text: str | None = None |
69 | 92 | images: list[str] | None = None |
| 93 | + document_slides: list[str] | None = None |
70 | 94 | has_video: bool | None = None |
| 95 | + video_thumbnail: str | None = None |
71 | 96 | has_poll: bool | None = None |
72 | 97 | reactions_count: int | None = None |
73 | 98 | comments_count: int | None = None |
|
0 commit comments