glitch-javascript-sdk 2.5.5 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7178,6 +7178,12 @@ declare class Education {
7178
7178
  static getConversionReport<T>(): AxiosPromise<Response<T>>;
7179
7179
  static getAdoptionReport<T>(): AxiosPromise<Response<T>>;
7180
7180
  static getQuestionPerformanceReport<T>(params?: object): AxiosPromise<Response<T>>;
7181
+ static getRetentionReport<T>(): AxiosPromise<Response<T>>;
7182
+ /**
7183
+ * List raw engagement logs.
7184
+ * @param params Filter by user_id, content_id, or is_paid
7185
+ */
7186
+ static listViews<T>(params?: object): AxiosPromise<Response<T>>;
7181
7187
  static myBadges<T>(): AxiosPromise<Response<T>>;
7182
7188
  static awardBadge<T>(data: object): AxiosPromise<Response<T>>;
7183
7189
  static myCertificates<T>(): AxiosPromise<Response<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.5.5",
3
+ "version": "2.5.7",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -151,6 +151,17 @@ class Education {
151
151
  public static getQuestionPerformanceReport<T>(params?: object): AxiosPromise<Response<T>> {
152
152
  return Requests.processRoute(EducationRoute.routes.reportQuestionPerformance, undefined, undefined, params);
153
153
  }
154
+ public static getRetentionReport<T>(): AxiosPromise<Response<T>> {
155
+ return Requests.processRoute(EducationRoute.routes.reportRetention);
156
+ }
157
+
158
+ /**
159
+ * List raw engagement logs.
160
+ * @param params Filter by user_id, content_id, or is_paid
161
+ */
162
+ public static listViews<T>(params?: object): AxiosPromise<Response<T>> {
163
+ return Requests.processRoute(EducationRoute.routes.listViews, undefined, undefined, params);
164
+ }
154
165
 
155
166
  // --- 9. ACHIEVEMENTS (BADGES & CERTIFICATES) ---
156
167
  public static myBadges<T>(): AxiosPromise<Response<T>> {