@easyedu/js-lsm-api 1.31.0 → 1.33.0
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/.openapi-generator/FILES +14 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +20 -4
- package/dist/apis/ContentApi.d.ts +93 -3
- package/dist/apis/ContentApi.js +308 -106
- package/dist/apis/CourseApi.d.ts +48 -0
- package/dist/apis/CourseApi.js +157 -49
- package/dist/apis/ModuleApi.d.ts +16 -0
- package/dist/apis/ModuleApi.js +52 -16
- package/dist/apis/OtherApi.d.ts +4 -0
- package/dist/apis/OtherApi.js +13 -4
- package/dist/apis/PortalApi.d.ts +30 -3
- package/dist/apis/PortalApi.js +92 -32
- package/dist/apis/QuestionApi.d.ts +20 -0
- package/dist/apis/QuestionApi.js +65 -20
- package/dist/apis/QuizApi.d.ts +100 -0
- package/dist/apis/QuizApi.js +325 -100
- package/dist/apis/ReportingApi.d.ts +36 -0
- package/dist/apis/ReportingApi.js +117 -36
- package/dist/apis/RoleApi.d.ts +169 -0
- package/dist/apis/RoleApi.js +442 -0
- package/dist/apis/UserApi.d.ts +28 -0
- package/dist/apis/UserApi.js +91 -28
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentApi.d.ts +93 -3
- package/dist/esm/apis/ContentApi.js +307 -105
- package/dist/esm/apis/CourseApi.d.ts +48 -0
- package/dist/esm/apis/CourseApi.js +157 -49
- package/dist/esm/apis/ModuleApi.d.ts +16 -0
- package/dist/esm/apis/ModuleApi.js +52 -16
- package/dist/esm/apis/OtherApi.d.ts +4 -0
- package/dist/esm/apis/OtherApi.js +13 -4
- package/dist/esm/apis/PortalApi.d.ts +30 -3
- package/dist/esm/apis/PortalApi.js +92 -32
- package/dist/esm/apis/QuestionApi.d.ts +20 -0
- package/dist/esm/apis/QuestionApi.js +65 -20
- package/dist/esm/apis/QuizApi.d.ts +100 -0
- package/dist/esm/apis/QuizApi.js +325 -100
- package/dist/esm/apis/ReportingApi.d.ts +36 -0
- package/dist/esm/apis/ReportingApi.js +117 -36
- package/dist/esm/apis/RoleApi.d.ts +169 -0
- package/dist/esm/apis/RoleApi.js +438 -0
- package/dist/esm/apis/UserApi.d.ts +28 -0
- package/dist/esm/apis/UserApi.js +91 -28
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CriteriaBasedSelection.d.ts +1 -1
- package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
- package/dist/esm/models/FillInBlank.d.ts +1 -1
- package/dist/esm/models/FillInBlank1.d.ts +1 -1
- package/dist/esm/models/GetContent.d.ts +1 -1
- package/dist/esm/models/GetContentGradeDetail.d.ts +3 -3
- package/dist/esm/models/GetContentGradesItemsInner.d.ts +2 -2
- package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
- package/dist/esm/models/GetContentSessionDetail.d.ts +2 -2
- package/dist/esm/models/GetCourseEnrollment.d.ts +2 -2
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +2 -2
- package/dist/esm/models/GetCourseExport.d.ts +2 -2
- package/dist/esm/models/GetPermission.d.ts +50 -0
- package/dist/esm/models/GetPermission.js +53 -0
- package/dist/esm/models/GetPortal.d.ts +23 -4
- package/dist/esm/models/GetPortal.js +14 -0
- package/dist/esm/models/GetPortalUser.d.ts +2 -11
- package/dist/esm/models/GetPortalUser.js +0 -8
- package/dist/esm/models/GetQuestion.d.ts +2 -2
- package/dist/esm/models/GetQuestionListFilters.d.ts +2 -2
- package/dist/esm/models/GetQuiz.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
- package/dist/esm/models/GetQuizAttemptAttempt.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +2 -2
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
- package/dist/esm/models/GetQuizListAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetQuizListAllOfQuizzes.d.ts +1 -1
- package/dist/esm/models/GetQuizQuestions.d.ts +1 -1
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
- package/dist/esm/models/GetQuizResults.d.ts +1 -1
- package/dist/esm/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +1 -1
- package/dist/esm/models/GetRole.d.ts +88 -0
- package/dist/esm/models/GetRole.js +80 -0
- package/dist/esm/models/GetScormApiLogItem.d.ts +1 -1
- package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
- package/dist/esm/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetUserRole.d.ts +63 -0
- package/dist/esm/models/GetUserRole.js +67 -0
- package/dist/esm/models/ManualSelection.d.ts +1 -1
- package/dist/esm/models/MultipleAnswer.d.ts +1 -1
- package/dist/esm/models/MultipleAnswer1.d.ts +1 -1
- package/dist/esm/models/NoAnswer.d.ts +1 -1
- package/dist/esm/models/PostContentUpload.d.ts +1 -1
- package/dist/esm/models/PostCourseExport.d.ts +1 -1
- package/dist/esm/models/PostPortalInvite.d.ts +6 -2
- package/dist/esm/models/PostPortalInvite.js +5 -1
- package/dist/esm/models/PostQuestion.d.ts +2 -2
- package/dist/esm/models/PostQuiz.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptAttempt.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptSubmit.d.ts +1 -1
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
- package/dist/esm/models/PostRole.d.ts +57 -0
- package/dist/esm/models/PostRole.js +61 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +2 -2
- package/dist/esm/models/PutQuestion.d.ts +2 -2
- package/dist/esm/models/PutQuiz.d.ts +1 -1
- package/dist/esm/models/PutRole.d.ts +38 -0
- package/dist/esm/models/PutRole.js +45 -0
- package/dist/esm/models/PutRolePermissions.d.ts +32 -0
- package/dist/esm/models/PutRolePermissions.js +43 -0
- package/dist/esm/models/QuizContent.d.ts +1 -1
- package/dist/esm/models/SingleAnswer.d.ts +1 -1
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.js +15 -0
- package/dist/models/CriteriaBasedSelection.d.ts +1 -1
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
- package/dist/models/FillInBlank.d.ts +1 -1
- package/dist/models/FillInBlank1.d.ts +1 -1
- package/dist/models/GetContent.d.ts +1 -1
- package/dist/models/GetContentGradeDetail.d.ts +3 -3
- package/dist/models/GetContentGradesItemsInner.d.ts +2 -2
- package/dist/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
- package/dist/models/GetContentSessionDetail.d.ts +2 -2
- package/dist/models/GetCourseEnrollment.d.ts +2 -2
- package/dist/models/GetCourseEnrollmentListItem.d.ts +2 -2
- package/dist/models/GetCourseExport.d.ts +2 -2
- package/dist/models/GetPermission.d.ts +50 -0
- package/dist/models/GetPermission.js +60 -0
- package/dist/models/GetPortal.d.ts +23 -4
- package/dist/models/GetPortal.js +15 -1
- package/dist/models/GetPortalUser.d.ts +2 -11
- package/dist/models/GetPortalUser.js +0 -9
- package/dist/models/GetQuestion.d.ts +2 -2
- package/dist/models/GetQuestionListFilters.d.ts +2 -2
- package/dist/models/GetQuiz.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
- package/dist/models/GetQuizAttemptAttempt.d.ts +1 -1
- package/dist/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
- package/dist/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/models/GetQuizCriteriaItem.d.ts +2 -2
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
- package/dist/models/GetQuizListAllOfFilters.d.ts +1 -1
- package/dist/models/GetQuizListAllOfQuizzes.d.ts +1 -1
- package/dist/models/GetQuizQuestions.d.ts +1 -1
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
- package/dist/models/GetQuizResults.d.ts +1 -1
- package/dist/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +1 -1
- package/dist/models/GetRole.d.ts +88 -0
- package/dist/models/GetRole.js +88 -0
- package/dist/models/GetScormApiLogItem.d.ts +1 -1
- package/dist/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
- package/dist/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
- package/dist/models/GetUserRole.d.ts +63 -0
- package/dist/models/GetUserRole.js +75 -0
- package/dist/models/ManualSelection.d.ts +1 -1
- package/dist/models/MultipleAnswer.d.ts +1 -1
- package/dist/models/MultipleAnswer1.d.ts +1 -1
- package/dist/models/NoAnswer.d.ts +1 -1
- package/dist/models/PostContentUpload.d.ts +1 -1
- package/dist/models/PostCourseExport.d.ts +1 -1
- package/dist/models/PostPortalInvite.d.ts +6 -2
- package/dist/models/PostPortalInvite.js +5 -1
- package/dist/models/PostQuestion.d.ts +2 -2
- package/dist/models/PostQuiz.d.ts +1 -1
- package/dist/models/PostQuizAttemptAttempt.d.ts +1 -1
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/models/PostQuizAttemptSubmit.d.ts +1 -1
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
- package/dist/models/PostRole.d.ts +57 -0
- package/dist/models/PostRole.js +69 -0
- package/dist/models/PutCourseEnrollment.d.ts +2 -2
- package/dist/models/PutQuestion.d.ts +2 -2
- package/dist/models/PutQuiz.d.ts +1 -1
- package/dist/models/PutRole.d.ts +38 -0
- package/dist/models/PutRole.js +52 -0
- package/dist/models/PutRolePermissions.d.ts +32 -0
- package/dist/models/PutRolePermissions.js +50 -0
- package/dist/models/QuizContent.d.ts +1 -1
- package/dist/models/SingleAnswer.d.ts +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.js +15 -0
- package/docs/ContentApi.md +6 -3
- package/docs/GetPermission.md +41 -0
- package/docs/GetPortal.md +2 -0
- package/docs/GetRole.md +49 -0
- package/docs/GetUserRole.md +41 -0
- package/docs/PortalApi.md +3 -6
- package/docs/PostRole.md +39 -0
- package/docs/PutRole.md +37 -0
- package/docs/PutRolePermissions.md +35 -0
- package/docs/RoleApi.md +685 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +289 -107
- package/src/apis/CourseApi.ts +145 -49
- package/src/apis/ModuleApi.ts +48 -16
- package/src/apis/OtherApi.ts +12 -4
- package/src/apis/PortalApi.ts +85 -34
- package/src/apis/QuestionApi.ts +60 -20
- package/src/apis/QuizApi.ts +300 -100
- package/src/apis/ReportingApi.ts +108 -36
- package/src/apis/RoleApi.ts +576 -0
- package/src/apis/UserApi.ts +84 -28
- package/src/apis/index.ts +1 -0
- package/src/models/CriteriaBasedSelection.ts +1 -1
- package/src/models/CriteriaBasedSelectionCriteria.ts +2 -2
- package/src/models/FillInBlank.ts +1 -1
- package/src/models/FillInBlank1.ts +1 -1
- package/src/models/GetContent.ts +1 -1
- package/src/models/GetContentGradeDetail.ts +3 -3
- package/src/models/GetContentGradesItemsInner.ts +2 -2
- package/src/models/GetContentInstructorBasicReportingContentInfo.ts +1 -1
- package/src/models/GetContentSessionDetail.ts +2 -2
- package/src/models/GetCourseEnrollment.ts +2 -2
- package/src/models/GetCourseEnrollmentListItem.ts +2 -2
- package/src/models/GetCourseExport.ts +2 -2
- package/src/models/GetPermission.ts +92 -0
- package/src/models/GetPortal.ts +26 -4
- package/src/models/GetPortalUser.ts +2 -14
- package/src/models/GetQuestion.ts +2 -2
- package/src/models/GetQuestionListFilters.ts +2 -2
- package/src/models/GetQuiz.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +2 -2
- package/src/models/GetQuizAttemptAttempt.ts +1 -1
- package/src/models/GetQuizAttemptListAllOfAttempts.ts +1 -1
- package/src/models/GetQuizAttemptListAllOfFilters.ts +1 -1
- package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/GetQuizCriteriaItem.ts +2 -2
- package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
- package/src/models/GetQuizListAllOfFilters.ts +1 -1
- package/src/models/GetQuizListAllOfQuizzes.ts +1 -1
- package/src/models/GetQuizQuestions.ts +1 -1
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +2 -2
- package/src/models/GetQuizResults.ts +1 -1
- package/src/models/GetQuizResultsFeedbackDifficultyPerformanceInner.ts +1 -1
- package/src/models/GetQuizResultsQuestionsInner.ts +1 -1
- package/src/models/GetRole.ts +151 -0
- package/src/models/GetScormApiLogItem.ts +1 -1
- package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +1 -1
- package/src/models/GetUserQuizAttemptsAllOfFilters.ts +1 -1
- package/src/models/GetUserRole.ts +109 -0
- package/src/models/ManualSelection.ts +1 -1
- package/src/models/MultipleAnswer.ts +1 -1
- package/src/models/MultipleAnswer1.ts +1 -1
- package/src/models/NoAnswer.ts +1 -1
- package/src/models/PostContentUpload.ts +1 -1
- package/src/models/PostCourseExport.ts +1 -1
- package/src/models/PostPortalInvite.ts +7 -3
- package/src/models/PostQuestion.ts +2 -2
- package/src/models/PostQuiz.ts +1 -1
- package/src/models/PostQuizAttemptAttempt.ts +1 -1
- package/src/models/PostQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/PostQuizAttemptSubmit.ts +1 -1
- package/src/models/PostQuizCriteriaCriteriaInner.ts +2 -2
- package/src/models/PostRole.ts +99 -0
- package/src/models/PutCourseEnrollment.ts +2 -2
- package/src/models/PutQuestion.ts +2 -2
- package/src/models/PutQuiz.ts +1 -1
- package/src/models/PutRole.ts +74 -0
- package/src/models/PutRolePermissions.ts +66 -0
- package/src/models/QuizContent.ts +1 -1
- package/src/models/SingleAnswer.ts +1 -1
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +18 -0
package/dist/apis/ContentApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PostContentSessionEnvironmentEnum = exports.
|
|
25
|
+
exports.PostContentSessionEnvironmentEnum = exports.ListContentSessionsEnvironmentEnum = exports.ContentApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class ContentApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Commit SCORM session data
|
|
33
|
+
* Creates request options for commitScormSession without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
commitScormSessionRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['scormSessionId'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling commitScormSession().');
|
|
@@ -42,12 +41,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
42
41
|
const headerParameters = {};
|
|
43
42
|
let urlPath = `/scorm/sessions/{scormSessionId}/commit`;
|
|
44
43
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
45
|
-
|
|
44
|
+
return {
|
|
46
45
|
path: urlPath,
|
|
47
46
|
method: 'POST',
|
|
48
47
|
headers: headerParameters,
|
|
49
48
|
query: queryParameters,
|
|
50
|
-
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Commit/persist SCORM CMI data changes to the database
|
|
54
|
+
* Commit SCORM session data
|
|
55
|
+
*/
|
|
56
|
+
commitScormSessionRaw(requestParameters, initOverrides) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const requestOptions = yield this.commitScormSessionRequestOpts(requestParameters);
|
|
59
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
51
60
|
return new runtime.VoidApiResponse(response);
|
|
52
61
|
});
|
|
53
62
|
}
|
|
@@ -61,9 +70,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
61
70
|
});
|
|
62
71
|
}
|
|
63
72
|
/**
|
|
64
|
-
*
|
|
73
|
+
* Creates request options for getContent without sending the request
|
|
65
74
|
*/
|
|
66
|
-
|
|
75
|
+
getContentRequestOpts(requestParameters) {
|
|
67
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
77
|
if (requestParameters['contentId'] == null) {
|
|
69
78
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent().');
|
|
@@ -80,12 +89,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
80
89
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
81
90
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
82
91
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
83
|
-
|
|
92
|
+
return {
|
|
84
93
|
path: urlPath,
|
|
85
94
|
method: 'GET',
|
|
86
95
|
headers: headerParameters,
|
|
87
96
|
query: queryParameters,
|
|
88
|
-
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* get content
|
|
102
|
+
*/
|
|
103
|
+
getContentRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const requestOptions = yield this.getContentRequestOpts(requestParameters);
|
|
106
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
89
107
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
90
108
|
});
|
|
91
109
|
}
|
|
@@ -99,9 +117,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
99
117
|
});
|
|
100
118
|
}
|
|
101
119
|
/**
|
|
102
|
-
*
|
|
120
|
+
* Creates request options for getContentList without sending the request
|
|
103
121
|
*/
|
|
104
|
-
|
|
122
|
+
getContentListRequestOpts(requestParameters) {
|
|
105
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
124
|
if (requestParameters['moduleId'] == null) {
|
|
107
125
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling getContentList().');
|
|
@@ -114,12 +132,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
114
132
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents`;
|
|
115
133
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
116
134
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
117
|
-
|
|
135
|
+
return {
|
|
118
136
|
path: urlPath,
|
|
119
137
|
method: 'GET',
|
|
120
138
|
headers: headerParameters,
|
|
121
139
|
query: queryParameters,
|
|
122
|
-
}
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* get content list
|
|
145
|
+
*/
|
|
146
|
+
getContentListRaw(requestParameters, initOverrides) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const requestOptions = yield this.getContentListRequestOpts(requestParameters);
|
|
149
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
123
150
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentListFromJSON)(jsonValue));
|
|
124
151
|
});
|
|
125
152
|
}
|
|
@@ -133,9 +160,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
133
160
|
});
|
|
134
161
|
}
|
|
135
162
|
/**
|
|
136
|
-
*
|
|
163
|
+
* Creates request options for getContentSession without sending the request
|
|
137
164
|
*/
|
|
138
|
-
|
|
165
|
+
getContentSessionRequestOpts(requestParameters) {
|
|
139
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
167
|
if (requestParameters['contentId'] == null) {
|
|
141
168
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentSession().');
|
|
@@ -152,12 +179,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
152
179
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
153
180
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
154
181
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
155
|
-
|
|
182
|
+
return {
|
|
156
183
|
path: urlPath,
|
|
157
184
|
method: 'GET',
|
|
158
185
|
headers: headerParameters,
|
|
159
186
|
query: queryParameters,
|
|
160
|
-
}
|
|
187
|
+
};
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* get content session
|
|
192
|
+
*/
|
|
193
|
+
getContentSessionRaw(requestParameters, initOverrides) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const requestOptions = yield this.getContentSessionRequestOpts(requestParameters);
|
|
196
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
161
197
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentSessionFromJSON)(jsonValue));
|
|
162
198
|
});
|
|
163
199
|
}
|
|
@@ -171,10 +207,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
171
207
|
});
|
|
172
208
|
}
|
|
173
209
|
/**
|
|
174
|
-
*
|
|
175
|
-
* Get content session details (instructor only)
|
|
210
|
+
* Creates request options for getContentSessionDetail without sending the request
|
|
176
211
|
*/
|
|
177
|
-
|
|
212
|
+
getContentSessionDetailRequestOpts(requestParameters) {
|
|
178
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
214
|
if (requestParameters['contentId'] == null) {
|
|
180
215
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentSessionDetail().');
|
|
@@ -195,12 +230,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
195
230
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
196
231
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
197
232
|
urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
|
|
198
|
-
|
|
233
|
+
return {
|
|
199
234
|
path: urlPath,
|
|
200
235
|
method: 'GET',
|
|
201
236
|
headers: headerParameters,
|
|
202
237
|
query: queryParameters,
|
|
203
|
-
}
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Get detailed information about a specific content session
|
|
243
|
+
* Get content session details (instructor only)
|
|
244
|
+
*/
|
|
245
|
+
getContentSessionDetailRaw(requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const requestOptions = yield this.getContentSessionDetailRequestOpts(requestParameters);
|
|
248
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
204
249
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentSessionDetailFromJSON)(jsonValue));
|
|
205
250
|
});
|
|
206
251
|
}
|
|
@@ -215,10 +260,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
215
260
|
});
|
|
216
261
|
}
|
|
217
262
|
/**
|
|
218
|
-
*
|
|
219
|
-
* Get details of a specific content version
|
|
263
|
+
* Creates request options for getContentVersion without sending the request
|
|
220
264
|
*/
|
|
221
|
-
|
|
265
|
+
getContentVersionRequestOpts(requestParameters) {
|
|
222
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
267
|
if (requestParameters['contentId'] == null) {
|
|
224
268
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentVersion().');
|
|
@@ -239,12 +283,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
239
283
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
240
284
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
241
285
|
urlPath = urlPath.replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters['versionId'])));
|
|
242
|
-
|
|
286
|
+
return {
|
|
243
287
|
path: urlPath,
|
|
244
288
|
method: 'GET',
|
|
245
289
|
headers: headerParameters,
|
|
246
290
|
query: queryParameters,
|
|
247
|
-
}
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Returns detailed information about a specific version of the content, including sandbox launch URL and SCORM-specific data (package info and table of contents) if applicable.
|
|
296
|
+
* Get details of a specific content version
|
|
297
|
+
*/
|
|
298
|
+
getContentVersionRaw(requestParameters, initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
const requestOptions = yield this.getContentVersionRequestOpts(requestParameters);
|
|
301
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
248
302
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentVersionFromJSON)(jsonValue));
|
|
249
303
|
});
|
|
250
304
|
}
|
|
@@ -259,10 +313,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
259
313
|
});
|
|
260
314
|
}
|
|
261
315
|
/**
|
|
262
|
-
*
|
|
263
|
-
* Get all versions of a content
|
|
316
|
+
* Creates request options for getContentVersionList without sending the request
|
|
264
317
|
*/
|
|
265
|
-
|
|
318
|
+
getContentVersionListRequestOpts(requestParameters) {
|
|
266
319
|
return __awaiter(this, void 0, void 0, function* () {
|
|
267
320
|
if (requestParameters['contentId'] == null) {
|
|
268
321
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentVersionList().');
|
|
@@ -285,12 +338,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
285
338
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
286
339
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
287
340
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
288
|
-
|
|
341
|
+
return {
|
|
289
342
|
path: urlPath,
|
|
290
343
|
method: 'GET',
|
|
291
344
|
headers: headerParameters,
|
|
292
345
|
query: queryParameters,
|
|
293
|
-
}
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Returns a paginated list of all versions for the specified content. Returns an empty array if the content has no versions.
|
|
351
|
+
* Get all versions of a content
|
|
352
|
+
*/
|
|
353
|
+
getContentVersionListRaw(requestParameters, initOverrides) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
+
const requestOptions = yield this.getContentVersionListRequestOpts(requestParameters);
|
|
356
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
294
357
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentVersionListFromJSON)(jsonValue));
|
|
295
358
|
});
|
|
296
359
|
}
|
|
@@ -305,10 +368,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
305
368
|
});
|
|
306
369
|
}
|
|
307
370
|
/**
|
|
308
|
-
*
|
|
309
|
-
* Get SCORM API call logs (instructor only)
|
|
371
|
+
* Creates request options for getScormApiLogs without sending the request
|
|
310
372
|
*/
|
|
311
|
-
|
|
373
|
+
getScormApiLogsRequestOpts(requestParameters) {
|
|
312
374
|
return __awaiter(this, void 0, void 0, function* () {
|
|
313
375
|
if (requestParameters['sessionId'] == null) {
|
|
314
376
|
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getScormApiLogs().');
|
|
@@ -323,12 +385,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
323
385
|
const headerParameters = {};
|
|
324
386
|
let urlPath = `/scorm/sessions/{sessionId}/api-logs`;
|
|
325
387
|
urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
|
|
326
|
-
|
|
388
|
+
return {
|
|
327
389
|
path: urlPath,
|
|
328
390
|
method: 'GET',
|
|
329
391
|
headers: headerParameters,
|
|
330
392
|
query: queryParameters,
|
|
331
|
-
}
|
|
393
|
+
};
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Get a paginated history of all SCORM API calls made during this session for debugging and troubleshooting
|
|
398
|
+
* Get SCORM API call logs (instructor only)
|
|
399
|
+
*/
|
|
400
|
+
getScormApiLogsRaw(requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
const requestOptions = yield this.getScormApiLogsRequestOpts(requestParameters);
|
|
403
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
332
404
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetScormApiLogsFromJSON)(jsonValue));
|
|
333
405
|
});
|
|
334
406
|
}
|
|
@@ -343,10 +415,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
343
415
|
});
|
|
344
416
|
}
|
|
345
417
|
/**
|
|
346
|
-
*
|
|
347
|
-
* Get details of a SCORM package
|
|
418
|
+
* Creates request options for getScormPackage without sending the request
|
|
348
419
|
*/
|
|
349
|
-
|
|
420
|
+
getScormPackageRequestOpts(requestParameters) {
|
|
350
421
|
return __awaiter(this, void 0, void 0, function* () {
|
|
351
422
|
if (requestParameters['packageId'] == null) {
|
|
352
423
|
throw new runtime.RequiredError('packageId', 'Required parameter "packageId" was null or undefined when calling getScormPackage().');
|
|
@@ -355,12 +426,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
355
426
|
const headerParameters = {};
|
|
356
427
|
let urlPath = `/scorm/packages/{packageId}`;
|
|
357
428
|
urlPath = urlPath.replace(`{${"packageId"}}`, encodeURIComponent(String(requestParameters['packageId'])));
|
|
358
|
-
|
|
429
|
+
return {
|
|
359
430
|
path: urlPath,
|
|
360
431
|
method: 'GET',
|
|
361
432
|
headers: headerParameters,
|
|
362
433
|
query: queryParameters,
|
|
363
|
-
}
|
|
434
|
+
};
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Returns package information and table of contents for a SCORM package
|
|
439
|
+
* Get details of a SCORM package
|
|
440
|
+
*/
|
|
441
|
+
getScormPackageRaw(requestParameters, initOverrides) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
const requestOptions = yield this.getScormPackageRequestOpts(requestParameters);
|
|
444
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
364
445
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetScormPackageFromJSON)(jsonValue));
|
|
365
446
|
});
|
|
366
447
|
}
|
|
@@ -375,10 +456,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
375
456
|
});
|
|
376
457
|
}
|
|
377
458
|
/**
|
|
378
|
-
*
|
|
379
|
-
* Get SCORM session data (instructor only)
|
|
459
|
+
* Creates request options for getScormSessionData without sending the request
|
|
380
460
|
*/
|
|
381
|
-
|
|
461
|
+
getScormSessionDataRequestOpts(requestParameters) {
|
|
382
462
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
463
|
if (requestParameters['scormSessionId'] == null) {
|
|
384
464
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling getScormSessionData().');
|
|
@@ -387,12 +467,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
387
467
|
const headerParameters = {};
|
|
388
468
|
let urlPath = `/scorm/sessions/{scormSessionId}/session-data`;
|
|
389
469
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
390
|
-
|
|
470
|
+
return {
|
|
391
471
|
path: urlPath,
|
|
392
472
|
method: 'GET',
|
|
393
473
|
headers: headerParameters,
|
|
394
474
|
query: queryParameters,
|
|
395
|
-
}
|
|
475
|
+
};
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Get detailed SCORM session data including CMI data dump for debugging
|
|
480
|
+
* Get SCORM session data (instructor only)
|
|
481
|
+
*/
|
|
482
|
+
getScormSessionDataRaw(requestParameters, initOverrides) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
484
|
+
const requestOptions = yield this.getScormSessionDataRequestOpts(requestParameters);
|
|
485
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
396
486
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetScormSessionDataFromJSON)(jsonValue));
|
|
397
487
|
});
|
|
398
488
|
}
|
|
@@ -407,10 +497,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
407
497
|
});
|
|
408
498
|
}
|
|
409
499
|
/**
|
|
410
|
-
*
|
|
411
|
-
* Get a SCORM CMI data element value
|
|
500
|
+
* Creates request options for getScormValue without sending the request
|
|
412
501
|
*/
|
|
413
|
-
|
|
502
|
+
getScormValueRequestOpts(requestParameters) {
|
|
414
503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
415
504
|
if (requestParameters['scormSessionId'] == null) {
|
|
416
505
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling getScormValue().');
|
|
@@ -425,12 +514,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
425
514
|
const headerParameters = {};
|
|
426
515
|
let urlPath = `/scorm/sessions/{scormSessionId}/get-value`;
|
|
427
516
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
428
|
-
|
|
517
|
+
return {
|
|
429
518
|
path: urlPath,
|
|
430
519
|
method: 'GET',
|
|
431
520
|
headers: headerParameters,
|
|
432
521
|
query: queryParameters,
|
|
433
|
-
}
|
|
522
|
+
};
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Retrieve the value of a specific SCORM CMI data element from the session
|
|
527
|
+
* Get a SCORM CMI data element value
|
|
528
|
+
*/
|
|
529
|
+
getScormValueRaw(requestParameters, initOverrides) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
531
|
+
const requestOptions = yield this.getScormValueRequestOpts(requestParameters);
|
|
532
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
434
533
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScormGetValueResponseFromJSON)(jsonValue));
|
|
435
534
|
});
|
|
436
535
|
}
|
|
@@ -445,10 +544,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
445
544
|
});
|
|
446
545
|
}
|
|
447
546
|
/**
|
|
448
|
-
*
|
|
449
|
-
* Initialize a SCORM session
|
|
547
|
+
* Creates request options for initializeScormSession without sending the request
|
|
450
548
|
*/
|
|
451
|
-
|
|
549
|
+
initializeScormSessionRequestOpts(requestParameters) {
|
|
452
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
453
551
|
if (requestParameters['scormSessionId'] == null) {
|
|
454
552
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling initializeScormSession().');
|
|
@@ -457,12 +555,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
457
555
|
const headerParameters = {};
|
|
458
556
|
let urlPath = `/scorm/sessions/{scormSessionId}/initialize`;
|
|
459
557
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
460
|
-
|
|
558
|
+
return {
|
|
461
559
|
path: urlPath,
|
|
462
560
|
method: 'POST',
|
|
463
561
|
headers: headerParameters,
|
|
464
562
|
query: queryParameters,
|
|
465
|
-
}
|
|
563
|
+
};
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Initialize a SCORM session for content playback
|
|
568
|
+
* Initialize a SCORM session
|
|
569
|
+
*/
|
|
570
|
+
initializeScormSessionRaw(requestParameters, initOverrides) {
|
|
571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
+
const requestOptions = yield this.initializeScormSessionRequestOpts(requestParameters);
|
|
573
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
466
574
|
return new runtime.VoidApiResponse(response);
|
|
467
575
|
});
|
|
468
576
|
}
|
|
@@ -476,10 +584,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
476
584
|
});
|
|
477
585
|
}
|
|
478
586
|
/**
|
|
479
|
-
*
|
|
480
|
-
* List content sessions (instructor only)
|
|
587
|
+
* Creates request options for listContentSessions without sending the request
|
|
481
588
|
*/
|
|
482
|
-
|
|
589
|
+
listContentSessionsRequestOpts(requestParameters) {
|
|
483
590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
484
591
|
if (requestParameters['contentId'] == null) {
|
|
485
592
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling listContentSessions().');
|
|
@@ -491,8 +598,11 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
491
598
|
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling listContentSessions().');
|
|
492
599
|
}
|
|
493
600
|
const queryParameters = {};
|
|
494
|
-
if (requestParameters['
|
|
495
|
-
queryParameters['
|
|
601
|
+
if (requestParameters['environment'] != null) {
|
|
602
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
603
|
+
}
|
|
604
|
+
if (requestParameters['userId'] != null) {
|
|
605
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
496
606
|
}
|
|
497
607
|
if (requestParameters['page'] != null) {
|
|
498
608
|
queryParameters['page'] = requestParameters['page'];
|
|
@@ -505,12 +615,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
505
615
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
506
616
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
507
617
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
508
|
-
|
|
618
|
+
return {
|
|
509
619
|
path: urlPath,
|
|
510
620
|
method: 'GET',
|
|
511
621
|
headers: headerParameters,
|
|
512
622
|
query: queryParameters,
|
|
513
|
-
}
|
|
623
|
+
};
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Get a paginated list of all content sessions for a specific content item
|
|
628
|
+
* List content sessions (instructor only)
|
|
629
|
+
*/
|
|
630
|
+
listContentSessionsRaw(requestParameters, initOverrides) {
|
|
631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
+
const requestOptions = yield this.listContentSessionsRequestOpts(requestParameters);
|
|
633
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
514
634
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentSessionListFromJSON)(jsonValue));
|
|
515
635
|
});
|
|
516
636
|
}
|
|
@@ -525,9 +645,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
525
645
|
});
|
|
526
646
|
}
|
|
527
647
|
/**
|
|
528
|
-
*
|
|
648
|
+
* Creates request options for postContentProcess without sending the request
|
|
529
649
|
*/
|
|
530
|
-
|
|
650
|
+
postContentProcessRequestOpts(requestParameters) {
|
|
531
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
532
652
|
if (requestParameters['moduleId'] == null) {
|
|
533
653
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentProcess().');
|
|
@@ -544,12 +664,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
544
664
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
545
665
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
546
666
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
547
|
-
|
|
667
|
+
return {
|
|
548
668
|
path: urlPath,
|
|
549
669
|
method: 'POST',
|
|
550
670
|
headers: headerParameters,
|
|
551
671
|
query: queryParameters,
|
|
552
|
-
}
|
|
672
|
+
};
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Post a new content process
|
|
677
|
+
*/
|
|
678
|
+
postContentProcessRaw(requestParameters, initOverrides) {
|
|
679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
680
|
+
const requestOptions = yield this.postContentProcessRequestOpts(requestParameters);
|
|
681
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
553
682
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
554
683
|
});
|
|
555
684
|
}
|
|
@@ -563,10 +692,10 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
563
692
|
});
|
|
564
693
|
}
|
|
565
694
|
/**
|
|
566
|
-
*
|
|
695
|
+
* Creates request options for postContentQuiz without sending the request
|
|
567
696
|
* @deprecated
|
|
568
697
|
*/
|
|
569
|
-
|
|
698
|
+
postContentQuizRequestOpts(requestParameters) {
|
|
570
699
|
return __awaiter(this, void 0, void 0, function* () {
|
|
571
700
|
if (requestParameters['moduleId'] == null) {
|
|
572
701
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentQuiz().');
|
|
@@ -583,13 +712,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
583
712
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/quiz`;
|
|
584
713
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
585
714
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
586
|
-
|
|
715
|
+
return {
|
|
587
716
|
path: urlPath,
|
|
588
717
|
method: 'POST',
|
|
589
718
|
headers: headerParameters,
|
|
590
719
|
query: queryParameters,
|
|
591
720
|
body: (0, index_1.PostContentQuizToJSON)(requestParameters['postContentQuiz']),
|
|
592
|
-
}
|
|
721
|
+
};
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Create a new quiz content
|
|
726
|
+
* @deprecated
|
|
727
|
+
*/
|
|
728
|
+
postContentQuizRaw(requestParameters, initOverrides) {
|
|
729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
730
|
+
const requestOptions = yield this.postContentQuizRequestOpts(requestParameters);
|
|
731
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
593
732
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
594
733
|
});
|
|
595
734
|
}
|
|
@@ -604,9 +743,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
604
743
|
});
|
|
605
744
|
}
|
|
606
745
|
/**
|
|
607
|
-
*
|
|
746
|
+
* Creates request options for postContentSession without sending the request
|
|
608
747
|
*/
|
|
609
|
-
|
|
748
|
+
postContentSessionRequestOpts(requestParameters) {
|
|
610
749
|
return __awaiter(this, void 0, void 0, function* () {
|
|
611
750
|
if (requestParameters['contentId'] == null) {
|
|
612
751
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling postContentSession().');
|
|
@@ -626,12 +765,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
626
765
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
627
766
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
628
767
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
629
|
-
|
|
768
|
+
return {
|
|
630
769
|
path: urlPath,
|
|
631
770
|
method: 'POST',
|
|
632
771
|
headers: headerParameters,
|
|
633
772
|
query: queryParameters,
|
|
634
|
-
}
|
|
773
|
+
};
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Post a new content session
|
|
778
|
+
*/
|
|
779
|
+
postContentSessionRaw(requestParameters, initOverrides) {
|
|
780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
781
|
+
const requestOptions = yield this.postContentSessionRequestOpts(requestParameters);
|
|
782
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
635
783
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostContentSessionFromJSON)(jsonValue));
|
|
636
784
|
});
|
|
637
785
|
}
|
|
@@ -645,9 +793,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
645
793
|
});
|
|
646
794
|
}
|
|
647
795
|
/**
|
|
648
|
-
*
|
|
796
|
+
* Creates request options for postContentUpload without sending the request
|
|
649
797
|
*/
|
|
650
|
-
|
|
798
|
+
postContentUploadRequestOpts(requestParameters) {
|
|
651
799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
652
800
|
if (requestParameters['moduleId'] == null) {
|
|
653
801
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentUpload().');
|
|
@@ -664,13 +812,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
664
812
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/upload`;
|
|
665
813
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
666
814
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
667
|
-
|
|
815
|
+
return {
|
|
668
816
|
path: urlPath,
|
|
669
817
|
method: 'POST',
|
|
670
818
|
headers: headerParameters,
|
|
671
819
|
query: queryParameters,
|
|
672
820
|
body: (0, index_1.PostContentUploadToJSON)(requestParameters['postContentUpload']),
|
|
673
|
-
}
|
|
821
|
+
};
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Post a new content upload
|
|
826
|
+
*/
|
|
827
|
+
postContentUploadRaw(requestParameters, initOverrides) {
|
|
828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
829
|
+
const requestOptions = yield this.postContentUploadRequestOpts(requestParameters);
|
|
830
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
674
831
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentUploadFromJSON)(jsonValue));
|
|
675
832
|
});
|
|
676
833
|
}
|
|
@@ -684,9 +841,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
684
841
|
});
|
|
685
842
|
}
|
|
686
843
|
/**
|
|
687
|
-
*
|
|
844
|
+
* Creates request options for putContent without sending the request
|
|
688
845
|
*/
|
|
689
|
-
|
|
846
|
+
putContentRequestOpts(requestParameters) {
|
|
690
847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
691
848
|
if (requestParameters['contentId'] == null) {
|
|
692
849
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling putContent().');
|
|
@@ -707,13 +864,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
707
864
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
708
865
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
709
866
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
710
|
-
|
|
867
|
+
return {
|
|
711
868
|
path: urlPath,
|
|
712
869
|
method: 'PUT',
|
|
713
870
|
headers: headerParameters,
|
|
714
871
|
query: queryParameters,
|
|
715
872
|
body: (0, index_1.PutContentToJSON)(requestParameters['putContent']),
|
|
716
|
-
}
|
|
873
|
+
};
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Update content by id
|
|
878
|
+
*/
|
|
879
|
+
putContentRaw(requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
const requestOptions = yield this.putContentRequestOpts(requestParameters);
|
|
882
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
717
883
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
718
884
|
});
|
|
719
885
|
}
|
|
@@ -727,10 +893,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
727
893
|
});
|
|
728
894
|
}
|
|
729
895
|
/**
|
|
730
|
-
*
|
|
731
|
-
* Update a content version
|
|
896
|
+
* Creates request options for putContentVersion without sending the request
|
|
732
897
|
*/
|
|
733
|
-
|
|
898
|
+
putContentVersionRequestOpts(requestParameters) {
|
|
734
899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
735
900
|
if (requestParameters['contentId'] == null) {
|
|
736
901
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling putContentVersion().');
|
|
@@ -755,13 +920,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
755
920
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
756
921
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
757
922
|
urlPath = urlPath.replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters['versionId'])));
|
|
758
|
-
|
|
923
|
+
return {
|
|
759
924
|
path: urlPath,
|
|
760
925
|
method: 'PUT',
|
|
761
926
|
headers: headerParameters,
|
|
762
927
|
query: queryParameters,
|
|
763
928
|
body: (0, index_1.PutContentVersionToJSON)(requestParameters['putContentVersion']),
|
|
764
|
-
}
|
|
929
|
+
};
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Activates this version by setting is_active to true. Automatically deactivates all other versions of the same content. Only setting is_active to true is allowed.
|
|
934
|
+
* Update a content version
|
|
935
|
+
*/
|
|
936
|
+
putContentVersionRaw(requestParameters, initOverrides) {
|
|
937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
+
const requestOptions = yield this.putContentVersionRequestOpts(requestParameters);
|
|
939
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
765
940
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentVersionFromJSON)(jsonValue));
|
|
766
941
|
});
|
|
767
942
|
}
|
|
@@ -776,10 +951,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
776
951
|
});
|
|
777
952
|
}
|
|
778
953
|
/**
|
|
779
|
-
*
|
|
780
|
-
* Set a SCORM CMI data element value
|
|
954
|
+
* Creates request options for setScormValue without sending the request
|
|
781
955
|
*/
|
|
782
|
-
|
|
956
|
+
setScormValueRequestOpts(requestParameters) {
|
|
783
957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
784
958
|
if (requestParameters['scormSessionId'] == null) {
|
|
785
959
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling setScormValue().');
|
|
@@ -792,13 +966,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
792
966
|
headerParameters['Content-Type'] = 'application/json';
|
|
793
967
|
let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
|
|
794
968
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
795
|
-
|
|
969
|
+
return {
|
|
796
970
|
path: urlPath,
|
|
797
971
|
method: 'POST',
|
|
798
972
|
headers: headerParameters,
|
|
799
973
|
query: queryParameters,
|
|
800
974
|
body: (0, index_1.ScormSetValueRequestToJSON)(requestParameters['scormSetValueRequest']),
|
|
801
|
-
}
|
|
975
|
+
};
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Update the value of a specific SCORM CMI data element in the session
|
|
980
|
+
* Set a SCORM CMI data element value
|
|
981
|
+
*/
|
|
982
|
+
setScormValueRaw(requestParameters, initOverrides) {
|
|
983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
984
|
+
const requestOptions = yield this.setScormValueRequestOpts(requestParameters);
|
|
985
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
802
986
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScormSetValueResponseFromJSON)(jsonValue));
|
|
803
987
|
});
|
|
804
988
|
}
|
|
@@ -813,10 +997,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
813
997
|
});
|
|
814
998
|
}
|
|
815
999
|
/**
|
|
816
|
-
*
|
|
817
|
-
* Terminate a SCORM session
|
|
1000
|
+
* Creates request options for terminateScormSession without sending the request
|
|
818
1001
|
*/
|
|
819
|
-
|
|
1002
|
+
terminateScormSessionRequestOpts(requestParameters) {
|
|
820
1003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
821
1004
|
if (requestParameters['scormSessionId'] == null) {
|
|
822
1005
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling terminateScormSession().');
|
|
@@ -825,12 +1008,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
825
1008
|
const headerParameters = {};
|
|
826
1009
|
let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
|
|
827
1010
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
828
|
-
|
|
1011
|
+
return {
|
|
829
1012
|
path: urlPath,
|
|
830
1013
|
method: 'POST',
|
|
831
1014
|
headers: headerParameters,
|
|
832
1015
|
query: queryParameters,
|
|
833
|
-
}
|
|
1016
|
+
};
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Terminate the SCORM session and finalize all data
|
|
1021
|
+
* Terminate a SCORM session
|
|
1022
|
+
*/
|
|
1023
|
+
terminateScormSessionRaw(requestParameters, initOverrides) {
|
|
1024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1025
|
+
const requestOptions = yield this.terminateScormSessionRequestOpts(requestParameters);
|
|
1026
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
834
1027
|
return new runtime.VoidApiResponse(response);
|
|
835
1028
|
});
|
|
836
1029
|
}
|
|
@@ -844,10 +1037,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
844
1037
|
});
|
|
845
1038
|
}
|
|
846
1039
|
/**
|
|
847
|
-
*
|
|
848
|
-
* Parse and verify a SCORM manifest
|
|
1040
|
+
* Creates request options for verifyScormManifest without sending the request
|
|
849
1041
|
*/
|
|
850
|
-
|
|
1042
|
+
verifyScormManifestRequestOpts(requestParameters) {
|
|
851
1043
|
return __awaiter(this, void 0, void 0, function* () {
|
|
852
1044
|
if (requestParameters['body'] == null) {
|
|
853
1045
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling verifyScormManifest().');
|
|
@@ -856,13 +1048,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
856
1048
|
const headerParameters = {};
|
|
857
1049
|
headerParameters['Content-Type'] = 'application/xml';
|
|
858
1050
|
let urlPath = `/scorm/tools/verify-manifest`;
|
|
859
|
-
|
|
1051
|
+
return {
|
|
860
1052
|
path: urlPath,
|
|
861
1053
|
method: 'POST',
|
|
862
1054
|
headers: headerParameters,
|
|
863
1055
|
query: queryParameters,
|
|
864
1056
|
body: requestParameters['body'],
|
|
865
|
-
}
|
|
1057
|
+
};
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Takes raw imsmanifest.xml content and returns the parsed manifest structure with validation warnings
|
|
1062
|
+
* Parse and verify a SCORM manifest
|
|
1063
|
+
*/
|
|
1064
|
+
verifyScormManifestRaw(requestParameters, initOverrides) {
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1066
|
+
const requestOptions = yield this.verifyScormManifestRequestOpts(requestParameters);
|
|
1067
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
866
1068
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostVerifyManifestFromJSON)(jsonValue));
|
|
867
1069
|
});
|
|
868
1070
|
}
|
|
@@ -881,7 +1083,7 @@ exports.ContentApi = ContentApi;
|
|
|
881
1083
|
/**
|
|
882
1084
|
* @export
|
|
883
1085
|
*/
|
|
884
|
-
exports.
|
|
1086
|
+
exports.ListContentSessionsEnvironmentEnum = {
|
|
885
1087
|
Sandbox: 'SANDBOX',
|
|
886
1088
|
Live: 'LIVE'
|
|
887
1089
|
};
|