fix: include types
This commit is contained in:
@@ -282,6 +282,21 @@ export interface Group_attendance {
|
|||||||
|
|
||||||
export type LessonVideoType = 'youtube' | 'generic' | 'upload';
|
export type LessonVideoType = 'youtube' | 'generic' | 'upload';
|
||||||
export type LessonDocumentType = any;
|
export type LessonDocumentType = any;
|
||||||
|
export type LessonVideo = {
|
||||||
|
type: LessonVideoType;
|
||||||
|
link: string;
|
||||||
|
key?: string;
|
||||||
|
metadata?: {
|
||||||
|
svid?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
export type LessonDocument = {
|
||||||
|
type: LessonDocumentType;
|
||||||
|
name: string;
|
||||||
|
link: string;
|
||||||
|
size?: number;
|
||||||
|
key?: string;
|
||||||
|
};
|
||||||
|
|
||||||
export interface LessonPage {
|
export interface LessonPage {
|
||||||
id?: string | null;
|
id?: string | null;
|
||||||
@@ -294,21 +309,8 @@ export interface LessonPage {
|
|||||||
materials: {
|
materials: {
|
||||||
note: string;
|
note: string;
|
||||||
slide_url: string;
|
slide_url: string;
|
||||||
videos: Array<{
|
videos: LessonVideo[];
|
||||||
type: LessonVideoType;
|
documents: LessonDocument[];
|
||||||
link: string;
|
|
||||||
key?: string;
|
|
||||||
metadata?: {
|
|
||||||
svid?: string;
|
|
||||||
};
|
|
||||||
}>;
|
|
||||||
documents: Array<{
|
|
||||||
type: LessonDocumentType;
|
|
||||||
name: string;
|
|
||||||
link: string;
|
|
||||||
size?: number;
|
|
||||||
key?: string;
|
|
||||||
}>;
|
|
||||||
};
|
};
|
||||||
exercises: [];
|
exercises: [];
|
||||||
lesson_completion: LessonCompletion[];
|
lesson_completion: LessonCompletion[];
|
||||||
|
|||||||
Reference in New Issue
Block a user