glitch-javascript-sdk 2.5.9 → 2.6.0

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
@@ -7182,6 +7182,7 @@ declare class Education {
7182
7182
  static deleteContent<T>(uuid: string): AxiosPromise<Response<T>>;
7183
7183
  static heartbeat<T>(uuid: string, data: object): AxiosPromise<Response<T>>;
7184
7184
  static getSecureVideo<T>(uuid: string): AxiosPromise<Response<T>>;
7185
+ static getPreviewSecureVideo<T>(uuid: string): AxiosPromise<Response<T>>;
7185
7186
  static listTrackContent<T>(track_id: string): AxiosPromise<Response<T>>;
7186
7187
  static addContentToTrack<T>(track_id: string, data: object): AxiosPromise<Response<T>>;
7187
7188
  static removeContentFromTrack<T>(track_id: string, content_id: string): AxiosPromise<Response<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.5.9",
3
+ "version": "2.6.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -69,6 +69,9 @@ class Education {
69
69
  public static getSecureVideo<T>(uuid: string): AxiosPromise<Response<T>> {
70
70
  return Requests.processRoute(EducationRoute.routes.getSecureVideo, undefined, { uuid });
71
71
  }
72
+ public static getPreviewSecureVideo<T>(uuid: string): AxiosPromise<Response<T>> {
73
+ return Requests.processRoute(EducationRoute.routes.getPreviewSecureVideo, undefined, { uuid });
74
+ }
72
75
 
73
76
  // --- 4. TRACK CONTENT (PIVOT) ---
74
77
  public static listTrackContent<T>(track_id: string): AxiosPromise<Response<T>> {
@@ -30,6 +30,7 @@ class EducationRoute {
30
30
  saveContentModuleState: { url: '/education/content/{uuid}/module-state', method: HTTP_METHODS.POST },
31
31
  getContentModuleState: { url: '/education/content/{uuid}/module-state', method: HTTP_METHODS.GET },
32
32
  getSecureVideo: { url: '/education/content/{uuid}/secure-video', method: HTTP_METHODS.GET },
33
+ getPreviewSecureVideo: { url: '/education/content/{uuid}/preview-secure-video', method: HTTP_METHODS.GET },
33
34
 
34
35
  // 4. EducationContentTrackController (Pivot)
35
36
  listTrackContent: { url: '/education/tracks/{track_id}/content', method: HTTP_METHODS.GET },