@@ -10987,6 +10987,108 @@ export type AddonModForumPrepareDraftAreaForPostWSResponse = {
1098710987 warnings?: CoreWSExternalWarning[];
1098810988};
1098910989
10990+ /**
10991+ * Params of mod_forum_set_forum_subscription WS.
10992+ *
10993+ * WS Description: Subscribe or unsubscribe the user to a forum.
10994+ */
10995+ type AddonModForumSetForumSubscriptionWSParams = {
10996+ forumid: number; // Forum that the user wants to subscribe or unsubscribe from.
10997+ targetstate: boolean; // The target state.
10998+ };
10999+
11000+ /**
11001+ * Data returned by mod_forum_set_forum_subscription WS.
11002+ *
11003+ * WS Description: Subscribe or unsubscribe the user to a forum.
11004+ */
11005+ export type AddonModForumSetForumSubscriptionWSResponse = {
11006+ id: number; // Id.
11007+ name: string; // Name.
11008+ state: {
11009+ groupmode: number; // Groupmode.
11010+ gradingenabled: boolean; // Gradingenabled.
11011+ };
11012+ userstate: {
11013+ tracked: number; // Tracked.
11014+ subscribed: number; // Subscribed.
11015+ };
11016+ capabilities: {
11017+ viewdiscussions: boolean; // Viewdiscussions.
11018+ create: boolean; // Create.
11019+ subscribe: boolean; // Subscribe.
11020+ grade: boolean; // Grade.
11021+ };
11022+ urls: {
11023+ create: string; // Create.
11024+ markasread: string; // Markasread.
11025+ view: string; // View.
11026+ sortrepliesasc: string; // Sortrepliesasc.
11027+ sortrepliesdesc: string; // Sortrepliesdesc.
11028+ sortlastpostasc: string; // Sortlastpostasc.
11029+ sortlastpostdesc: string; // Sortlastpostdesc.
11030+ sortcreatedasc: string; // Sortcreatedasc.
11031+ sortcreateddesc: string; // Sortcreateddesc.
11032+ sortdiscussionasc: string; // Sortdiscussionasc.
11033+ sortdiscussiondesc: string; // Sortdiscussiondesc.
11034+ sortstarterasc: string; // Sortstarterasc.
11035+ sortstarterdesc: string; // Sortstarterdesc.
11036+ sortgroupasc: string; // Sortgroupasc.
11037+ sortgroupdesc: string; // Sortgroupdesc.
11038+ };
11039+ };
11040+
11041+ /**
11042+ * Params of mod_forum_set_forum_tracking WS.
11043+ *
11044+ * WS Description: Track or not unread messages in a forum for the user.
11045+ */
11046+ type AddonModForumSetForumTrackingWSParams = {
11047+ forumid: number; // Forum that the user wants tracking for.
11048+ targetstate: boolean; // The target state.
11049+ };
11050+
11051+ /**
11052+ * Data returned by mod_forum_set_forum_tracking WS.
11053+ *
11054+ * WS Description: Track or not unread messages in a forum for the user.
11055+ */
11056+ export type AddonModForumSetForumTrackingWSResponse = {
11057+ id: number; // Id.
11058+ name: string; // Name.
11059+ state: {
11060+ groupmode: number; // Groupmode.
11061+ gradingenabled: boolean; // Gradingenabled.
11062+ };
11063+ userstate: {
11064+ tracked: number; // Tracked.
11065+ subscribed: number; // Subscribed.
11066+ };
11067+ capabilities: {
11068+ viewdiscussions: boolean; // Viewdiscussions.
11069+ create: boolean; // Create.
11070+ subscribe: boolean; // Subscribe.
11071+ grade: boolean; // Grade.
11072+ };
11073+ urls: {
11074+ create: string; // Create.
11075+ markasread: string; // Markasread.
11076+ view: string; // View.
11077+ sortrepliesasc: string; // Sortrepliesasc.
11078+ sortrepliesdesc: string; // Sortrepliesdesc.
11079+ sortlastpostasc: string; // Sortlastpostasc.
11080+ sortlastpostdesc: string; // Sortlastpostdesc.
11081+ sortcreatedasc: string; // Sortcreatedasc.
11082+ sortcreateddesc: string; // Sortcreateddesc.
11083+ sortdiscussionasc: string; // Sortdiscussionasc.
11084+ sortdiscussiondesc: string; // Sortdiscussiondesc.
11085+ sortstarterasc: string; // Sortstarterasc.
11086+ sortstarterdesc: string; // Sortstarterdesc.
11087+ sortgroupasc: string; // Sortgroupasc.
11088+ sortgroupdesc: string; // Sortgroupdesc.
11089+ };
11090+ };
11091+
1099011092/**
1099111093 * Params of mod_forum_set_lock_state WS.
1099211094 *
0 commit comments