@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
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { GetQuizQuestionsItemsInnerFromJSON, GetQuizQuestionsItemsInnerToJSON, } from './GetQuizQuestionsItemsInner';
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
@@ -23,7 +23,13 @@ export const GetQuizQuestionsSelectionMethodEnum = {
|
|
|
23
23
|
* Check if a given object implements the GetQuizQuestions interface.
|
|
24
24
|
*/
|
|
25
25
|
export function instanceOfGetQuizQuestions(value) {
|
|
26
|
-
if (!('
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
27
33
|
return false;
|
|
28
34
|
if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
|
|
29
35
|
return false;
|
|
@@ -31,6 +37,8 @@ export function instanceOfGetQuizQuestions(value) {
|
|
|
31
37
|
return false;
|
|
32
38
|
if (!('selectionMethod' in value) || value['selectionMethod'] === undefined)
|
|
33
39
|
return false;
|
|
40
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
41
|
+
return false;
|
|
34
42
|
return true;
|
|
35
43
|
}
|
|
36
44
|
export function GetQuizQuestionsFromJSON(json) {
|
|
@@ -41,10 +49,14 @@ export function GetQuizQuestionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
49
|
return json;
|
|
42
50
|
}
|
|
43
51
|
return {
|
|
44
|
-
'
|
|
52
|
+
'page': json['page'],
|
|
53
|
+
'pageSize': json['pageSize'],
|
|
54
|
+
'totalPages': json['totalPages'],
|
|
55
|
+
'totalItems': json['totalItems'],
|
|
45
56
|
'totalQuestions': json['total_questions'],
|
|
46
57
|
'totalPoints': json['total_points'],
|
|
47
58
|
'selectionMethod': json['selection_method'],
|
|
59
|
+
'items': (json['items'].map(GetQuizQuestionsItemsInnerFromJSON)),
|
|
48
60
|
};
|
|
49
61
|
}
|
|
50
62
|
export function GetQuizQuestionsToJSON(json) {
|
|
@@ -55,9 +67,13 @@ export function GetQuizQuestionsToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
55
67
|
return value;
|
|
56
68
|
}
|
|
57
69
|
return {
|
|
58
|
-
'
|
|
70
|
+
'page': value['page'],
|
|
71
|
+
'pageSize': value['pageSize'],
|
|
72
|
+
'totalPages': value['totalPages'],
|
|
73
|
+
'totalItems': value['totalItems'],
|
|
59
74
|
'total_questions': value['totalQuestions'],
|
|
60
75
|
'total_points': value['totalPoints'],
|
|
61
76
|
'selection_method': value['selectionMethod'],
|
|
77
|
+
'items': (value['items'].map(GetQuizQuestionsItemsInnerToJSON)),
|
|
62
78
|
};
|
|
63
79
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetails } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetQuizQuestionsItemsInner
|
|
17
|
+
*/
|
|
18
|
+
export interface GetQuizQuestionsItemsInner {
|
|
19
|
+
/**
|
|
20
|
+
* Quiz-question relationship ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
29
|
+
*/
|
|
30
|
+
questionId: string;
|
|
31
|
+
/**
|
|
32
|
+
* External ID of the question
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
35
|
+
*/
|
|
36
|
+
questionExternalId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order of question in quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
41
|
+
*/
|
|
42
|
+
questionOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
* Points assigned to this question
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
47
|
+
*/
|
|
48
|
+
points: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether question is locked to specific version
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
53
|
+
*/
|
|
54
|
+
versionLocked: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {GetQuizQuestionsItemsInnerQuestionDetails}
|
|
58
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
59
|
+
*/
|
|
60
|
+
questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
|
|
61
|
+
/**
|
|
62
|
+
* When question was added to quiz
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GetQuizQuestionsItemsInner interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfGetQuizQuestionsItemsInner(value: object): value is GetQuizQuestionsItemsInner;
|
|
72
|
+
export declare function GetQuizQuestionsItemsInnerFromJSON(json: any): GetQuizQuestionsItemsInner;
|
|
73
|
+
export declare function GetQuizQuestionsItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInner;
|
|
74
|
+
export declare function GetQuizQuestionsItemsInnerToJSON(json: any): GetQuizQuestionsItemsInner;
|
|
75
|
+
export declare function GetQuizQuestionsItemsInnerToJSONTyped(value?: GetQuizQuestionsItemsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { GetQuizQuestionsItemsInnerQuestionDetailsFromJSON, GetQuizQuestionsItemsInnerQuestionDetailsToJSON, } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the GetQuizQuestionsItemsInner interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfGetQuizQuestionsItemsInner(value) {
|
|
19
19
|
if (!('id' in value) || value['id'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
@@ -34,10 +34,10 @@ export function instanceOfGetQuizQuestionsQuestionsInner(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
|
-
export function
|
|
38
|
-
return
|
|
37
|
+
export function GetQuizQuestionsItemsInnerFromJSON(json) {
|
|
38
|
+
return GetQuizQuestionsItemsInnerFromJSONTyped(json, false);
|
|
39
39
|
}
|
|
40
|
-
export function
|
|
40
|
+
export function GetQuizQuestionsItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
41
|
if (json == null) {
|
|
42
42
|
return json;
|
|
43
43
|
}
|
|
@@ -48,14 +48,14 @@ export function GetQuizQuestionsQuestionsInnerFromJSONTyped(json, ignoreDiscrimi
|
|
|
48
48
|
'questionOrder': json['question_order'],
|
|
49
49
|
'points': json['points'],
|
|
50
50
|
'versionLocked': json['version_locked'],
|
|
51
|
-
'questionDetails':
|
|
51
|
+
'questionDetails': GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json['question_details']),
|
|
52
52
|
'createdAt': (new Date(json['created_at'])),
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
export function
|
|
56
|
-
return
|
|
55
|
+
export function GetQuizQuestionsItemsInnerToJSON(json) {
|
|
56
|
+
return GetQuizQuestionsItemsInnerToJSONTyped(json, false);
|
|
57
57
|
}
|
|
58
|
-
export function
|
|
58
|
+
export function GetQuizQuestionsItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
59
|
if (value == null) {
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
@@ -66,7 +66,7 @@ export function GetQuizQuestionsQuestionsInnerToJSONTyped(value, ignoreDiscrimin
|
|
|
66
66
|
'question_order': value['questionOrder'],
|
|
67
67
|
'points': value['points'],
|
|
68
68
|
'version_locked': value['versionLocked'],
|
|
69
|
-
'question_details':
|
|
69
|
+
'question_details': GetQuizQuestionsItemsInnerQuestionDetailsToJSON(value['questionDetails']),
|
|
70
70
|
'created_at': ((value['createdAt']).toISOString()),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
13
|
+
/**
|
|
14
|
+
* Question details including all metadata
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetQuizQuestionsItemsInnerQuestionDetails
|
|
17
|
+
*/
|
|
18
|
+
export interface GetQuizQuestionsItemsInnerQuestionDetails {
|
|
19
|
+
/**
|
|
20
|
+
* The question text
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
23
|
+
*/
|
|
24
|
+
questionText: string;
|
|
25
|
+
/**
|
|
26
|
+
* Type of question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
29
|
+
*/
|
|
30
|
+
questionType: GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Question topic
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
35
|
+
*/
|
|
36
|
+
topic: string;
|
|
37
|
+
/**
|
|
38
|
+
* Question difficulty
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
41
|
+
*/
|
|
42
|
+
difficultyLevel: GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Course associated with question
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
47
|
+
*/
|
|
48
|
+
course?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Explanation of correct answer
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
53
|
+
*/
|
|
54
|
+
explanation?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Tags associated with question
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
59
|
+
*/
|
|
60
|
+
tags?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Version number of this question
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
65
|
+
*/
|
|
66
|
+
versionNumber?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Whether this is the latest version
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
71
|
+
*/
|
|
72
|
+
isLatestVersion?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Available answer choices
|
|
75
|
+
* @type {Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>}
|
|
76
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
77
|
+
*/
|
|
78
|
+
answerChoices?: Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum: {
|
|
84
|
+
readonly SingleAnswer: "single_answer";
|
|
85
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
86
|
+
readonly FillInBlank: "fill_in_blank";
|
|
87
|
+
};
|
|
88
|
+
export type GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum];
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export declare const GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum: {
|
|
93
|
+
readonly Beginner: "beginner";
|
|
94
|
+
readonly Intermediate: "intermediate";
|
|
95
|
+
readonly Advanced: "advanced";
|
|
96
|
+
};
|
|
97
|
+
export type GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum];
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(value: object): value is GetQuizQuestionsItemsInnerQuestionDetails;
|
|
102
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails;
|
|
103
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetails;
|
|
104
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails;
|
|
105
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON, GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON, } from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = {
|
|
19
|
+
SingleAnswer: 'single_answer',
|
|
20
|
+
MultipleAnswer: 'multiple_answer',
|
|
21
|
+
FillInBlank: 'fill_in_blank'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
27
|
+
Beginner: 'beginner',
|
|
28
|
+
Intermediate: 'intermediate',
|
|
29
|
+
Advanced: 'advanced'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(value) {
|
|
35
|
+
if (!('questionText' in value) || value['questionText'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('topic' in value) || value['topic'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json) {
|
|
46
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'questionText': json['question_text'],
|
|
54
|
+
'questionType': json['question_type'],
|
|
55
|
+
'topic': json['topic'],
|
|
56
|
+
'difficultyLevel': json['difficulty_level'],
|
|
57
|
+
'course': json['course'] == null ? undefined : json['course'],
|
|
58
|
+
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
59
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
60
|
+
'versionNumber': json['version_number'] == null ? undefined : json['version_number'],
|
|
61
|
+
'isLatestVersion': json['is_latest_version'] == null ? undefined : json['is_latest_version'],
|
|
62
|
+
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json) {
|
|
66
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'question_text': value['questionText'],
|
|
74
|
+
'question_type': value['questionType'],
|
|
75
|
+
'topic': value['topic'],
|
|
76
|
+
'difficulty_level': value['difficultyLevel'],
|
|
77
|
+
'course': value['course'],
|
|
78
|
+
'explanation': value['explanation'],
|
|
79
|
+
'tags': value['tags'],
|
|
80
|
+
'version_number': value['versionNumber'],
|
|
81
|
+
'is_latest_version': value['isLatestVersion'],
|
|
82
|
+
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Answer choice ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* External ID of answer choice
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
28
|
+
*/
|
|
29
|
+
externalId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Answer choice text
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
34
|
+
*/
|
|
35
|
+
text: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this choice is correct
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
40
|
+
*/
|
|
41
|
+
isCorrect: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Display order of choice
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
46
|
+
*/
|
|
47
|
+
displayOrder: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
53
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
54
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
55
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
56
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
|
|
31
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'externalId': json['external_id'],
|
|
40
|
+
'text': json['text'],
|
|
41
|
+
'isCorrect': json['is_correct'],
|
|
42
|
+
'displayOrder': json['display_order'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
|
|
46
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'external_id': value['externalId'],
|
|
55
|
+
'text': value['text'],
|
|
56
|
+
'is_correct': value['isCorrect'],
|
|
57
|
+
'display_order': value['displayOrder'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -40,6 +40,9 @@ export * from './GetPortalBasicReporting';
|
|
|
40
40
|
export * from './GetPortalBasicReportingCertificates';
|
|
41
41
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
42
42
|
export * from './GetPortalList';
|
|
43
|
+
export * from './GetPortalStudentReporting';
|
|
44
|
+
export * from './GetPortalStudentReportingCertificates';
|
|
45
|
+
export * from './GetPortalStudentReportingPortalInfo';
|
|
43
46
|
export * from './GetPortalUser';
|
|
44
47
|
export * from './GetPortalUserList';
|
|
45
48
|
export * from './GetQuestion';
|
|
@@ -76,9 +79,9 @@ export * from './GetQuizListAllOfFilters';
|
|
|
76
79
|
export * from './GetQuizListAllOfQuizzes';
|
|
77
80
|
export * from './GetQuizListAllOfStatistics';
|
|
78
81
|
export * from './GetQuizQuestions';
|
|
79
|
-
export * from './
|
|
80
|
-
export * from './
|
|
81
|
-
export * from './
|
|
82
|
+
export * from './GetQuizQuestionsItemsInner';
|
|
83
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
84
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
82
85
|
export * from './GetQuizResults';
|
|
83
86
|
export * from './GetQuizResultsFeedback';
|
|
84
87
|
export * from './GetQuizResultsFeedbackDifficultyPerformanceInner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -42,6 +42,9 @@ export * from './GetPortalBasicReporting';
|
|
|
42
42
|
export * from './GetPortalBasicReportingCertificates';
|
|
43
43
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
44
44
|
export * from './GetPortalList';
|
|
45
|
+
export * from './GetPortalStudentReporting';
|
|
46
|
+
export * from './GetPortalStudentReportingCertificates';
|
|
47
|
+
export * from './GetPortalStudentReportingPortalInfo';
|
|
45
48
|
export * from './GetPortalUser';
|
|
46
49
|
export * from './GetPortalUserList';
|
|
47
50
|
export * from './GetQuestion';
|
|
@@ -78,9 +81,9 @@ export * from './GetQuizListAllOfFilters';
|
|
|
78
81
|
export * from './GetQuizListAllOfQuizzes';
|
|
79
82
|
export * from './GetQuizListAllOfStatistics';
|
|
80
83
|
export * from './GetQuizQuestions';
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
+
export * from './GetQuizQuestionsItemsInner';
|
|
85
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
86
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
84
87
|
export * from './GetQuizResults';
|
|
85
88
|
export * from './GetQuizResultsFeedback';
|
|
86
89
|
export * from './GetQuizResultsFeedbackDifficultyPerformanceInner';
|
|
@@ -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,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetPortalStudentReporting = instanceOfGetPortalStudentReporting;
|
|
17
|
+
exports.GetPortalStudentReportingFromJSON = GetPortalStudentReportingFromJSON;
|
|
18
|
+
exports.GetPortalStudentReportingFromJSONTyped = GetPortalStudentReportingFromJSONTyped;
|
|
19
|
+
exports.GetPortalStudentReportingToJSON = GetPortalStudentReportingToJSON;
|
|
20
|
+
exports.GetPortalStudentReportingToJSONTyped = GetPortalStudentReportingToJSONTyped;
|
|
21
|
+
const GetPortalStudentReportingCertificates_1 = require("./GetPortalStudentReportingCertificates");
|
|
22
|
+
const GetPortalStudentReportingPortalInfo_1 = require("./GetPortalStudentReportingPortalInfo");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetPortalStudentReporting(value) {
|
|
27
|
+
if (!('portalInfo' in value) || value['portalInfo'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('certificates' in value) || value['certificates'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetPortalStudentReportingFromJSON(json) {
|
|
34
|
+
return GetPortalStudentReportingFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetPortalStudentReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'portalInfo': (0, GetPortalStudentReportingPortalInfo_1.GetPortalStudentReportingPortalInfoFromJSON)(json['portal_info']),
|
|
42
|
+
'certificates': (0, GetPortalStudentReportingCertificates_1.GetPortalStudentReportingCertificatesFromJSON)(json['certificates']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetPortalStudentReportingToJSON(json) {
|
|
46
|
+
return GetPortalStudentReportingToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetPortalStudentReportingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'portal_info': (0, GetPortalStudentReportingPortalInfo_1.GetPortalStudentReportingPortalInfoToJSON)(value['portalInfo']),
|
|
54
|
+
'certificates': (0, GetPortalStudentReportingCertificates_1.GetPortalStudentReportingCertificatesToJSON)(value['certificates']),
|
|
55
|
+
};
|
|
56
|
+
}
|