@@ -2677,6 +2677,49 @@ export type CoreCourseCheckUpdatesWSResponse = {
26772677 warnings?: CoreWSExternalWarning[];
26782678};
26792679
2680+ /**
2681+ * Params of core_courseformat_get_overview_information WS.
2682+ *
2683+ * WS Description: Get the course overview information for an specific activity type.
2684+ */
2685+ type CoreCourseformatGetOverviewInformationWSParams = {
2686+ courseid: number; // Course id.
2687+ modname: string; // The module name, or "resource" to get all resources overview.
2688+ };
2689+
2690+ /**
2691+ * Data returned by core_courseformat_get_overview_information WS.
2692+ *
2693+ * WS Description: Get the course overview information for an specific activity type.
2694+ */
2695+ export type CoreCourseformatGetOverviewInformationWSResponse = {
2696+ courseid: number; // The ID of the course this overview table belongs to.
2697+ hasintegration: boolean; // Indicates if there is any integration available for this overview table.
2698+ headers: { // Headers.
2699+ name: string; // The name of the header.
2700+ key: string; // The key of the header, used to identify it.
2701+ align: string; // The text alignment of the header.
2702+ }[];
2703+ activities: { // Activities.
2704+ name: string; // The name of the activity.
2705+ modname: string; // The module name of the activity.
2706+ contextid: number; // The context ID of the activity.
2707+ cmid: number; // The course module ID of the activity.
2708+ url: string; // The URL of the activity, if available.
2709+ haserror: boolean; // Indicate if the activity has an error.
2710+ items: { // The items associated with the activity, exported using overviewitem_exporter.
2711+ key: string; // The key of the overview item, used to identify it.
2712+ name: string; // The name of the overview item.
2713+ contenttype: string; // The type of content this overview item has.
2714+ exportertype: string; // The class name of the exporter used to export the content of this overview item.
2715+ alertlabel: string; // The label for the alert associated with this overview item.
2716+ alertcount: string; // The count of alerts associated with this overview item.
2717+ contentjson: string; // The JSON encoded content data for the overview item.
2718+ extrajson: string; // The JSON encoded extra data for the overview item.
2719+ }[];
2720+ }[];
2721+ };
2722+
26802723/**
26812724 * Params of core_course_get_categories WS.
26822725 *
@@ -4641,6 +4684,7 @@ export type AddonMessagesGetConversationWSResponse = {
46414684 timecreated: number; // The timecreated timestamp for the message.
46424685 }[];
46434686 candeletemessagesforallusers?: boolean; // If the user can delete messages in the conversation for all users.
4687+ cansendmessagetoconversation?: boolean; // If the user can send messages in the conversation.
46444688};
46454689
46464690/**
@@ -4711,6 +4755,7 @@ export type AddonMessagesGetConversationBetweenUsersWSResponse = {
47114755 timecreated: number; // The timecreated timestamp for the message.
47124756 }[];
47134757 candeletemessagesforallusers?: boolean; // If the user can delete messages in the conversation for all users.
4758+ cansendmessagetoconversation?: boolean; // If the user can send messages in the conversation.
47144759};
47154760
47164761/**
@@ -4911,6 +4956,7 @@ export type AddonMessagesGetConversationsWSResponse = {
49114956 timecreated: number; // The timecreated timestamp for the message.
49124957 }[];
49134958 candeletemessagesforallusers?: boolean; // If the user can delete messages in the conversation for all users.
4959+ cansendmessagetoconversation?: boolean; // If the user can send messages in the conversation.
49144960 }[];
49154961};
49164962
@@ -5087,6 +5133,7 @@ export type AddonMessagesGetSelfConversationWSResponse = {
50875133 timecreated: number; // The timecreated timestamp for the message.
50885134 }[];
50895135 candeletemessagesforallusers?: boolean; // If the user can delete messages in the conversation for all users.
5136+ cansendmessagetoconversation?: boolean; // If the user can send messages in the conversation.
50905137};
50915138
50925139/**
0 commit comments