interface DiscourseNodeParameters {
additionalFields?:
| {
category?: string;
reply_to_post_number?: string;
topic_id?: string;
}
| { active?: boolean; approved?: boolean };
by?: "username" | "externalId";
categoryId?: string;
color?: string;
content?: string;
email?: string;
externalId?: string;
flag?:
| "new"
| "blocked"
| "active"
| "staff"
| "suspect"
| "suspended";
groupId?: string;
limit?: number;
name?: string;
operation?: | "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove";
options?: {
asc?: boolean;
order?: | "email"
| "username"
| "created"
| "days_visited"
| "last_emailed"
| "posts"
| "posts_read"
| "read_time"
| "seen"
| "topics_viewed"
| "trust_level";
showEmails?: boolean;
stats?: boolean;
};
password?: string;
postId?: string;
resource?: | "user"
| "group"
| "category"
| "post"
| "userGroup";
returnAll?: boolean;
textColor?: string;
title?: string;
updateFields?: | { color?: string; textColor?: string }
| { cooked?: boolean; edit_reason?: string };
username?: string;
usernames?: string;
}Properties§
§§§§§§§§§§§§§§§§§§§§§
readonly additional Fields?:
| {
category?: string;
reply_to_post_number?: string;
topic_id?: string;
}
| { active?: boolean; approved?: boolean }§
readonly by?: "username" | "externalId"What to search by Default: "username"
readonly category Id?: stringID of the category
readonly color?: stringColor of the category Default: "0000FF"
readonly content?: stringContent of the post
readonly email?: stringEmail of the user to create
readonly external Id?: stringDiscourse SSO external ID
readonly flag?:
| "new"
| "blocked"
| "active"
| "staff"
| "suspect"
| "suspended"User flags to search for
readonly group Id?: stringID of the group to update
readonly limit?: numberMax number of results to return Default: 50 Type options: {"minValue":1,"maxValue":100}
readonly name?: stringName of the category
readonly operation?: "create" | "get" | "getAll" | "update" | "add" | "remove"Choose an operation Default: "create"
readonly options?: { ... }Default: {}
readonly password?: stringThe password of the user to create Type options: {"password":true}
readonly post Id?: stringID of the post
readonly resource?: "user" | "group" | "category" | "post" | "userGroup"Default: "post"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly text Color?: stringText color of the category Default: "0000FF"
readonly title?: stringTitle of the post
readonly update Fields?:
| { color?: string; textColor?: string }
| { cooked?: boolean; edit_reason?: string }Default: {}
readonly username?: stringThe username of the user to create
readonly usernames?: stringUsernames to add to group. Multiples can be defined separated by comma.
Default: {}