@easyedu/js-lsm-api 1.17.0 → 1.19.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 +6 -3
- package/README.md +2 -2
- package/dist/apis/QuizApi.d.ts +4 -2
- package/dist/apis/QuizApi.js +8 -2
- package/dist/apis/ReportingApi.d.ts +13 -1
- package/dist/apis/ReportingApi.js +31 -0
- package/dist/esm/apis/QuizApi.d.ts +4 -2
- package/dist/esm/apis/QuizApi.js +8 -2
- package/dist/esm/apis/ReportingApi.d.ts +13 -1
- package/dist/esm/apis/ReportingApi.js +32 -1
- package/dist/esm/models/GetPortalStudentReporting.d.ts +40 -0
- package/dist/esm/models/GetPortalStudentReporting.js +49 -0
- package/dist/esm/models/GetPortalStudentReportingCertificates.d.ts +32 -0
- package/dist/esm/models/GetPortalStudentReportingCertificates.js +43 -0
- package/dist/esm/models/GetPortalStudentReportingPortalInfo.d.ts +44 -0
- package/dist/esm/models/GetPortalStudentReportingPortalInfo.js +51 -0
- package/dist/esm/models/GetQuizQuestions.d.ts +29 -5
- package/dist/esm/models/GetQuizQuestions.js +20 -4
- package/dist/esm/models/GetQuizQuestionsItemsInner.d.ts +75 -0
- package/dist/esm/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +11 -11
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +84 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +59 -0
- package/dist/esm/models/index.d.ts +6 -3
- package/dist/esm/models/index.js +6 -3
- package/dist/models/GetPortalStudentReporting.d.ts +40 -0
- package/dist/models/GetPortalStudentReporting.js +56 -0
- package/dist/models/GetPortalStudentReportingCertificates.d.ts +32 -0
- package/dist/models/GetPortalStudentReportingCertificates.js +50 -0
- package/dist/models/GetPortalStudentReportingPortalInfo.d.ts +44 -0
- package/dist/models/GetPortalStudentReportingPortalInfo.js +58 -0
- package/dist/models/GetQuizQuestions.d.ts +29 -5
- package/dist/models/GetQuizQuestions.js +20 -4
- package/dist/models/GetQuizQuestionsItemsInner.d.ts +75 -0
- package/dist/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +16 -16
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +92 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +66 -0
- package/dist/models/index.d.ts +6 -3
- package/dist/models/index.js +6 -3
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +12 -2
- package/src/apis/ReportingApi.ts +48 -0
- package/src/models/GetPortalStudentReporting.ts +90 -0
- package/src/models/GetPortalStudentReportingCertificates.ts +66 -0
- package/src/models/GetPortalStudentReportingPortalInfo.ts +84 -0
- package/src/models/GetQuizQuestions.ts +49 -13
- package/src/models/{GetQuizQuestionsQuestionsInner.ts → GetQuizQuestionsItemsInner.ts} +28 -28
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +171 -0
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.ts +102 -0
- package/src/models/index.ts +6 -3
- package/dist/esm/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -76
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -53
- package/dist/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -84
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -60
- package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetails.ts +0 -139
- package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.ts +0 -92
package/.openapi-generator/FILES
CHANGED
|
@@ -56,6 +56,9 @@ src/models/GetPortalBasicReporting.ts
|
|
|
56
56
|
src/models/GetPortalBasicReportingCertificates.ts
|
|
57
57
|
src/models/GetPortalBasicReportingPortalInfo.ts
|
|
58
58
|
src/models/GetPortalList.ts
|
|
59
|
+
src/models/GetPortalStudentReporting.ts
|
|
60
|
+
src/models/GetPortalStudentReportingCertificates.ts
|
|
61
|
+
src/models/GetPortalStudentReportingPortalInfo.ts
|
|
59
62
|
src/models/GetPortalUser.ts
|
|
60
63
|
src/models/GetPortalUserList.ts
|
|
61
64
|
src/models/GetQuestion.ts
|
|
@@ -92,9 +95,9 @@ src/models/GetQuizListAllOfFilters.ts
|
|
|
92
95
|
src/models/GetQuizListAllOfQuizzes.ts
|
|
93
96
|
src/models/GetQuizListAllOfStatistics.ts
|
|
94
97
|
src/models/GetQuizQuestions.ts
|
|
95
|
-
src/models/
|
|
96
|
-
src/models/
|
|
97
|
-
src/models/
|
|
98
|
+
src/models/GetQuizQuestionsItemsInner.ts
|
|
99
|
+
src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts
|
|
100
|
+
src/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.ts
|
|
98
101
|
src/models/GetQuizResults.ts
|
|
99
102
|
src/models/GetQuizResultsFeedback.ts
|
|
100
103
|
src/models/GetQuizResultsFeedbackDifficultyPerformanceInner.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @easyedu/js-lsm-api@1.
|
|
1
|
+
## @easyedu/js-lsm-api@1.19.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @easyedu/js-lsm-api@1.
|
|
39
|
+
npm install @easyedu/js-lsm-api@1.19.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/QuizApi.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export interface GetQuizListRequest {
|
|
|
56
56
|
}
|
|
57
57
|
export interface GetQuizQuestionsRequest {
|
|
58
58
|
quizId: string;
|
|
59
|
+
page?: number;
|
|
60
|
+
pageSize?: number;
|
|
59
61
|
}
|
|
60
62
|
export interface GetUserQuizAttemptsRequest {
|
|
61
63
|
userId: string;
|
|
@@ -181,11 +183,11 @@ export declare class QuizApi extends runtime.BaseAPI {
|
|
|
181
183
|
*/
|
|
182
184
|
getQuizList(requestParameters?: GetQuizListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuizList>;
|
|
183
185
|
/**
|
|
184
|
-
* Get quiz questions
|
|
186
|
+
* Get quiz questions (paginated)
|
|
185
187
|
*/
|
|
186
188
|
getQuizQuestionsRaw(requestParameters: GetQuizQuestionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetQuizQuestions>>;
|
|
187
189
|
/**
|
|
188
|
-
* Get quiz questions
|
|
190
|
+
* Get quiz questions (paginated)
|
|
189
191
|
*/
|
|
190
192
|
getQuizQuestions(requestParameters: GetQuizQuestionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuizQuestions>;
|
|
191
193
|
/**
|
package/dist/apis/QuizApi.js
CHANGED
|
@@ -373,7 +373,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
|
-
* Get quiz questions
|
|
376
|
+
* Get quiz questions (paginated)
|
|
377
377
|
*/
|
|
378
378
|
getQuizQuestionsRaw(requestParameters, initOverrides) {
|
|
379
379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -381,6 +381,12 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
381
381
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizQuestions().');
|
|
382
382
|
}
|
|
383
383
|
const queryParameters = {};
|
|
384
|
+
if (requestParameters['page'] != null) {
|
|
385
|
+
queryParameters['page'] = requestParameters['page'];
|
|
386
|
+
}
|
|
387
|
+
if (requestParameters['pageSize'] != null) {
|
|
388
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
389
|
+
}
|
|
384
390
|
const headerParameters = {};
|
|
385
391
|
const response = yield this.request({
|
|
386
392
|
path: `/quizzes/{quizId}/questions`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
@@ -392,7 +398,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
392
398
|
});
|
|
393
399
|
}
|
|
394
400
|
/**
|
|
395
|
-
* Get quiz questions
|
|
401
|
+
* Get quiz questions (paginated)
|
|
396
402
|
*/
|
|
397
403
|
getQuizQuestions(requestParameters, initOverrides) {
|
|
398
404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting } from '../models/index';
|
|
13
|
+
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting, GetPortalStudentReporting } from '../models/index';
|
|
14
14
|
export interface GetContentGradeDetailRequest {
|
|
15
15
|
courseId: string;
|
|
16
16
|
moduleId: string;
|
|
@@ -49,6 +49,10 @@ export interface GetModuleStudentReportingRequest {
|
|
|
49
49
|
export interface GetPortalBasicReportingRequest {
|
|
50
50
|
portalId: string;
|
|
51
51
|
}
|
|
52
|
+
export interface GetPortalStudentReportingRequest {
|
|
53
|
+
portalId: string;
|
|
54
|
+
studentId: string;
|
|
55
|
+
}
|
|
52
56
|
/**
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
@@ -117,4 +121,12 @@ export declare class ReportingApi extends runtime.BaseAPI {
|
|
|
117
121
|
* Get basic reporting for a portal
|
|
118
122
|
*/
|
|
119
123
|
getPortalBasicReporting(requestParameters: GetPortalBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalBasicReporting>;
|
|
124
|
+
/**
|
|
125
|
+
* Get student reporting for a portal
|
|
126
|
+
*/
|
|
127
|
+
getPortalStudentReportingRaw(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalStudentReporting>>;
|
|
128
|
+
/**
|
|
129
|
+
* Get student reporting for a portal
|
|
130
|
+
*/
|
|
131
|
+
getPortalStudentReporting(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalStudentReporting>;
|
|
120
132
|
}
|
|
@@ -295,5 +295,36 @@ class ReportingApi extends runtime.BaseAPI {
|
|
|
295
295
|
return yield response.value();
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Get student reporting for a portal
|
|
300
|
+
*/
|
|
301
|
+
getPortalStudentReportingRaw(requestParameters, initOverrides) {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
if (requestParameters['portalId'] == null) {
|
|
304
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalStudentReporting().');
|
|
305
|
+
}
|
|
306
|
+
if (requestParameters['studentId'] == null) {
|
|
307
|
+
throw new runtime.RequiredError('studentId', 'Required parameter "studentId" was null or undefined when calling getPortalStudentReporting().');
|
|
308
|
+
}
|
|
309
|
+
const queryParameters = {};
|
|
310
|
+
const headerParameters = {};
|
|
311
|
+
const response = yield this.request({
|
|
312
|
+
path: `/portals/{portalId}/reporting/students/{studentId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))).replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId']))),
|
|
313
|
+
method: 'GET',
|
|
314
|
+
headers: headerParameters,
|
|
315
|
+
query: queryParameters,
|
|
316
|
+
}, initOverrides);
|
|
317
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPortalStudentReportingFromJSON)(jsonValue));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Get student reporting for a portal
|
|
322
|
+
*/
|
|
323
|
+
getPortalStudentReporting(requestParameters, initOverrides) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
const response = yield this.getPortalStudentReportingRaw(requestParameters, initOverrides);
|
|
326
|
+
return yield response.value();
|
|
327
|
+
});
|
|
328
|
+
}
|
|
298
329
|
}
|
|
299
330
|
exports.ReportingApi = ReportingApi;
|
|
@@ -56,6 +56,8 @@ export interface GetQuizListRequest {
|
|
|
56
56
|
}
|
|
57
57
|
export interface GetQuizQuestionsRequest {
|
|
58
58
|
quizId: string;
|
|
59
|
+
page?: number;
|
|
60
|
+
pageSize?: number;
|
|
59
61
|
}
|
|
60
62
|
export interface GetUserQuizAttemptsRequest {
|
|
61
63
|
userId: string;
|
|
@@ -181,11 +183,11 @@ export declare class QuizApi extends runtime.BaseAPI {
|
|
|
181
183
|
*/
|
|
182
184
|
getQuizList(requestParameters?: GetQuizListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuizList>;
|
|
183
185
|
/**
|
|
184
|
-
* Get quiz questions
|
|
186
|
+
* Get quiz questions (paginated)
|
|
185
187
|
*/
|
|
186
188
|
getQuizQuestionsRaw(requestParameters: GetQuizQuestionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetQuizQuestions>>;
|
|
187
189
|
/**
|
|
188
|
-
* Get quiz questions
|
|
190
|
+
* Get quiz questions (paginated)
|
|
189
191
|
*/
|
|
190
192
|
getQuizQuestions(requestParameters: GetQuizQuestionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuizQuestions>;
|
|
191
193
|
/**
|
package/dist/esm/apis/QuizApi.js
CHANGED
|
@@ -370,7 +370,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
|
-
* Get quiz questions
|
|
373
|
+
* Get quiz questions (paginated)
|
|
374
374
|
*/
|
|
375
375
|
getQuizQuestionsRaw(requestParameters, initOverrides) {
|
|
376
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -378,6 +378,12 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
378
378
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizQuestions().');
|
|
379
379
|
}
|
|
380
380
|
const queryParameters = {};
|
|
381
|
+
if (requestParameters['page'] != null) {
|
|
382
|
+
queryParameters['page'] = requestParameters['page'];
|
|
383
|
+
}
|
|
384
|
+
if (requestParameters['pageSize'] != null) {
|
|
385
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
386
|
+
}
|
|
381
387
|
const headerParameters = {};
|
|
382
388
|
const response = yield this.request({
|
|
383
389
|
path: `/quizzes/{quizId}/questions`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
@@ -389,7 +395,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
389
395
|
});
|
|
390
396
|
}
|
|
391
397
|
/**
|
|
392
|
-
* Get quiz questions
|
|
398
|
+
* Get quiz questions (paginated)
|
|
393
399
|
*/
|
|
394
400
|
getQuizQuestions(requestParameters, initOverrides) {
|
|
395
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting } from '../models/index';
|
|
13
|
+
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting, GetPortalStudentReporting } from '../models/index';
|
|
14
14
|
export interface GetContentGradeDetailRequest {
|
|
15
15
|
courseId: string;
|
|
16
16
|
moduleId: string;
|
|
@@ -49,6 +49,10 @@ export interface GetModuleStudentReportingRequest {
|
|
|
49
49
|
export interface GetPortalBasicReportingRequest {
|
|
50
50
|
portalId: string;
|
|
51
51
|
}
|
|
52
|
+
export interface GetPortalStudentReportingRequest {
|
|
53
|
+
portalId: string;
|
|
54
|
+
studentId: string;
|
|
55
|
+
}
|
|
52
56
|
/**
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
@@ -117,4 +121,12 @@ export declare class ReportingApi extends runtime.BaseAPI {
|
|
|
117
121
|
* Get basic reporting for a portal
|
|
118
122
|
*/
|
|
119
123
|
getPortalBasicReporting(requestParameters: GetPortalBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalBasicReporting>;
|
|
124
|
+
/**
|
|
125
|
+
* Get student reporting for a portal
|
|
126
|
+
*/
|
|
127
|
+
getPortalStudentReportingRaw(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalStudentReporting>>;
|
|
128
|
+
/**
|
|
129
|
+
* Get student reporting for a portal
|
|
130
|
+
*/
|
|
131
|
+
getPortalStudentReporting(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalStudentReporting>;
|
|
120
132
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetContentGradeDetailFromJSON, GetContentGradesFromJSON, GetContentInstructorBasicReportingFromJSON, GetCourseReportingBasicFromJSON, GetCourseStudentReportingFromJSON, GetModuleInstructorBasicReportingFromJSON, GetModuleStudentReportingFromJSON, GetPortalBasicReportingFromJSON, } from '../models/index';
|
|
24
|
+
import { GetContentGradeDetailFromJSON, GetContentGradesFromJSON, GetContentInstructorBasicReportingFromJSON, GetCourseReportingBasicFromJSON, GetCourseStudentReportingFromJSON, GetModuleInstructorBasicReportingFromJSON, GetModuleStudentReportingFromJSON, GetPortalBasicReportingFromJSON, GetPortalStudentReportingFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -292,4 +292,35 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
292
292
|
return yield response.value();
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Get student reporting for a portal
|
|
297
|
+
*/
|
|
298
|
+
getPortalStudentReportingRaw(requestParameters, initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
if (requestParameters['portalId'] == null) {
|
|
301
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalStudentReporting().');
|
|
302
|
+
}
|
|
303
|
+
if (requestParameters['studentId'] == null) {
|
|
304
|
+
throw new runtime.RequiredError('studentId', 'Required parameter "studentId" was null or undefined when calling getPortalStudentReporting().');
|
|
305
|
+
}
|
|
306
|
+
const queryParameters = {};
|
|
307
|
+
const headerParameters = {};
|
|
308
|
+
const response = yield this.request({
|
|
309
|
+
path: `/portals/{portalId}/reporting/students/{studentId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))).replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId']))),
|
|
310
|
+
method: 'GET',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
}, initOverrides);
|
|
314
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalStudentReportingFromJSON(jsonValue));
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Get student reporting for a portal
|
|
319
|
+
*/
|
|
320
|
+
getPortalStudentReporting(requestParameters, initOverrides) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const response = yield this.getPortalStudentReportingRaw(requestParameters, initOverrides);
|
|
323
|
+
return yield response.value();
|
|
324
|
+
});
|
|
325
|
+
}
|
|
295
326
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetPortalStudentReportingCertificates } from './GetPortalStudentReportingCertificates';
|
|
13
|
+
import type { GetPortalStudentReportingPortalInfo } from './GetPortalStudentReportingPortalInfo';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetPortalStudentReporting
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPortalStudentReporting {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {GetPortalStudentReportingPortalInfo}
|
|
23
|
+
* @memberof GetPortalStudentReporting
|
|
24
|
+
*/
|
|
25
|
+
portalInfo: GetPortalStudentReportingPortalInfo;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetPortalStudentReportingCertificates}
|
|
29
|
+
* @memberof GetPortalStudentReporting
|
|
30
|
+
*/
|
|
31
|
+
certificates: GetPortalStudentReportingCertificates;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetPortalStudentReporting(value: object): value is GetPortalStudentReporting;
|
|
37
|
+
export declare function GetPortalStudentReportingFromJSON(json: any): GetPortalStudentReporting;
|
|
38
|
+
export declare function GetPortalStudentReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReporting;
|
|
39
|
+
export declare function GetPortalStudentReportingToJSON(json: any): GetPortalStudentReporting;
|
|
40
|
+
export declare function GetPortalStudentReportingToJSONTyped(value?: GetPortalStudentReporting | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GetPortalStudentReportingCertificatesFromJSON, GetPortalStudentReportingCertificatesToJSON, } from './GetPortalStudentReportingCertificates';
|
|
15
|
+
import { GetPortalStudentReportingPortalInfoFromJSON, GetPortalStudentReportingPortalInfoToJSON, } from './GetPortalStudentReportingPortalInfo';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetPortalStudentReporting(value) {
|
|
20
|
+
if (!('portalInfo' in value) || value['portalInfo'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('certificates' in value) || value['certificates'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetPortalStudentReportingFromJSON(json) {
|
|
27
|
+
return GetPortalStudentReportingFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetPortalStudentReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'portalInfo': GetPortalStudentReportingPortalInfoFromJSON(json['portal_info']),
|
|
35
|
+
'certificates': GetPortalStudentReportingCertificatesFromJSON(json['certificates']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function GetPortalStudentReportingToJSON(json) {
|
|
39
|
+
return GetPortalStudentReportingToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function GetPortalStudentReportingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'portal_info': GetPortalStudentReportingPortalInfoToJSON(value['portalInfo']),
|
|
47
|
+
'certificates': GetPortalStudentReportingCertificatesToJSON(value['certificates']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPortalStudentReportingCertificates
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalStudentReportingCertificates {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of certificates earned by the student
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetPortalStudentReportingCertificates
|
|
22
|
+
*/
|
|
23
|
+
certificatesEarnedCount: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetPortalStudentReportingCertificates interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetPortalStudentReportingCertificates(value: object): value is GetPortalStudentReportingCertificates;
|
|
29
|
+
export declare function GetPortalStudentReportingCertificatesFromJSON(json: any): GetPortalStudentReportingCertificates;
|
|
30
|
+
export declare function GetPortalStudentReportingCertificatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingCertificates;
|
|
31
|
+
export declare function GetPortalStudentReportingCertificatesToJSON(json: any): GetPortalStudentReportingCertificates;
|
|
32
|
+
export declare function GetPortalStudentReportingCertificatesToJSONTyped(value?: GetPortalStudentReportingCertificates | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetPortalStudentReportingCertificates interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPortalStudentReportingCertificates(value) {
|
|
18
|
+
if (!('certificatesEarnedCount' in value) || value['certificatesEarnedCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GetPortalStudentReportingCertificatesFromJSON(json) {
|
|
23
|
+
return GetPortalStudentReportingCertificatesFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GetPortalStudentReportingCertificatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'certificatesEarnedCount': json['certificates_earned_count'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function GetPortalStudentReportingCertificatesToJSON(json) {
|
|
34
|
+
return GetPortalStudentReportingCertificatesToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetPortalStudentReportingCertificatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'certificates_earned_count': value['certificatesEarnedCount'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPortalStudentReportingPortalInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalStudentReportingPortalInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of courses the student is enrolled in
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
22
|
+
*/
|
|
23
|
+
enrolledCoursesCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of courses the student has completed
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
28
|
+
*/
|
|
29
|
+
completedCoursesCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of courses currently in progress
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
34
|
+
*/
|
|
35
|
+
inProgressCoursesCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetPortalStudentReportingPortalInfo(value: object): value is GetPortalStudentReportingPortalInfo;
|
|
41
|
+
export declare function GetPortalStudentReportingPortalInfoFromJSON(json: any): GetPortalStudentReportingPortalInfo;
|
|
42
|
+
export declare function GetPortalStudentReportingPortalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingPortalInfo;
|
|
43
|
+
export declare function GetPortalStudentReportingPortalInfoToJSON(json: any): GetPortalStudentReportingPortalInfo;
|
|
44
|
+
export declare function GetPortalStudentReportingPortalInfoToJSONTyped(value?: GetPortalStudentReportingPortalInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPortalStudentReportingPortalInfo(value) {
|
|
18
|
+
if (!('enrolledCoursesCount' in value) || value['enrolledCoursesCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('completedCoursesCount' in value) || value['completedCoursesCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('inProgressCoursesCount' in value) || value['inProgressCoursesCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetPortalStudentReportingPortalInfoFromJSON(json) {
|
|
27
|
+
return GetPortalStudentReportingPortalInfoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetPortalStudentReportingPortalInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'enrolledCoursesCount': json['enrolled_courses_count'],
|
|
35
|
+
'completedCoursesCount': json['completed_courses_count'],
|
|
36
|
+
'inProgressCoursesCount': json['in_progress_courses_count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetPortalStudentReportingPortalInfoToJSON(json) {
|
|
40
|
+
return GetPortalStudentReportingPortalInfoToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetPortalStudentReportingPortalInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enrolled_courses_count': value['enrolledCoursesCount'],
|
|
48
|
+
'completed_courses_count': value['completedCoursesCount'],
|
|
49
|
+
'in_progress_courses_count': value['inProgressCoursesCount'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { GetQuizQuestionsItemsInner } from './GetQuizQuestionsItemsInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,13 +17,31 @@ import type { GetQuizQuestionsQuestionsInner } from './GetQuizQuestionsQuestions
|
|
|
17
17
|
*/
|
|
18
18
|
export interface GetQuizQuestions {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetQuizQuestions
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetQuizQuestions
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetQuizQuestions
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of questions in the quiz
|
|
39
|
+
* @type {number}
|
|
22
40
|
* @memberof GetQuizQuestions
|
|
23
41
|
*/
|
|
24
|
-
|
|
42
|
+
totalItems: number;
|
|
25
43
|
/**
|
|
26
|
-
* Total number of questions in quiz
|
|
44
|
+
* Total number of questions in quiz (same as totalItems)
|
|
27
45
|
* @type {number}
|
|
28
46
|
* @memberof GetQuizQuestions
|
|
29
47
|
*/
|
|
@@ -40,6 +58,12 @@ export interface GetQuizQuestions {
|
|
|
40
58
|
* @memberof GetQuizQuestions
|
|
41
59
|
*/
|
|
42
60
|
selectionMethod: GetQuizQuestionsSelectionMethodEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Questions in the quiz (paginated)
|
|
63
|
+
* @type {Array<GetQuizQuestionsItemsInner>}
|
|
64
|
+
* @memberof GetQuizQuestions
|
|
65
|
+
*/
|
|
66
|
+
items: Array<GetQuizQuestionsItemsInner>;
|
|
43
67
|
}
|
|
44
68
|
/**
|
|
45
69
|
* @export
|