@parra/parra-js-sdk 0.3.525 → 0.3.527
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/ParraAPI.d.ts +1 -0
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -5278,6 +5278,7 @@ declare class ParraAPI {
|
|
5278
5278
|
createLessonForModule: (tenant_id: string, course_id: string, course_module_id: string, body: CreateCourseLessonRequestBody, options?: Options) => Promise<Lesson>;
|
5279
5279
|
updateLessonForCourseById: (tenant_id: string, course_id: string, lesson_id: string, body?: UpdateCourseLessonRequestBody, options?: Options) => Promise<Lesson>;
|
5280
5280
|
deleteLessonForCourseById: (tenant_id: string, course_id: string, lesson_id: string, options?: Options) => Promise<Response>;
|
5281
|
+
deleteContentForLesson: (tenant_id: string, course_id: string, lesson_id: string, options?: Options) => Promise<Lesson>;
|
5281
5282
|
createSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, body: CreateCourseLessonSectionRequestBody, options?: Options) => Promise<LessonSection>;
|
5282
5283
|
updateSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, lesson_section_id: string, body?: UpdateCourseLessonSectionRequestBody, options?: Options) => Promise<LessonSection>;
|
5283
5284
|
deleteSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, lesson_section_id: string, options?: Options) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
@@ -1082,6 +1082,10 @@ var ParraAPI = /** @class */ (function () {
|
|
1082
1082
|
if (options === void 0) { options = {}; }
|
1083
1083
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id), method: "delete" }, options));
|
1084
1084
|
};
|
1085
|
+
this.deleteContentForLesson = function (tenant_id, course_id, lesson_id, options) {
|
1086
|
+
if (options === void 0) { options = {}; }
|
1087
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/content"), method: "delete" }, options));
|
1088
|
+
};
|
1085
1089
|
this.createSectionForLesson = function (tenant_id, course_id, lesson_id, body, options) {
|
1086
1090
|
if (options === void 0) { options = {}; }
|
1087
1091
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections"), method: "post", body: JSON.stringify(body), headers: {
|