mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 12:27:48 +00:00
23 KiB
23 KiB
UpdatePostPost
Example Usage
import { UpdatePostPost } from "@lukehagar/discoursejs/sdk/models/operations";
let value: UpdatePostPost = {
actionsSummary: [
{
canAct: false,
id: 737279,
},
],
admin: false,
avatarTemplate: "<value>",
bookmarked: false,
canDelete: false,
canEdit: false,
canRecover: false,
canViewEditHistory: false,
canWiki: false,
cooked: "<value>",
createdAt: "<value>",
deletedAt: "<value>",
draftSequence: 872303,
editReason: "<value>",
flairBgColor: "<value>",
flairColor: "<value>",
flairName: "<value>",
flairUrl: "<value>",
hidden: false,
id: 5152,
incomingLinkCount: 156653,
moderator: false,
postNumber: 694158,
postType: 684126,
primaryGroupName: "<value>",
quoteCount: 919508,
raw: "<value>",
readersCount: 34070,
reads: 710456,
replyCount: 885208,
replyToPostNumber: "<value>",
reviewableId: "<value>",
reviewableScoreCount: 177005,
reviewableScorePendingCount: 844854,
score: 483518,
staff: false,
topicId: 510128,
topicSlug: "<value>",
trustLevel: 140316,
updatedAt: "<value>",
userDeleted: false,
userId: 127688,
userTitle: "<value>",
username: "Florine.Mraz92",
version: 630871,
wiki: false,
yours: false,
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
actionsSummary |
operations.UpdatePostActionsSummary[] | ✔️ | 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 |