@parra/parra-js-sdk 0.3.515 → 0.3.516

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.
Files changed (2) hide show
  1. package/dist/ParraAPI.d.ts +23 -3
  2. package/package.json +1 -1
@@ -1625,6 +1625,26 @@ export interface UpdateCourseModuleRequestBody {
1625
1625
  sort_order?: number;
1626
1626
  is_preview?: boolean;
1627
1627
  }
1628
+ export interface CreateCourseModuleRequestBody {
1629
+ title?: string;
1630
+ description?: string | null;
1631
+ sort_order?: number;
1632
+ is_preview?: boolean;
1633
+ }
1634
+ export interface UpdateCourseLessonRequestBody {
1635
+ type?: LessonType;
1636
+ title?: string;
1637
+ description?: string | null;
1638
+ is_preview?: boolean;
1639
+ sort_order?: number;
1640
+ }
1641
+ export interface CreateCourseLessonRequestBody {
1642
+ type?: LessonType;
1643
+ title?: string;
1644
+ description?: string | null;
1645
+ is_preview?: boolean;
1646
+ sort_order?: number;
1647
+ }
1628
1648
  export interface ReportLessonProgressRequestBody {
1629
1649
  complete?: boolean;
1630
1650
  progress?: number;
@@ -5228,11 +5248,11 @@ declare class ParraAPI {
5228
5248
  include?: string;
5229
5249
  }, options?: Options) => Promise<AppCourse>;
5230
5250
  enrollInCourse: (tenant_id: string, course_id: string, options?: Options) => Promise<Course>;
5231
- createModuleForCourse: (tenant_id: string, course_id: string, body: CreateCourseRequestBody, options?: Options) => Promise<CourseModule>;
5251
+ createModuleForCourse: (tenant_id: string, course_id: string, body: CreateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
5232
5252
  updateModuleForCourseById: (tenant_id: string, course_id: string, course_module_id: string, body?: UpdateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
5233
5253
  deleteModuleForCourseById: (tenant_id: string, course_id: string, course_module_id: string, options?: Options) => Promise<Response>;
5234
- createLessonForModule: (tenant_id: string, course_id: string, course_module_id: string, body: CreateCourseRequestBody, options?: Options) => Promise<CourseModule>;
5235
- updateLessonForCourseById: (tenant_id: string, course_id: string, lesson_id: string, body?: UpdateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
5254
+ createLessonForModule: (tenant_id: string, course_id: string, course_module_id: string, body: CreateCourseLessonRequestBody, options?: Options) => Promise<CourseModule>;
5255
+ updateLessonForCourseById: (tenant_id: string, course_id: string, lesson_id: string, body?: UpdateCourseLessonRequestBody, options?: Options) => Promise<CourseModule>;
5236
5256
  deleteLessonForCourseById: (tenant_id: string, course_id: string, lesson_id: string, options?: Options) => Promise<Response>;
5237
5257
  createSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, body?: UpdateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
5238
5258
  updateSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, lesson_section_id: string, body?: UpdateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.515",
3
+ "version": "0.3.516",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",