@@ -69,6 +69,44 @@ export type AddonBlockStarredcoursesGetStarredCoursesWSResponse = {
6969 coursecategory: string; // Coursecategory.
7070}[];
7171
72+ /**
73+ * Params of core_badges_get_badge WS.
74+ *
75+ * WS Description: Retrieves a badge by id.
76+ */
77+ type AddonBadgesGetBadgeWSParams = {
78+ id: number; // Badge id.
79+ };
80+
81+ /**
82+ * Data returned by core_badges_get_badge WS.
83+ *
84+ * WS Description: Retrieves a badge by id.
85+ */
86+ export type AddonBadgesGetBadgeWSResponse = {
87+ badge: {
88+ type: string; // BadgeClass.
89+ id: string; // Unique identifier for this badgeclass.
90+ issuer?: string; // Unique identifier for this badgeclass.
91+ name: string; // Name of the badgeclass.
92+ image: string; // URL to the image.
93+ description: string; // Description of the badge class.
94+ hostedUrl?: string; // Identifier of the open badge for this assertion.
95+ alignment?: { // Alignment.
96+ id?: number; // Alignment id.
97+ badgeid?: number; // Badge id.
98+ targetName?: string; // Target name.
99+ targetUrl?: string; // Target URL.
100+ targetDescription?: string; // Target description.
101+ targetFramework?: string; // Target framework.
102+ targetCode?: string; // Target code.
103+ }[];
104+ criteriaUrl?: string; // CriteriaUrl.
105+ criteriaNarrative?: string; // CriteriaNarrative.
106+ };
107+ warnings?: CoreWSExternalWarning[];
108+ };
109+
72110/**
73111 * Params of core_badges_get_user_badge_by_hash WS.
74112 *
0 commit comments