@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/src/apis/ReportingApi.ts
CHANGED
|
@@ -103,9 +103,9 @@ export interface GetPortalStudentReportingRequest {
|
|
|
103
103
|
export class ReportingApi extends runtime.BaseAPI {
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Creates request options for getContentGradeDetail without sending the request
|
|
107
107
|
*/
|
|
108
|
-
async
|
|
108
|
+
async getContentGradeDetailRequestOpts(requestParameters: GetContentGradeDetailRequest): Promise<runtime.RequestOpts> {
|
|
109
109
|
if (requestParameters['courseId'] == null) {
|
|
110
110
|
throw new runtime.RequiredError(
|
|
111
111
|
'courseId',
|
|
@@ -145,12 +145,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
145
145
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
146
146
|
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
return {
|
|
149
149
|
path: urlPath,
|
|
150
150
|
method: 'GET',
|
|
151
151
|
headers: headerParameters,
|
|
152
152
|
query: queryParameters,
|
|
153
|
-
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Get detailed grade information for a specific student and content (can use \'current\' for studentId)
|
|
158
|
+
*/
|
|
159
|
+
async getContentGradeDetailRaw(requestParameters: GetContentGradeDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentGradeDetail>> {
|
|
160
|
+
const requestOptions = await this.getContentGradeDetailRequestOpts(requestParameters);
|
|
161
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
154
162
|
|
|
155
163
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetContentGradeDetailFromJSON(jsonValue));
|
|
156
164
|
}
|
|
@@ -164,9 +172,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
164
172
|
}
|
|
165
173
|
|
|
166
174
|
/**
|
|
167
|
-
*
|
|
175
|
+
* Creates request options for getContentGrades without sending the request
|
|
168
176
|
*/
|
|
169
|
-
async
|
|
177
|
+
async getContentGradesRequestOpts(requestParameters: GetContentGradesRequest): Promise<runtime.RequestOpts> {
|
|
170
178
|
if (requestParameters['courseId'] == null) {
|
|
171
179
|
throw new runtime.RequiredError(
|
|
172
180
|
'courseId',
|
|
@@ -210,12 +218,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
210
218
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
211
219
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
212
220
|
|
|
213
|
-
|
|
221
|
+
return {
|
|
214
222
|
path: urlPath,
|
|
215
223
|
method: 'GET',
|
|
216
224
|
headers: headerParameters,
|
|
217
225
|
query: queryParameters,
|
|
218
|
-
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Get grades for all students enrolled in course for specific content
|
|
231
|
+
*/
|
|
232
|
+
async getContentGradesRaw(requestParameters: GetContentGradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentGrades>> {
|
|
233
|
+
const requestOptions = await this.getContentGradesRequestOpts(requestParameters);
|
|
234
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
219
235
|
|
|
220
236
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetContentGradesFromJSON(jsonValue));
|
|
221
237
|
}
|
|
@@ -229,9 +245,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
229
245
|
}
|
|
230
246
|
|
|
231
247
|
/**
|
|
232
|
-
*
|
|
248
|
+
* Creates request options for getContentInstructorBasicReporting without sending the request
|
|
233
249
|
*/
|
|
234
|
-
async
|
|
250
|
+
async getContentInstructorBasicReportingRequestOpts(requestParameters: GetContentInstructorBasicReportingRequest): Promise<runtime.RequestOpts> {
|
|
235
251
|
if (requestParameters['courseId'] == null) {
|
|
236
252
|
throw new runtime.RequiredError(
|
|
237
253
|
'courseId',
|
|
@@ -263,12 +279,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
263
279
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
264
280
|
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
265
281
|
|
|
266
|
-
|
|
282
|
+
return {
|
|
267
283
|
path: urlPath,
|
|
268
284
|
method: 'GET',
|
|
269
285
|
headers: headerParameters,
|
|
270
286
|
query: queryParameters,
|
|
271
|
-
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Get basic instructor reporting for content
|
|
292
|
+
*/
|
|
293
|
+
async getContentInstructorBasicReportingRaw(requestParameters: GetContentInstructorBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentInstructorBasicReporting>> {
|
|
294
|
+
const requestOptions = await this.getContentInstructorBasicReportingRequestOpts(requestParameters);
|
|
295
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
272
296
|
|
|
273
297
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetContentInstructorBasicReportingFromJSON(jsonValue));
|
|
274
298
|
}
|
|
@@ -282,9 +306,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
282
306
|
}
|
|
283
307
|
|
|
284
308
|
/**
|
|
285
|
-
*
|
|
309
|
+
* Creates request options for getCourseInstructorReportingBasic without sending the request
|
|
286
310
|
*/
|
|
287
|
-
async
|
|
311
|
+
async getCourseInstructorReportingBasicRequestOpts(requestParameters: GetCourseInstructorReportingBasicRequest): Promise<runtime.RequestOpts> {
|
|
288
312
|
if (requestParameters['courseId'] == null) {
|
|
289
313
|
throw new runtime.RequiredError(
|
|
290
314
|
'courseId',
|
|
@@ -300,12 +324,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
300
324
|
let urlPath = `/courses/{courseId}/reporting/instructor/basic`;
|
|
301
325
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
302
326
|
|
|
303
|
-
|
|
327
|
+
return {
|
|
304
328
|
path: urlPath,
|
|
305
329
|
method: 'GET',
|
|
306
330
|
headers: headerParameters,
|
|
307
331
|
query: queryParameters,
|
|
308
|
-
}
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Get basic course reporting data for instructors
|
|
337
|
+
*/
|
|
338
|
+
async getCourseInstructorReportingBasicRaw(requestParameters: GetCourseInstructorReportingBasicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseReportingBasic>> {
|
|
339
|
+
const requestOptions = await this.getCourseInstructorReportingBasicRequestOpts(requestParameters);
|
|
340
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
309
341
|
|
|
310
342
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseReportingBasicFromJSON(jsonValue));
|
|
311
343
|
}
|
|
@@ -319,9 +351,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
319
351
|
}
|
|
320
352
|
|
|
321
353
|
/**
|
|
322
|
-
*
|
|
354
|
+
* Creates request options for getCourseStudentReporting without sending the request
|
|
323
355
|
*/
|
|
324
|
-
async
|
|
356
|
+
async getCourseStudentReportingRequestOpts(requestParameters: GetCourseStudentReportingRequest): Promise<runtime.RequestOpts> {
|
|
325
357
|
if (requestParameters['courseId'] == null) {
|
|
326
358
|
throw new runtime.RequiredError(
|
|
327
359
|
'courseId',
|
|
@@ -345,12 +377,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
345
377
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
346
378
|
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
347
379
|
|
|
348
|
-
|
|
380
|
+
return {
|
|
349
381
|
path: urlPath,
|
|
350
382
|
method: 'GET',
|
|
351
383
|
headers: headerParameters,
|
|
352
384
|
query: queryParameters,
|
|
353
|
-
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Get student-specific reporting for a course (can use \'current\' for studentId)
|
|
390
|
+
*/
|
|
391
|
+
async getCourseStudentReportingRaw(requestParameters: GetCourseStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseStudentReporting>> {
|
|
392
|
+
const requestOptions = await this.getCourseStudentReportingRequestOpts(requestParameters);
|
|
393
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
354
394
|
|
|
355
395
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseStudentReportingFromJSON(jsonValue));
|
|
356
396
|
}
|
|
@@ -364,9 +404,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
364
404
|
}
|
|
365
405
|
|
|
366
406
|
/**
|
|
367
|
-
*
|
|
407
|
+
* Creates request options for getModuleInstructorBasicReporting without sending the request
|
|
368
408
|
*/
|
|
369
|
-
async
|
|
409
|
+
async getModuleInstructorBasicReportingRequestOpts(requestParameters: GetModuleInstructorBasicReportingRequest): Promise<runtime.RequestOpts> {
|
|
370
410
|
if (requestParameters['courseId'] == null) {
|
|
371
411
|
throw new runtime.RequiredError(
|
|
372
412
|
'courseId',
|
|
@@ -390,12 +430,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
390
430
|
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
391
431
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
392
432
|
|
|
393
|
-
|
|
433
|
+
return {
|
|
394
434
|
path: urlPath,
|
|
395
435
|
method: 'GET',
|
|
396
436
|
headers: headerParameters,
|
|
397
437
|
query: queryParameters,
|
|
398
|
-
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Get basic instructor reporting for a module
|
|
443
|
+
*/
|
|
444
|
+
async getModuleInstructorBasicReportingRaw(requestParameters: GetModuleInstructorBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModuleInstructorBasicReporting>> {
|
|
445
|
+
const requestOptions = await this.getModuleInstructorBasicReportingRequestOpts(requestParameters);
|
|
446
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
399
447
|
|
|
400
448
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetModuleInstructorBasicReportingFromJSON(jsonValue));
|
|
401
449
|
}
|
|
@@ -409,9 +457,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
409
457
|
}
|
|
410
458
|
|
|
411
459
|
/**
|
|
412
|
-
*
|
|
460
|
+
* Creates request options for getModuleStudentReporting without sending the request
|
|
413
461
|
*/
|
|
414
|
-
async
|
|
462
|
+
async getModuleStudentReportingRequestOpts(requestParameters: GetModuleStudentReportingRequest): Promise<runtime.RequestOpts> {
|
|
415
463
|
if (requestParameters['courseId'] == null) {
|
|
416
464
|
throw new runtime.RequiredError(
|
|
417
465
|
'courseId',
|
|
@@ -443,12 +491,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
443
491
|
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
444
492
|
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
445
493
|
|
|
446
|
-
|
|
494
|
+
return {
|
|
447
495
|
path: urlPath,
|
|
448
496
|
method: 'GET',
|
|
449
497
|
headers: headerParameters,
|
|
450
498
|
query: queryParameters,
|
|
451
|
-
}
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Get student-specific reporting for a module (can use \'current\' for studentId)
|
|
504
|
+
*/
|
|
505
|
+
async getModuleStudentReportingRaw(requestParameters: GetModuleStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModuleStudentReporting>> {
|
|
506
|
+
const requestOptions = await this.getModuleStudentReportingRequestOpts(requestParameters);
|
|
507
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
452
508
|
|
|
453
509
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetModuleStudentReportingFromJSON(jsonValue));
|
|
454
510
|
}
|
|
@@ -462,9 +518,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
462
518
|
}
|
|
463
519
|
|
|
464
520
|
/**
|
|
465
|
-
*
|
|
521
|
+
* Creates request options for getPortalBasicReporting without sending the request
|
|
466
522
|
*/
|
|
467
|
-
async
|
|
523
|
+
async getPortalBasicReportingRequestOpts(requestParameters: GetPortalBasicReportingRequest): Promise<runtime.RequestOpts> {
|
|
468
524
|
if (requestParameters['portalId'] == null) {
|
|
469
525
|
throw new runtime.RequiredError(
|
|
470
526
|
'portalId',
|
|
@@ -480,12 +536,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
480
536
|
let urlPath = `/portals/{portalId}/reporting/basic`;
|
|
481
537
|
urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
|
|
482
538
|
|
|
483
|
-
|
|
539
|
+
return {
|
|
484
540
|
path: urlPath,
|
|
485
541
|
method: 'GET',
|
|
486
542
|
headers: headerParameters,
|
|
487
543
|
query: queryParameters,
|
|
488
|
-
}
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Get basic reporting for a portal (can use \'current\' for portalId)
|
|
549
|
+
*/
|
|
550
|
+
async getPortalBasicReportingRaw(requestParameters: GetPortalBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalBasicReporting>> {
|
|
551
|
+
const requestOptions = await this.getPortalBasicReportingRequestOpts(requestParameters);
|
|
552
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
489
553
|
|
|
490
554
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalBasicReportingFromJSON(jsonValue));
|
|
491
555
|
}
|
|
@@ -499,9 +563,9 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
499
563
|
}
|
|
500
564
|
|
|
501
565
|
/**
|
|
502
|
-
*
|
|
566
|
+
* Creates request options for getPortalStudentReporting without sending the request
|
|
503
567
|
*/
|
|
504
|
-
async
|
|
568
|
+
async getPortalStudentReportingRequestOpts(requestParameters: GetPortalStudentReportingRequest): Promise<runtime.RequestOpts> {
|
|
505
569
|
if (requestParameters['portalId'] == null) {
|
|
506
570
|
throw new runtime.RequiredError(
|
|
507
571
|
'portalId',
|
|
@@ -525,12 +589,20 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
525
589
|
urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
|
|
526
590
|
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
527
591
|
|
|
528
|
-
|
|
592
|
+
return {
|
|
529
593
|
path: urlPath,
|
|
530
594
|
method: 'GET',
|
|
531
595
|
headers: headerParameters,
|
|
532
596
|
query: queryParameters,
|
|
533
|
-
}
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Get student reporting for a portal (can use \'current\' for portalId and studentId)
|
|
602
|
+
*/
|
|
603
|
+
async getPortalStudentReportingRaw(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalStudentReporting>> {
|
|
604
|
+
const requestOptions = await this.getPortalStudentReportingRequestOpts(requestParameters);
|
|
605
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
534
606
|
|
|
535
607
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalStudentReportingFromJSON(jsonValue));
|
|
536
608
|
}
|