@parra/parra-js-sdk 0.3.514 → 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 +25 -3
  2. package/package.json +1 -1
@@ -1408,12 +1408,14 @@ export interface Reaction {
1408
1408
  export interface UpdateCourseRequestBody {
1409
1409
  title?: string;
1410
1410
  description?: string | null;
1411
+ slug?: string | null;
1411
1412
  icon_asset_id?: string | null;
1412
1413
  header_image_asset_id?: string | null;
1413
1414
  }
1414
1415
  export interface CreateCourseRequestBody {
1415
1416
  title?: string;
1416
1417
  description?: string | null;
1418
+ slug?: string | null;
1417
1419
  icon_asset_id?: string | null;
1418
1420
  header_image_asset_id?: string | null;
1419
1421
  }
@@ -1623,6 +1625,26 @@ export interface UpdateCourseModuleRequestBody {
1623
1625
  sort_order?: number;
1624
1626
  is_preview?: boolean;
1625
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
+ }
1626
1648
  export interface ReportLessonProgressRequestBody {
1627
1649
  complete?: boolean;
1628
1650
  progress?: number;
@@ -5226,11 +5248,11 @@ declare class ParraAPI {
5226
5248
  include?: string;
5227
5249
  }, options?: Options) => Promise<AppCourse>;
5228
5250
  enrollInCourse: (tenant_id: string, course_id: string, options?: Options) => Promise<Course>;
5229
- 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>;
5230
5252
  updateModuleForCourseById: (tenant_id: string, course_id: string, course_module_id: string, body?: UpdateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
5231
5253
  deleteModuleForCourseById: (tenant_id: string, course_id: string, course_module_id: string, options?: Options) => Promise<Response>;
5232
- createLessonForModule: (tenant_id: string, course_id: string, course_module_id: string, body: CreateCourseRequestBody, options?: Options) => Promise<CourseModule>;
5233
- 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>;
5234
5256
  deleteLessonForCourseById: (tenant_id: string, course_id: string, lesson_id: string, options?: Options) => Promise<Response>;
5235
5257
  createSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, body?: UpdateCourseModuleRequestBody, options?: Options) => Promise<CourseModule>;
5236
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.514",
3
+ "version": "0.3.516",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",