mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 04:19:37 +00:00
26 KiB
26 KiB
CreateTopicPostPMResponseBody
post created
Example Usage
import { CreateTopicPostPMResponseBody } from "@lukehagar/discoursejs/sdk/models/operations";
let value: CreateTopicPostPMResponseBody = {
actionsSummary: [
{
canAct: false,
id: 884952,
},
],
admin: false,
avatarTemplate: "<value>",
bookmarked: false,
canDelete: false,
canEdit: false,
canRecover: false,
canViewEditHistory: false,
canWiki: false,
cooked: "<value>",
createdAt: "<value>",
deletedAt: "<value>",
displayUsername: "<value>",
draftSequence: 456410,
editReason: "<value>",
flairBgColor: "<value>",
flairColor: "<value>",
flairName: "<value>",
flairUrl: "<value>",
hidden: false,
id: 897277,
incomingLinkCount: 153369,
moderator: false,
name: "<value>",
postNumber: 332191,
postType: 199596,
primaryGroupName: "<value>",
quoteCount: 712927,
readersCount: 432984,
reads: 426943,
replyCount: 528234,
replyToPostNumber: "<value>",
reviewableId: "<value>",
reviewableScoreCount: 301692,
reviewableScorePendingCount: 349440,
score: 70410,
staff: false,
topicId: 781480,
topicSlug: "<value>",
trustLevel: 421844,
updatedAt: "<value>",
userDeleted: false,
userId: 751022,
userTitle: "<value>",
username: "Gilberto2",
version: 350207,
wiki: false,
yours: false,
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
actionsSummary |
operations.CreateTopicPostPMActionsSummary[] | ✔️ | N/A |
admin |
boolean | ✔️ | N/A |
avatarTemplate |
string | ✔️ | N/A |
bookmarked |
boolean | ✔️ | N/A |
canDelete |
boolean | ✔️ | N/A |
canEdit |
boolean | ✔️ | N/A |
canRecover |
boolean | ✔️ | N/A |
canSeeHiddenPost |
boolean | ➖ | N/A |
canViewEditHistory |
boolean | ✔️ | N/A |
canWiki |
boolean | ✔️ | N/A |
cooked |
string | ✔️ | N/A |
createdAt |
string | ✔️ | N/A |
deletedAt |
string | ✔️ | N/A |
displayUsername |
string | ✔️ | N/A |
draftSequence |
number | ✔️ | N/A |
editReason |
string | ✔️ | N/A |
flairBgColor |
string | ✔️ | N/A |
flairColor |
string | ✔️ | N/A |
flairGroupId |
string | ➖ | N/A |
flairName |
string | ✔️ | N/A |
flairUrl |
string | ✔️ | N/A |
hidden |
boolean | ✔️ | N/A |
id |
number | ✔️ | N/A |
incomingLinkCount |
number | ✔️ | N/A |
mentionedUsers |
any[] | ➖ | N/A |
moderator |
boolean | ✔️ | N/A |
name |
string | ✔️ | N/A |
postNumber |
number | ✔️ | N/A |
postType |
number | ✔️ | N/A |
primaryGroupName |
string | ✔️ | N/A |
quoteCount |
number | ✔️ | N/A |
raw |
string | ➖ | N/A |
readersCount |
number | ✔️ | N/A |
reads |
number | ✔️ | N/A |
replyCount |
number | ✔️ | N/A |
replyToPostNumber |
string | ✔️ | N/A |
reviewableId |
string | ✔️ | N/A |
reviewableScoreCount |
number | ✔️ | N/A |
reviewableScorePendingCount |
number | ✔️ | N/A |
score |
number | ✔️ | N/A |
staff |
boolean | ✔️ | N/A |
topicId |
number | ✔️ | N/A |
topicSlug |
string | ✔️ | N/A |
trustLevel |
number | ✔️ | N/A |
updatedAt |
string | ✔️ | N/A |
userDeleted |
boolean | ✔️ | N/A |
userId |
number | ✔️ | N/A |
userTitle |
string | ✔️ | N/A |
username |
string | ✔️ | N/A |
version |
number | ✔️ | N/A |
wiki |
boolean | ✔️ | N/A |
yours |
boolean | ✔️ | N/A |