mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 12:27:48 +00:00
26 KiB
26 KiB
GetTopicResponseBody
specific posts
Example Usage
import { GetTopicResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
let value: GetTopicResponseBody = {
actionsSummary: [
{
canAct: false,
count: 726878,
hidden: false,
id: 102413,
},
],
archetype: "<value>",
archived: false,
bookmarked: false,
bookmarks: ["<value>"],
categoryId: 975425,
chunkSize: 156383,
closed: false,
createdAt: "<value>",
deletedAt: "<value>",
deletedBy: "<value>",
details: {
canArchiveTopic: false,
canCloseTopic: false,
canConvertTopic: false,
canCreatePost: false,
canDelete: false,
canEdit: false,
canEditStaffNotes: false,
canModerateCategory: false,
canMovePosts: false,
canPinUnpinTopic: false,
canRemoveAllowedUsers: false,
canRemoveSelfId: 782090,
canReplyAsNewTopic: false,
canReviewTopic: false,
canSplitMergeTopic: false,
canToggleTopicVisibility: false,
createdBy: {
avatarTemplate: "<value>",
id: 304198,
name: "<value>",
username: "Delia42",
},
lastPoster: {
avatarTemplate: "<value>",
id: 406922,
name: "<value>",
username: "Berenice.Thiel",
},
notificationLevel: 246557,
},
draft: "<value>",
draftKey: "<value>",
draftSequence: 284086,
fancyTitle: "<value>",
featuredLink: "<value>",
hasDeleted: false,
hasSummary: false,
highestPostNumber: 596433,
id: 935302,
imageUrl: "<value>",
lastPostedAt: "<value>",
likeCount: 117525,
messageBusLastId: 772266,
participantCount: 975884,
pinned: false,
pinnedAt: "<value>",
pinnedGlobally: false,
pinnedUntil: "<value>",
postStream: {
posts: [
{
actionsSummary: [
{
canAct: false,
id: 610987,
},
],
admin: false,
avatarTemplate: "<value>",
bookmarked: false,
canDelete: false,
canEdit: false,
canRecover: false,
canViewEditHistory: false,
canWiki: false,
cooked: "<value>",
createdAt: "<value>",
deletedAt: "<value>",
displayUsername: "<value>",
editReason: "<value>",
flairBgColor: "<value>",
flairColor: "<value>",
flairName: "<value>",
flairUrl: "<value>",
hidden: false,
id: 932562,
incomingLinkCount: 2677,
linkCounts: [
{
clicks: 391797,
internal: false,
reflection: false,
title: "<value>",
url: "https://esteemed-poet.biz",
},
],
moderator: false,
name: "<value>",
postNumber: 224467,
postType: 483394,
primaryGroupName: "<value>",
quoteCount: 24753,
read: false,
readersCount: 39992,
reads: 7468,
replyCount: 639705,
replyToPostNumber: "<value>",
reviewableId: 927403,
reviewableScoreCount: 408303,
reviewableScorePendingCount: 693153,
score: 377406,
staff: false,
topicId: 705148,
topicSlug: "<value>",
trustLevel: 809365,
updatedAt: "<value>",
userDeleted: false,
userId: 596065,
userTitle: "<value>",
username: "Melvin.Lind35",
version: 600193,
wiki: false,
yours: false,
},
],
stream: ["<value>"],
},
postsCount: 897543,
replyCount: 654082,
showReadIndicator: false,
slowModeEnabledUntil: "<value>",
slowModeSeconds: 769967,
slug: "<value>",
suggestedTopics: [
{
archetype: "<value>",
archived: false,
bookmarked: "<value>",
bumped: false,
bumpedAt: "<value>",
categoryId: 373040,
closed: false,
createdAt: "<value>",
excerpt: "<value>",
fancyTitle: "<value>",
featuredLink: "<value>",
highestPostNumber: 357425,
id: 668234,
imageUrl: "<value>",
lastPostedAt: "<value>",
likeCount: 621666,
liked: "<value>",
pinned: false,
posters: [
{
description: "Multi-channelled discrete architecture",
extras: "<value>",
user: {
avatarTemplate: "<value>",
id: 874400,
name: "<value>",
username: "Daron21",
},
},
],
postsCount: 322017,
replyCount: 183033,
slug: "<value>",
tags: ["<value>"],
tagsDescriptions: {},
title: "<value>",
unpinned: "<value>",
unseen: false,
views: 611328,
visible: false,
},
],
summarizable: false,
tags: ["<value>"],
tagsDescriptions: {},
thumbnails: "<value>",
timelineLookup: ["<value>"],
title: "<value>",
topicTimer: "<value>",
unpinned: "<value>",
userId: 403026,
views: 367626,
visible: false,
wordCount: 745233,
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
actionsSummary |
operations.GetTopicActionsSummary[] | ✔️ | N/A |
archetype |
string | ✔️ | N/A |
archived |
boolean | ✔️ | N/A |
bookmarked |
boolean | ✔️ | N/A |
bookmarks |
any[] | ✔️ | N/A |
categoryId |
number | ✔️ | N/A |
chunkSize |
number | ✔️ | N/A |
closed |
boolean | ✔️ | N/A |
createdAt |
string | ✔️ | N/A |
currentPostNumber |
number | ➖ | N/A |
deletedAt |
string | ✔️ | N/A |
deletedBy |
string | ✔️ | N/A |
details |
operations.Details | ✔️ | N/A |
draft |
string | ✔️ | N/A |
draftKey |
string | ✔️ | N/A |
draftSequence |
number | ✔️ | N/A |
fancyTitle |
string | ✔️ | N/A |
featuredLink |
string | ✔️ | N/A |
hasDeleted |
boolean | ✔️ | N/A |
hasSummary |
boolean | ✔️ | N/A |
highestPostNumber |
number | ✔️ | N/A |
id |
number | ✔️ | N/A |
imageUrl |
string | ✔️ | N/A |
lastPostedAt |
string | ✔️ | N/A |
likeCount |
number | ✔️ | N/A |
messageBusLastId |
number | ✔️ | N/A |
participantCount |
number | ✔️ | N/A |
pinned |
boolean | ✔️ | N/A |
pinnedAt |
string | ✔️ | N/A |
pinnedGlobally |
boolean | ✔️ | N/A |
pinnedUntil |
string | ✔️ | N/A |
postStream |
operations.PostStream | ✔️ | N/A |
postsCount |
number | ✔️ | N/A |
replyCount |
number | ✔️ | N/A |
showReadIndicator |
boolean | ✔️ | N/A |
slowModeEnabledUntil |
string | ✔️ | N/A |
slowModeSeconds |
number | ✔️ | N/A |
slug |
string | ✔️ | N/A |
suggestedTopics |
operations.SuggestedTopics[] | ✔️ | N/A |
summarizable |
boolean | ✔️ | N/A |
tags |
any[] | ✔️ | N/A |
tagsDescriptions |
operations.TagsDescriptions | ✔️ | N/A |
thumbnails |
string | ✔️ | N/A |
timelineLookup |
any[] | ✔️ | N/A |
title |
string | ✔️ | N/A |
topicTimer |
string | ✔️ | N/A |
unpinned |
string | ✔️ | N/A |
userId |
number | ✔️ | N/A |
views |
number | ✔️ | N/A |
visible |
boolean | ✔️ | N/A |
wordCount |
number | ✔️ | N/A |