academe-kit 0.6.3 → 0.6.4

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.cjs CHANGED
@@ -5728,6 +5728,9 @@ function createProductService(apiClient) {
5728
5728
 
5729
5729
  function createCourseService(apiClient) {
5730
5730
  return {
5731
+ // ============================================================================
5732
+ // Courses
5733
+ // ============================================================================
5731
5734
  /**
5732
5735
  * List all courses
5733
5736
  */
@@ -5736,6 +5739,9 @@ function createCourseService(apiClient) {
5736
5739
  params: { query: params },
5737
5740
  });
5738
5741
  },
5742
+ /**
5743
+ * List all courses with full hierarchy (modules and lessons)
5744
+ */
5739
5745
  getFullAllCourses(params) {
5740
5746
  return apiClient.GET("/courses/full", {
5741
5747
  params: { query: params },
@@ -5774,6 +5780,78 @@ function createCourseService(apiClient) {
5774
5780
  params: { path: { id } },
5775
5781
  });
5776
5782
  },
5783
+ // ============================================================================
5784
+ // Course Modules
5785
+ // ============================================================================
5786
+ /**
5787
+ * Create a course module
5788
+ */
5789
+ createModule(data) {
5790
+ return apiClient.POST("/courses/modules", {
5791
+ body: data,
5792
+ });
5793
+ },
5794
+ /**
5795
+ * Get course module by ID
5796
+ */
5797
+ getModuleById(id) {
5798
+ return apiClient.GET("/courses/modules/{id}", {
5799
+ params: { path: { id } },
5800
+ });
5801
+ },
5802
+ /**
5803
+ * Update course module
5804
+ */
5805
+ updateModule(id, data) {
5806
+ return apiClient.PATCH("/courses/modules/{id}", {
5807
+ params: { path: { id } },
5808
+ body: data,
5809
+ });
5810
+ },
5811
+ /**
5812
+ * Delete course module
5813
+ */
5814
+ deleteModule(id) {
5815
+ return apiClient.DELETE("/courses/modules/{id}", {
5816
+ params: { path: { id } },
5817
+ });
5818
+ },
5819
+ // ============================================================================
5820
+ // Course Module Lessons
5821
+ // ============================================================================
5822
+ /**
5823
+ * Create a course module lesson
5824
+ */
5825
+ createLesson(data) {
5826
+ return apiClient.POST("/courses/modules/lessons", {
5827
+ body: data,
5828
+ });
5829
+ },
5830
+ /**
5831
+ * Get course module lesson by ID
5832
+ */
5833
+ getLessonById(id) {
5834
+ return apiClient.GET("/courses/modules/lessons/{id}", {
5835
+ params: { path: { id } },
5836
+ });
5837
+ },
5838
+ /**
5839
+ * Update course module lesson
5840
+ */
5841
+ updateLesson(id, data) {
5842
+ return apiClient.PATCH("/courses/modules/lessons/{id}", {
5843
+ params: { path: { id } },
5844
+ body: data,
5845
+ });
5846
+ },
5847
+ /**
5848
+ * Delete course module lesson
5849
+ */
5850
+ deleteLesson(id) {
5851
+ return apiClient.DELETE("/courses/modules/lessons/{id}", {
5852
+ params: { path: { id } },
5853
+ });
5854
+ },
5777
5855
  };
5778
5856
  }
5779
5857