hischool.js 0.0.50 → 0.0.52
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/lib/cjs/Client.d.ts +10 -8
- package/lib/cjs/Client.d.ts.map +1 -1
- package/lib/cjs/api/schema.d.ts +4 -144
- package/lib/cjs/api/schema.d.ts.map +1 -1
- package/lib/cjs/api/types.d.ts +4 -0
- package/lib/cjs/api/types.d.ts.map +1 -1
- package/lib/cjs/classes/Channel.d.ts.map +1 -1
- package/lib/cjs/classes/Course.d.ts +19 -10
- package/lib/cjs/classes/Course.d.ts.map +1 -1
- package/lib/cjs/classes/Course.js +43 -1
- package/lib/cjs/classes/CourseLearner.d.ts +8 -10
- package/lib/cjs/classes/CourseLearner.d.ts.map +1 -1
- package/lib/cjs/classes/CourseLearner.js +22 -8
- package/lib/cjs/classes/CourseLesson.d.ts +6 -11
- package/lib/cjs/classes/CourseLesson.d.ts.map +1 -1
- package/lib/cjs/classes/CourseLesson.js +56 -23
- package/lib/cjs/collections/CourseCollection.d.ts +3 -2
- package/lib/cjs/collections/CourseCollection.d.ts.map +1 -1
- package/lib/cjs/collections/CourseLearnerCollection.d.ts +26 -3
- package/lib/cjs/collections/CourseLearnerCollection.d.ts.map +1 -1
- package/lib/cjs/collections/CourseLearnerCollection.js +51 -8
- package/lib/cjs/collections/CourseLessonCollection.d.ts +13 -5
- package/lib/cjs/collections/CourseLessonCollection.d.ts.map +1 -1
- package/lib/cjs/collections/CourseLessonCollection.js +43 -11
- package/lib/cjs/events/v1.d.ts +46 -1
- package/lib/cjs/events/v1.d.ts.map +1 -1
- package/lib/cjs/events/v1.js +194 -0
- package/lib/cjs/hydration/course.d.ts +1 -1
- package/lib/cjs/hydration/course.d.ts.map +1 -1
- package/lib/cjs/hydration/course.js +1 -1
- package/lib/cjs/hydration/courseLearner.d.ts +5 -5
- package/lib/cjs/hydration/courseLearner.d.ts.map +1 -1
- package/lib/cjs/hydration/courseLearner.js +7 -5
- package/lib/cjs/hydration/courseLesson.d.ts +3 -23
- package/lib/cjs/hydration/courseLesson.d.ts.map +1 -1
- package/lib/cjs/hydration/courseLesson.js +49 -40
- package/lib/cjs/hydration/index.d.ts +557 -1417
- package/lib/cjs/hydration/index.d.ts.map +1 -1
- package/lib/esm/Client.d.ts +10 -8
- package/lib/esm/Client.d.ts.map +1 -1
- package/lib/esm/api/schema.d.ts +4 -144
- package/lib/esm/api/schema.d.ts.map +1 -1
- package/lib/esm/api/types.d.ts +4 -0
- package/lib/esm/api/types.d.ts.map +1 -1
- package/lib/esm/classes/Channel.d.ts.map +1 -1
- package/lib/esm/classes/Course.d.ts +19 -10
- package/lib/esm/classes/Course.d.ts.map +1 -1
- package/lib/esm/classes/Course.js +45 -1
- package/lib/esm/classes/CourseLearner.d.ts +8 -10
- package/lib/esm/classes/CourseLearner.d.ts.map +1 -1
- package/lib/esm/classes/CourseLearner.js +12 -9
- package/lib/esm/classes/CourseLesson.d.ts +6 -11
- package/lib/esm/classes/CourseLesson.d.ts.map +1 -1
- package/lib/esm/classes/CourseLesson.js +42 -23
- package/lib/esm/collections/CourseCollection.d.ts +3 -2
- package/lib/esm/collections/CourseCollection.d.ts.map +1 -1
- package/lib/esm/collections/CourseLearnerCollection.d.ts +26 -3
- package/lib/esm/collections/CourseLearnerCollection.d.ts.map +1 -1
- package/lib/esm/collections/CourseLearnerCollection.js +51 -8
- package/lib/esm/collections/CourseLessonCollection.d.ts +13 -5
- package/lib/esm/collections/CourseLessonCollection.d.ts.map +1 -1
- package/lib/esm/collections/CourseLessonCollection.js +40 -9
- package/lib/esm/events/v1.d.ts +46 -1
- package/lib/esm/events/v1.d.ts.map +1 -1
- package/lib/esm/events/v1.js +200 -0
- package/lib/esm/hydration/course.d.ts +1 -1
- package/lib/esm/hydration/course.d.ts.map +1 -1
- package/lib/esm/hydration/course.js +1 -1
- package/lib/esm/hydration/courseLearner.d.ts +5 -5
- package/lib/esm/hydration/courseLearner.d.ts.map +1 -1
- package/lib/esm/hydration/courseLearner.js +7 -5
- package/lib/esm/hydration/courseLesson.d.ts +3 -23
- package/lib/esm/hydration/courseLesson.d.ts.map +1 -1
- package/lib/esm/hydration/courseLesson.js +45 -39
- package/lib/esm/hydration/index.d.ts +557 -1417
- package/lib/esm/hydration/index.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/cjs/Client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DataLogin, HischoolConfig, Metadata } from "./api";
|
|
2
2
|
import { API, Role } from "./api";
|
|
3
|
-
import { Channel, Emoji, Message, School, SchoolMember, User, CalendarEvent, Course } from "./classes/index.js";
|
|
3
|
+
import { Channel, Emoji, Message, School, SchoolMember, User, CalendarEvent, Course, CourseLearner, CourseLesson } from "./classes/index.js";
|
|
4
4
|
import { AccountCollection } from "./collections/AccountCollection.js";
|
|
5
5
|
import { BotCollection, ChannelCollection, ChannelUnreadCollection, ChannelWebhookCollection, EmojiCollection, CalendarEventCollection, MessageCollection, SchoolCollection, SchoolMemberCollection, SessionCollection, UserCollection, CourseCollection, CourseLessonCollection, CourseLearnerCollection } from "./collections/index.js";
|
|
6
6
|
import { EventClient, EventClientOptions } from "./events/index.js";
|
|
7
|
-
import { HydratedChannel, HydratedEmoji, HydratedCalendarEvent, HydratedMessage, HydratedSchool, HydratedSchoolMember, HydratedUser, HydratedCourse } from "./hydration/index.js";
|
|
7
|
+
import { HydratedChannel, HydratedEmoji, HydratedCalendarEvent, HydratedMessage, HydratedSchool, HydratedSchoolMember, HydratedUser, HydratedCourse, HydratedCourseLessons, HydratedCourseLearner } from "./hydration/index.js";
|
|
8
8
|
import EventEmitter from "eventemitter3";
|
|
9
9
|
import { Accessor } from "solid-js";
|
|
10
10
|
export type Session = {
|
|
@@ -71,12 +71,14 @@ export type Events = {
|
|
|
71
71
|
courseCreate(course: Course): void;
|
|
72
72
|
courseUpdate(course: Course, previousCourse: HydratedCourse): void;
|
|
73
73
|
courseDelete(course: HydratedCourse): void;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
courseLessonCreate(courseLesson: CourseLesson): void;
|
|
75
|
+
courseLessonUpdate(courseLesson: CourseLesson, previousLesson: HydratedCourseLessons): void;
|
|
76
|
+
courseLessonDelete(courseLesson: HydratedCourseLessons): void;
|
|
77
|
+
courseLearnerCreate(courseLearner: CourseLearner): void;
|
|
78
|
+
courseLearnerRemove(courseLearner: HydratedCourseLearner): void;
|
|
79
|
+
courseLearnerUpdate(courseLearner: CourseLearner, previousLearner: HydratedCourseLearner): void;
|
|
80
|
+
courseAuthorAdd(course: Course, user: User): void;
|
|
81
|
+
courseAuthorRemove(course: Course, user?: User): void;
|
|
80
82
|
};
|
|
81
83
|
/**
|
|
82
84
|
* Client options object
|
package/lib/cjs/Client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../src/Client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,aAAa,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../src/Client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,aAAa,EACb,MAAM,EACN,aAAa,EACb,YAAY,EACb,MAAM,oBAAo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AsB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAIlD;;OAEG;gBAED,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,EAChC,aAAa,CAAC,EAAE,cAAc;IA6FhC;;OAEG;IACH,IAAI,SAAS,uBAEZ;IAED;;OAEG;IACH,IAAI,oBAAoB,aAIvB;IAED;;OAEG;IACH,OAAO;IA+BP;;;;OAIG;IACG,KAAK,CAAC,OAAO,EAAE,SAAS;IAY9B;;OAEG;IACG,kBAAkB,CAAC,OAAO,EAAE,OAAO;IAKzC;;;OAGG;IACG,QAAQ,CAAC,KAAK,EAAE,MAAM;IAO5B;;;;OAIG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM;IAuB7B;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAU1C;;;;;;;OAOG;IACH,eAAe,CACb,UAAU,CAAC,EAAE;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;KACrB,EACD,GAAG,IAAI,EAAE,QAAQ;CAiCpB"}
|
package/lib/cjs/api/schema.d.ts
CHANGED
|
@@ -2681,7 +2681,7 @@ export interface components {
|
|
|
2681
2681
|
/** @description Custom icon attachment */
|
|
2682
2682
|
banner?: components["schemas"]["File"] | null;
|
|
2683
2683
|
/** @description Section of the course */
|
|
2684
|
-
|
|
2684
|
+
sections?: components["schemas"]["CourseSection"][] | null;
|
|
2685
2685
|
/** @description Array of user ids lessons in course */
|
|
2686
2686
|
lessons: string[];
|
|
2687
2687
|
/** @description Tags for the course */
|
|
@@ -2707,7 +2707,7 @@ export interface components {
|
|
|
2707
2707
|
/** @description Access code required to join the course */
|
|
2708
2708
|
access_code: string;
|
|
2709
2709
|
/** @description Section of the course */
|
|
2710
|
-
|
|
2710
|
+
sections?: components["schemas"]["CourseSection"][] | null;
|
|
2711
2711
|
/** @description Array of user ids lessons in course */
|
|
2712
2712
|
lessons: string[];
|
|
2713
2713
|
/** @description Tags for the course */
|
|
@@ -2882,126 +2882,6 @@ export interface components {
|
|
|
2882
2882
|
unlock_after_lesson: string | null;
|
|
2883
2883
|
published: boolean;
|
|
2884
2884
|
required: boolean;
|
|
2885
|
-
} | {
|
|
2886
|
-
lesson_type: "Documents";
|
|
2887
|
-
/** @description Unique Id */
|
|
2888
|
-
_id: string;
|
|
2889
|
-
/** @description Id of the course this lesson belongs to */
|
|
2890
|
-
course: string;
|
|
2891
|
-
/** @description Lesson title */
|
|
2892
|
-
title: string;
|
|
2893
|
-
/** @description Lesson description */
|
|
2894
|
-
description?: string | null;
|
|
2895
|
-
icon?: components["schemas"]["File"] | null;
|
|
2896
|
-
documents: components["schemas"]["File"][];
|
|
2897
|
-
threads: string[];
|
|
2898
|
-
attachments: components["schemas"]["File"][];
|
|
2899
|
-
edited: components["schemas"]["ISO8601 Timestamp"] | null;
|
|
2900
|
-
locked: boolean;
|
|
2901
|
-
unlock_method: components["schemas"]["CourseLessonUnlockMethod"];
|
|
2902
|
-
unlock_after_days: number;
|
|
2903
|
-
unlock_after_lesson: string | null;
|
|
2904
|
-
published: boolean;
|
|
2905
|
-
required: boolean;
|
|
2906
|
-
} | {
|
|
2907
|
-
lesson_type: "Audio";
|
|
2908
|
-
/** @description Unique Id */
|
|
2909
|
-
_id: string;
|
|
2910
|
-
/** @description Id of the course this lesson belongs to */
|
|
2911
|
-
course: string;
|
|
2912
|
-
/** @description Lesson title */
|
|
2913
|
-
title: string;
|
|
2914
|
-
/** @description Lesson description */
|
|
2915
|
-
description?: string | null;
|
|
2916
|
-
icon?: components["schemas"]["File"] | null;
|
|
2917
|
-
audio: components["schemas"]["File"][];
|
|
2918
|
-
threads: string[];
|
|
2919
|
-
attachments: components["schemas"]["File"][];
|
|
2920
|
-
edited: components["schemas"]["ISO8601 Timestamp"] | null;
|
|
2921
|
-
locked: boolean;
|
|
2922
|
-
unlock_method: components["schemas"]["CourseLessonUnlockMethod"];
|
|
2923
|
-
unlock_after_days: number;
|
|
2924
|
-
unlock_after_lesson: string | null;
|
|
2925
|
-
published: boolean;
|
|
2926
|
-
required: boolean;
|
|
2927
|
-
} | {
|
|
2928
|
-
lesson_type: "Quiz";
|
|
2929
|
-
/** @description Unique Id */
|
|
2930
|
-
_id: string;
|
|
2931
|
-
/** @description Id of the course this lesson belongs to */
|
|
2932
|
-
course: string;
|
|
2933
|
-
/** @description Lesson title */
|
|
2934
|
-
title: string;
|
|
2935
|
-
/** @description Lesson description */
|
|
2936
|
-
description?: string | null;
|
|
2937
|
-
icon?: components["schemas"]["File"] | null;
|
|
2938
|
-
questions: components["schemas"]["QuizQuestion"][];
|
|
2939
|
-
pass_score: number;
|
|
2940
|
-
time_limit: number;
|
|
2941
|
-
shuffle_questions: boolean;
|
|
2942
|
-
shuffle_options: boolean;
|
|
2943
|
-
attempts_allowed: number;
|
|
2944
|
-
scoring_method: components["schemas"]["QuizScoringMethod"];
|
|
2945
|
-
show_correct_answers: boolean;
|
|
2946
|
-
explanation: string | null;
|
|
2947
|
-
threads: string[];
|
|
2948
|
-
attachments: components["schemas"]["File"][];
|
|
2949
|
-
edited: components["schemas"]["ISO8601 Timestamp"] | null;
|
|
2950
|
-
locked: boolean;
|
|
2951
|
-
unlock_method: components["schemas"]["CourseLessonUnlockMethod"];
|
|
2952
|
-
unlock_after_days: number;
|
|
2953
|
-
unlock_after_lesson: string | null;
|
|
2954
|
-
published: boolean;
|
|
2955
|
-
required: boolean;
|
|
2956
|
-
} | {
|
|
2957
|
-
lesson_type: "Embed";
|
|
2958
|
-
/** @description Unique Id */
|
|
2959
|
-
_id: string;
|
|
2960
|
-
/** @description Id of the course this lesson belongs to */
|
|
2961
|
-
course: string;
|
|
2962
|
-
/** @description Lesson title */
|
|
2963
|
-
title: string;
|
|
2964
|
-
/** @description Lesson description */
|
|
2965
|
-
description?: string | null;
|
|
2966
|
-
icon?: components["schemas"]["File"] | null;
|
|
2967
|
-
embed_url: string;
|
|
2968
|
-
width: number;
|
|
2969
|
-
height: number;
|
|
2970
|
-
allow_fullscreen: boolean;
|
|
2971
|
-
sandbox: string;
|
|
2972
|
-
threads: string[];
|
|
2973
|
-
attachments: components["schemas"]["File"][];
|
|
2974
|
-
edited: components["schemas"]["ISO8601 Timestamp"] | null;
|
|
2975
|
-
locked: boolean;
|
|
2976
|
-
unlock_method: components["schemas"]["CourseLessonUnlockMethod"];
|
|
2977
|
-
unlock_after_days: number;
|
|
2978
|
-
unlock_after_lesson: string | null;
|
|
2979
|
-
published: boolean;
|
|
2980
|
-
required: boolean;
|
|
2981
|
-
} | {
|
|
2982
|
-
lesson_type: "Poll";
|
|
2983
|
-
/** @description Unique Id */
|
|
2984
|
-
_id: string;
|
|
2985
|
-
/** @description Id of the course this lesson belongs to */
|
|
2986
|
-
course: string;
|
|
2987
|
-
/** @description Lesson title */
|
|
2988
|
-
title: string;
|
|
2989
|
-
/** @description Lesson description */
|
|
2990
|
-
description?: string | null;
|
|
2991
|
-
icon?: components["schemas"]["File"] | null;
|
|
2992
|
-
options: string[];
|
|
2993
|
-
max_attempts: number;
|
|
2994
|
-
allow_multiple_selections: boolean;
|
|
2995
|
-
show_results_after_submit: boolean;
|
|
2996
|
-
threads: string[];
|
|
2997
|
-
attachments: components["schemas"]["File"][];
|
|
2998
|
-
edited: components["schemas"]["ISO8601 Timestamp"] | null;
|
|
2999
|
-
locked: boolean;
|
|
3000
|
-
unlock_method: components["schemas"]["CourseLessonUnlockMethod"];
|
|
3001
|
-
unlock_after_days: number;
|
|
3002
|
-
unlock_after_lesson: string | null;
|
|
3003
|
-
published: boolean;
|
|
3004
|
-
required: boolean;
|
|
3005
2885
|
};
|
|
3006
2886
|
CourseLessonType: "Article" | "Video";
|
|
3007
2887
|
LessonUnclockType: "Manual" | "Time" | "Dependency";
|
|
@@ -3017,7 +2897,7 @@ export interface components {
|
|
|
3017
2897
|
points: number;
|
|
3018
2898
|
};
|
|
3019
2899
|
QuizQuestionType: " " | "SelectOneChoice" | "SelectManyChoice" | "TrueFalse" | "ShortAnswer" | "FillInBlank" | "Matching";
|
|
3020
|
-
FieldsCourseLesson: "Icon" | "Description" | "Locked" | "UnlockMethod" | "UnlockAfterDays" | "UnlockAfterLesson" | "Published" | "Required" | "Article" | "Video"
|
|
2900
|
+
FieldsCourseLesson: "Icon" | "Description" | "Locked" | "UnlockMethod" | "UnlockAfterDays" | "UnlockAfterLesson" | "Published" | "Required" | "Article" | "Video";
|
|
3021
2901
|
/**
|
|
3022
2902
|
* @description Lesson Unlock Method
|
|
3023
2903
|
* @enum {string}
|
|
@@ -3033,7 +2913,7 @@ export interface components {
|
|
|
3033
2913
|
};
|
|
3034
2914
|
DataCreateCourseLesson: {
|
|
3035
2915
|
/** @description Lesson type */
|
|
3036
|
-
lesson_type
|
|
2916
|
+
lesson_type?: components["schemas"]["CourseLessonType"];
|
|
3037
2917
|
/** @description Lesson title */
|
|
3038
2918
|
title: string;
|
|
3039
2919
|
/** @description Lesson description */
|
|
@@ -3062,26 +2942,6 @@ export interface components {
|
|
|
3062
2942
|
attachments?: string[] | null;
|
|
3063
2943
|
article?: string[] | null;
|
|
3064
2944
|
video?: string[] | null;
|
|
3065
|
-
audio?: string[] | null;
|
|
3066
|
-
documents?: string[] | null;
|
|
3067
|
-
embed_url?: string | null;
|
|
3068
|
-
width?: number | null;
|
|
3069
|
-
height?: number | null;
|
|
3070
|
-
allow_fullscreen?: boolean | null;
|
|
3071
|
-
sandbox?: string | null;
|
|
3072
|
-
options?: string[] | null;
|
|
3073
|
-
max_attempts?: number | null;
|
|
3074
|
-
allow_multiple_selections: boolean | null;
|
|
3075
|
-
show_results_after_submit?: boolean | null;
|
|
3076
|
-
questions?: components["schemas"]["QuizQuestion"][] | null;
|
|
3077
|
-
pass_score?: number | null;
|
|
3078
|
-
time_limit?: number | null;
|
|
3079
|
-
shuffle_questions?: boolean | null;
|
|
3080
|
-
shuffle_options?: boolean | null;
|
|
3081
|
-
attempts_allowed?: number | null;
|
|
3082
|
-
scoring_method?: components["schemas"]["QuizScoringMethod"] | null;
|
|
3083
|
-
show_correct_answers?: boolean | null;
|
|
3084
|
-
explanation?: string | null;
|
|
3085
2945
|
/** @description Fields to remove from lesson object */
|
|
3086
2946
|
remove?: components["schemas"]["FieldsCourseLesson"][] | null;
|
|
3087
2947
|
};
|