@easyedu/js-lsm-api 1.32.0 → 1.34.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 +89 -0
- package/dist/apis/ContentApi.js +301 -102
- 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 +89 -0
- package/dist/esm/apis/ContentApi.js +301 -102
- 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 +9 -20
- package/dist/esm/models/GetPortal.js +8 -14
- 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 +9 -20
- package/dist/models/GetPortal.js +9 -15
- 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/GetPermission.md +41 -0
- package/docs/GetPortal.md +2 -4
- 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 +279 -102
- 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 +12 -26
- 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
|
@@ -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().');
|
|
@@ -508,12 +615,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
508
615
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
509
616
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
510
617
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
511
|
-
|
|
618
|
+
return {
|
|
512
619
|
path: urlPath,
|
|
513
620
|
method: 'GET',
|
|
514
621
|
headers: headerParameters,
|
|
515
622
|
query: queryParameters,
|
|
516
|
-
}
|
|
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);
|
|
517
634
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentSessionListFromJSON)(jsonValue));
|
|
518
635
|
});
|
|
519
636
|
}
|
|
@@ -528,9 +645,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
528
645
|
});
|
|
529
646
|
}
|
|
530
647
|
/**
|
|
531
|
-
*
|
|
648
|
+
* Creates request options for postContentProcess without sending the request
|
|
532
649
|
*/
|
|
533
|
-
|
|
650
|
+
postContentProcessRequestOpts(requestParameters) {
|
|
534
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
535
652
|
if (requestParameters['moduleId'] == null) {
|
|
536
653
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentProcess().');
|
|
@@ -547,12 +664,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
547
664
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
548
665
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
549
666
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
550
|
-
|
|
667
|
+
return {
|
|
551
668
|
path: urlPath,
|
|
552
669
|
method: 'POST',
|
|
553
670
|
headers: headerParameters,
|
|
554
671
|
query: queryParameters,
|
|
555
|
-
}
|
|
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);
|
|
556
682
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
557
683
|
});
|
|
558
684
|
}
|
|
@@ -566,10 +692,10 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
566
692
|
});
|
|
567
693
|
}
|
|
568
694
|
/**
|
|
569
|
-
*
|
|
695
|
+
* Creates request options for postContentQuiz without sending the request
|
|
570
696
|
* @deprecated
|
|
571
697
|
*/
|
|
572
|
-
|
|
698
|
+
postContentQuizRequestOpts(requestParameters) {
|
|
573
699
|
return __awaiter(this, void 0, void 0, function* () {
|
|
574
700
|
if (requestParameters['moduleId'] == null) {
|
|
575
701
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentQuiz().');
|
|
@@ -586,13 +712,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
586
712
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/quiz`;
|
|
587
713
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
588
714
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
589
|
-
|
|
715
|
+
return {
|
|
590
716
|
path: urlPath,
|
|
591
717
|
method: 'POST',
|
|
592
718
|
headers: headerParameters,
|
|
593
719
|
query: queryParameters,
|
|
594
720
|
body: (0, index_1.PostContentQuizToJSON)(requestParameters['postContentQuiz']),
|
|
595
|
-
}
|
|
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);
|
|
596
732
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
597
733
|
});
|
|
598
734
|
}
|
|
@@ -607,9 +743,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
607
743
|
});
|
|
608
744
|
}
|
|
609
745
|
/**
|
|
610
|
-
*
|
|
746
|
+
* Creates request options for postContentSession without sending the request
|
|
611
747
|
*/
|
|
612
|
-
|
|
748
|
+
postContentSessionRequestOpts(requestParameters) {
|
|
613
749
|
return __awaiter(this, void 0, void 0, function* () {
|
|
614
750
|
if (requestParameters['contentId'] == null) {
|
|
615
751
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling postContentSession().');
|
|
@@ -629,12 +765,21 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
629
765
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
630
766
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
631
767
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
632
|
-
|
|
768
|
+
return {
|
|
633
769
|
path: urlPath,
|
|
634
770
|
method: 'POST',
|
|
635
771
|
headers: headerParameters,
|
|
636
772
|
query: queryParameters,
|
|
637
|
-
}
|
|
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);
|
|
638
783
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostContentSessionFromJSON)(jsonValue));
|
|
639
784
|
});
|
|
640
785
|
}
|
|
@@ -648,9 +793,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
648
793
|
});
|
|
649
794
|
}
|
|
650
795
|
/**
|
|
651
|
-
*
|
|
796
|
+
* Creates request options for postContentUpload without sending the request
|
|
652
797
|
*/
|
|
653
|
-
|
|
798
|
+
postContentUploadRequestOpts(requestParameters) {
|
|
654
799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
655
800
|
if (requestParameters['moduleId'] == null) {
|
|
656
801
|
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentUpload().');
|
|
@@ -667,13 +812,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
667
812
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/upload`;
|
|
668
813
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
669
814
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
670
|
-
|
|
815
|
+
return {
|
|
671
816
|
path: urlPath,
|
|
672
817
|
method: 'POST',
|
|
673
818
|
headers: headerParameters,
|
|
674
819
|
query: queryParameters,
|
|
675
820
|
body: (0, index_1.PostContentUploadToJSON)(requestParameters['postContentUpload']),
|
|
676
|
-
}
|
|
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);
|
|
677
831
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentUploadFromJSON)(jsonValue));
|
|
678
832
|
});
|
|
679
833
|
}
|
|
@@ -687,9 +841,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
687
841
|
});
|
|
688
842
|
}
|
|
689
843
|
/**
|
|
690
|
-
*
|
|
844
|
+
* Creates request options for putContent without sending the request
|
|
691
845
|
*/
|
|
692
|
-
|
|
846
|
+
putContentRequestOpts(requestParameters) {
|
|
693
847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
694
848
|
if (requestParameters['contentId'] == null) {
|
|
695
849
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling putContent().');
|
|
@@ -710,13 +864,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
710
864
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
711
865
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
712
866
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
713
|
-
|
|
867
|
+
return {
|
|
714
868
|
path: urlPath,
|
|
715
869
|
method: 'PUT',
|
|
716
870
|
headers: headerParameters,
|
|
717
871
|
query: queryParameters,
|
|
718
872
|
body: (0, index_1.PutContentToJSON)(requestParameters['putContent']),
|
|
719
|
-
}
|
|
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);
|
|
720
883
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentFromJSON)(jsonValue));
|
|
721
884
|
});
|
|
722
885
|
}
|
|
@@ -730,10 +893,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
730
893
|
});
|
|
731
894
|
}
|
|
732
895
|
/**
|
|
733
|
-
*
|
|
734
|
-
* Update a content version
|
|
896
|
+
* Creates request options for putContentVersion without sending the request
|
|
735
897
|
*/
|
|
736
|
-
|
|
898
|
+
putContentVersionRequestOpts(requestParameters) {
|
|
737
899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
738
900
|
if (requestParameters['contentId'] == null) {
|
|
739
901
|
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling putContentVersion().');
|
|
@@ -758,13 +920,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
758
920
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
759
921
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
760
922
|
urlPath = urlPath.replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters['versionId'])));
|
|
761
|
-
|
|
923
|
+
return {
|
|
762
924
|
path: urlPath,
|
|
763
925
|
method: 'PUT',
|
|
764
926
|
headers: headerParameters,
|
|
765
927
|
query: queryParameters,
|
|
766
928
|
body: (0, index_1.PutContentVersionToJSON)(requestParameters['putContentVersion']),
|
|
767
|
-
}
|
|
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);
|
|
768
940
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentVersionFromJSON)(jsonValue));
|
|
769
941
|
});
|
|
770
942
|
}
|
|
@@ -779,10 +951,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
779
951
|
});
|
|
780
952
|
}
|
|
781
953
|
/**
|
|
782
|
-
*
|
|
783
|
-
* Set a SCORM CMI data element value
|
|
954
|
+
* Creates request options for setScormValue without sending the request
|
|
784
955
|
*/
|
|
785
|
-
|
|
956
|
+
setScormValueRequestOpts(requestParameters) {
|
|
786
957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
787
958
|
if (requestParameters['scormSessionId'] == null) {
|
|
788
959
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling setScormValue().');
|
|
@@ -795,13 +966,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
795
966
|
headerParameters['Content-Type'] = 'application/json';
|
|
796
967
|
let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
|
|
797
968
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
798
|
-
|
|
969
|
+
return {
|
|
799
970
|
path: urlPath,
|
|
800
971
|
method: 'POST',
|
|
801
972
|
headers: headerParameters,
|
|
802
973
|
query: queryParameters,
|
|
803
974
|
body: (0, index_1.ScormSetValueRequestToJSON)(requestParameters['scormSetValueRequest']),
|
|
804
|
-
}
|
|
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);
|
|
805
986
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScormSetValueResponseFromJSON)(jsonValue));
|
|
806
987
|
});
|
|
807
988
|
}
|
|
@@ -816,10 +997,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
816
997
|
});
|
|
817
998
|
}
|
|
818
999
|
/**
|
|
819
|
-
*
|
|
820
|
-
* Terminate a SCORM session
|
|
1000
|
+
* Creates request options for terminateScormSession without sending the request
|
|
821
1001
|
*/
|
|
822
|
-
|
|
1002
|
+
terminateScormSessionRequestOpts(requestParameters) {
|
|
823
1003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
824
1004
|
if (requestParameters['scormSessionId'] == null) {
|
|
825
1005
|
throw new runtime.RequiredError('scormSessionId', 'Required parameter "scormSessionId" was null or undefined when calling terminateScormSession().');
|
|
@@ -828,12 +1008,22 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
828
1008
|
const headerParameters = {};
|
|
829
1009
|
let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
|
|
830
1010
|
urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
831
|
-
|
|
1011
|
+
return {
|
|
832
1012
|
path: urlPath,
|
|
833
1013
|
method: 'POST',
|
|
834
1014
|
headers: headerParameters,
|
|
835
1015
|
query: queryParameters,
|
|
836
|
-
}
|
|
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);
|
|
837
1027
|
return new runtime.VoidApiResponse(response);
|
|
838
1028
|
});
|
|
839
1029
|
}
|
|
@@ -847,10 +1037,9 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
847
1037
|
});
|
|
848
1038
|
}
|
|
849
1039
|
/**
|
|
850
|
-
*
|
|
851
|
-
* Parse and verify a SCORM manifest
|
|
1040
|
+
* Creates request options for verifyScormManifest without sending the request
|
|
852
1041
|
*/
|
|
853
|
-
|
|
1042
|
+
verifyScormManifestRequestOpts(requestParameters) {
|
|
854
1043
|
return __awaiter(this, void 0, void 0, function* () {
|
|
855
1044
|
if (requestParameters['body'] == null) {
|
|
856
1045
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling verifyScormManifest().');
|
|
@@ -859,13 +1048,23 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
859
1048
|
const headerParameters = {};
|
|
860
1049
|
headerParameters['Content-Type'] = 'application/xml';
|
|
861
1050
|
let urlPath = `/scorm/tools/verify-manifest`;
|
|
862
|
-
|
|
1051
|
+
return {
|
|
863
1052
|
path: urlPath,
|
|
864
1053
|
method: 'POST',
|
|
865
1054
|
headers: headerParameters,
|
|
866
1055
|
query: queryParameters,
|
|
867
1056
|
body: requestParameters['body'],
|
|
868
|
-
}
|
|
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);
|
|
869
1068
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostVerifyManifestFromJSON)(jsonValue));
|
|
870
1069
|
});
|
|
871
1070
|
}
|