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/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Education.d.ts +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/Education.ts +3 -0
- package/src/routes/EducationRoute.ts +1 -0
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
package/src/api/Education.ts
CHANGED
|
@@ -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 },
|