@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
|
@@ -13,74 +13,74 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { GetQuizQuestionsItemsInnerQuestionDetails } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
GetQuizQuestionsItemsInnerQuestionDetailsFromJSON,
|
|
19
|
+
GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped,
|
|
20
|
+
GetQuizQuestionsItemsInnerQuestionDetailsToJSON,
|
|
21
|
+
GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped,
|
|
22
|
+
} from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface GetQuizQuestionsItemsInner
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface GetQuizQuestionsItemsInner {
|
|
30
30
|
/**
|
|
31
31
|
* Quiz-question relationship ID
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
34
34
|
*/
|
|
35
35
|
id: string;
|
|
36
36
|
/**
|
|
37
37
|
* ID of the question
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
40
40
|
*/
|
|
41
41
|
questionId: string;
|
|
42
42
|
/**
|
|
43
43
|
* External ID of the question
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
46
46
|
*/
|
|
47
47
|
questionExternalId: string;
|
|
48
48
|
/**
|
|
49
49
|
* Order of question in quiz
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
52
52
|
*/
|
|
53
53
|
questionOrder: number;
|
|
54
54
|
/**
|
|
55
55
|
* Points assigned to this question
|
|
56
56
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
58
58
|
*/
|
|
59
59
|
points: number;
|
|
60
60
|
/**
|
|
61
61
|
* Whether question is locked to specific version
|
|
62
62
|
* @type {boolean}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
64
64
|
*/
|
|
65
65
|
versionLocked: boolean;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
|
-
* @type {
|
|
69
|
-
* @memberof
|
|
68
|
+
* @type {GetQuizQuestionsItemsInnerQuestionDetails}
|
|
69
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
70
70
|
*/
|
|
71
|
-
questionDetails:
|
|
71
|
+
questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
|
|
72
72
|
/**
|
|
73
73
|
* When question was added to quiz
|
|
74
74
|
* @type {Date}
|
|
75
|
-
* @memberof
|
|
75
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
76
76
|
*/
|
|
77
77
|
createdAt: Date;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Check if a given object implements the
|
|
81
|
+
* Check if a given object implements the GetQuizQuestionsItemsInner interface.
|
|
82
82
|
*/
|
|
83
|
-
export function
|
|
83
|
+
export function instanceOfGetQuizQuestionsItemsInner(value: object): value is GetQuizQuestionsItemsInner {
|
|
84
84
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
85
|
if (!('questionId' in value) || value['questionId'] === undefined) return false;
|
|
86
86
|
if (!('questionExternalId' in value) || value['questionExternalId'] === undefined) return false;
|
|
@@ -92,11 +92,11 @@ export function instanceOfGetQuizQuestionsQuestionsInner(value: object): value i
|
|
|
92
92
|
return true;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export function
|
|
96
|
-
return
|
|
95
|
+
export function GetQuizQuestionsItemsInnerFromJSON(json: any): GetQuizQuestionsItemsInner {
|
|
96
|
+
return GetQuizQuestionsItemsInnerFromJSONTyped(json, false);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export function
|
|
99
|
+
export function GetQuizQuestionsItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInner {
|
|
100
100
|
if (json == null) {
|
|
101
101
|
return json;
|
|
102
102
|
}
|
|
@@ -108,16 +108,16 @@ export function GetQuizQuestionsQuestionsInnerFromJSONTyped(json: any, ignoreDis
|
|
|
108
108
|
'questionOrder': json['question_order'],
|
|
109
109
|
'points': json['points'],
|
|
110
110
|
'versionLocked': json['version_locked'],
|
|
111
|
-
'questionDetails':
|
|
111
|
+
'questionDetails': GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json['question_details']),
|
|
112
112
|
'createdAt': (new Date(json['created_at'])),
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
export function
|
|
117
|
-
return
|
|
116
|
+
export function GetQuizQuestionsItemsInnerToJSON(json: any): GetQuizQuestionsItemsInner {
|
|
117
|
+
return GetQuizQuestionsItemsInnerToJSONTyped(json, false);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export function
|
|
120
|
+
export function GetQuizQuestionsItemsInnerToJSONTyped(value?: GetQuizQuestionsItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
121
121
|
if (value == null) {
|
|
122
122
|
return value;
|
|
123
123
|
}
|
|
@@ -130,7 +130,7 @@ export function GetQuizQuestionsQuestionsInnerToJSONTyped(value?: GetQuizQuestio
|
|
|
130
130
|
'question_order': value['questionOrder'],
|
|
131
131
|
'points': value['points'],
|
|
132
132
|
'version_locked': value['versionLocked'],
|
|
133
|
-
'question_details':
|
|
133
|
+
'question_details': GetQuizQuestionsItemsInnerQuestionDetailsToJSON(value['questionDetails']),
|
|
134
134
|
'created_at': ((value['createdAt']).toISOString()),
|
|
135
135
|
};
|
|
136
136
|
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
17
|
+
import {
|
|
18
|
+
GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON,
|
|
19
|
+
GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped,
|
|
20
|
+
GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON,
|
|
21
|
+
GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped,
|
|
22
|
+
} from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Question details including all metadata
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetQuizQuestionsItemsInnerQuestionDetails
|
|
28
|
+
*/
|
|
29
|
+
export interface GetQuizQuestionsItemsInnerQuestionDetails {
|
|
30
|
+
/**
|
|
31
|
+
* The question text
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
34
|
+
*/
|
|
35
|
+
questionText: string;
|
|
36
|
+
/**
|
|
37
|
+
* Type of question
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
40
|
+
*/
|
|
41
|
+
questionType: GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Question topic
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
46
|
+
*/
|
|
47
|
+
topic: string;
|
|
48
|
+
/**
|
|
49
|
+
* Question difficulty
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
52
|
+
*/
|
|
53
|
+
difficultyLevel: GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Course associated with question
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
58
|
+
*/
|
|
59
|
+
course?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Explanation of correct answer
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
64
|
+
*/
|
|
65
|
+
explanation?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Tags associated with question
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
70
|
+
*/
|
|
71
|
+
tags?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Version number of this question
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
76
|
+
*/
|
|
77
|
+
versionNumber?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Whether this is the latest version
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
82
|
+
*/
|
|
83
|
+
isLatestVersion?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Available answer choices
|
|
86
|
+
* @type {Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>}
|
|
87
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
88
|
+
*/
|
|
89
|
+
answerChoices?: Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = {
|
|
97
|
+
SingleAnswer: 'single_answer',
|
|
98
|
+
MultipleAnswer: 'multiple_answer',
|
|
99
|
+
FillInBlank: 'fill_in_blank'
|
|
100
|
+
} as const;
|
|
101
|
+
export type GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum];
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export const GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
107
|
+
Beginner: 'beginner',
|
|
108
|
+
Intermediate: 'intermediate',
|
|
109
|
+
Advanced: 'advanced'
|
|
110
|
+
} as const;
|
|
111
|
+
export type GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum];
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(value: object): value is GetQuizQuestionsItemsInnerQuestionDetails {
|
|
118
|
+
if (!('questionText' in value) || value['questionText'] === undefined) return false;
|
|
119
|
+
if (!('questionType' in value) || value['questionType'] === undefined) return false;
|
|
120
|
+
if (!('topic' in value) || value['topic'] === undefined) return false;
|
|
121
|
+
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails {
|
|
126
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetails {
|
|
130
|
+
if (json == null) {
|
|
131
|
+
return json;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'questionText': json['question_text'],
|
|
136
|
+
'questionType': json['question_type'],
|
|
137
|
+
'topic': json['topic'],
|
|
138
|
+
'difficultyLevel': json['difficulty_level'],
|
|
139
|
+
'course': json['course'] == null ? undefined : json['course'],
|
|
140
|
+
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
141
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
142
|
+
'versionNumber': json['version_number'] == null ? undefined : json['version_number'],
|
|
143
|
+
'isLatestVersion': json['is_latest_version'] == null ? undefined : json['is_latest_version'],
|
|
144
|
+
'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails {
|
|
149
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(json, false);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
153
|
+
if (value == null) {
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return {
|
|
158
|
+
|
|
159
|
+
'question_text': value['questionText'],
|
|
160
|
+
'question_type': value['questionType'],
|
|
161
|
+
'topic': value['topic'],
|
|
162
|
+
'difficulty_level': value['difficultyLevel'],
|
|
163
|
+
'course': value['course'],
|
|
164
|
+
'explanation': value['explanation'],
|
|
165
|
+
'tags': value['tags'],
|
|
166
|
+
'version_number': value['versionNumber'],
|
|
167
|
+
'is_latest_version': value['isLatestVersion'],
|
|
168
|
+
'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
22
|
+
/**
|
|
23
|
+
* Answer choice ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* External ID of answer choice
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
32
|
+
*/
|
|
33
|
+
externalId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Answer choice text
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
38
|
+
*/
|
|
39
|
+
text: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether this choice is correct
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
44
|
+
*/
|
|
45
|
+
isCorrect: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Display order of choice
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
50
|
+
*/
|
|
51
|
+
displayOrder: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
60
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
61
|
+
if (!('isCorrect' in value) || value['isCorrect'] === undefined) return false;
|
|
62
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
67
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'externalId': json['external_id'],
|
|
78
|
+
'text': json['text'],
|
|
79
|
+
'isCorrect': json['is_correct'],
|
|
80
|
+
'displayOrder': json['display_order'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
85
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'external_id': value['externalId'],
|
|
97
|
+
'text': value['text'],
|
|
98
|
+
'is_correct': value['isCorrect'],
|
|
99
|
+
'display_order': value['displayOrder'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/index.ts
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';
|
|
@@ -1,75 +0,0 @@
|
|
|
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 { GetQuizQuestionsQuestionsInnerQuestionDetails } from './GetQuizQuestionsQuestionsInnerQuestionDetails';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetQuizQuestionsQuestionsInner
|
|
17
|
-
*/
|
|
18
|
-
export interface GetQuizQuestionsQuestionsInner {
|
|
19
|
-
/**
|
|
20
|
-
* Quiz-question relationship ID
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* ID of the question
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
29
|
-
*/
|
|
30
|
-
questionId: string;
|
|
31
|
-
/**
|
|
32
|
-
* External ID of the question
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
35
|
-
*/
|
|
36
|
-
questionExternalId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Order of question in quiz
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
41
|
-
*/
|
|
42
|
-
questionOrder: number;
|
|
43
|
-
/**
|
|
44
|
-
* Points assigned to this question
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
47
|
-
*/
|
|
48
|
-
points: number;
|
|
49
|
-
/**
|
|
50
|
-
* Whether question is locked to specific version
|
|
51
|
-
* @type {boolean}
|
|
52
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
53
|
-
*/
|
|
54
|
-
versionLocked: boolean;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {GetQuizQuestionsQuestionsInnerQuestionDetails}
|
|
58
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
59
|
-
*/
|
|
60
|
-
questionDetails: GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
61
|
-
/**
|
|
62
|
-
* When question was added to quiz
|
|
63
|
-
* @type {Date}
|
|
64
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
65
|
-
*/
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInner interface.
|
|
70
|
-
*/
|
|
71
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInner(value: object): value is GetQuizQuestionsQuestionsInner;
|
|
72
|
-
export declare function GetQuizQuestionsQuestionsInnerFromJSON(json: any): GetQuizQuestionsQuestionsInner;
|
|
73
|
-
export declare function GetQuizQuestionsQuestionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInner;
|
|
74
|
-
export declare function GetQuizQuestionsQuestionsInnerToJSON(json: any): GetQuizQuestionsQuestionsInner;
|
|
75
|
-
export declare function GetQuizQuestionsQuestionsInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,81 +0,0 @@
|
|
|
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 { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
13
|
-
/**
|
|
14
|
-
* Question details
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
17
|
-
*/
|
|
18
|
-
export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
19
|
-
/**
|
|
20
|
-
* The question text
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
23
|
-
*/
|
|
24
|
-
questionText: string;
|
|
25
|
-
/**
|
|
26
|
-
* Type of question
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
29
|
-
*/
|
|
30
|
-
questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
|
|
31
|
-
/**
|
|
32
|
-
* Question topic
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
35
|
-
*/
|
|
36
|
-
topic: string;
|
|
37
|
-
/**
|
|
38
|
-
* Question difficulty
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
41
|
-
*/
|
|
42
|
-
difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
-
/**
|
|
44
|
-
* Explanation of correct answer
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
47
|
-
*/
|
|
48
|
-
explanation?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Available answer choices
|
|
51
|
-
* @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
|
|
52
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
53
|
-
*/
|
|
54
|
-
answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @export
|
|
58
|
-
*/
|
|
59
|
-
export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum: {
|
|
60
|
-
readonly SingleAnswer: "single_answer";
|
|
61
|
-
readonly MultipleAnswer: "multiple_answer";
|
|
62
|
-
readonly FillInBlank: "fill_in_blank";
|
|
63
|
-
};
|
|
64
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
|
|
65
|
-
/**
|
|
66
|
-
* @export
|
|
67
|
-
*/
|
|
68
|
-
export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum: {
|
|
69
|
-
readonly Beginner: "beginner";
|
|
70
|
-
readonly Intermediate: "intermediate";
|
|
71
|
-
readonly Advanced: "advanced";
|
|
72
|
-
};
|
|
73
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
|
|
74
|
-
/**
|
|
75
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
76
|
-
*/
|
|
77
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
78
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
79
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
80
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
81
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,76 +0,0 @@
|
|
|
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 { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON, GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON, } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = {
|
|
19
|
-
SingleAnswer: 'single_answer',
|
|
20
|
-
MultipleAnswer: 'multiple_answer',
|
|
21
|
-
FillInBlank: 'fill_in_blank'
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
27
|
-
Beginner: 'beginner',
|
|
28
|
-
Intermediate: 'intermediate',
|
|
29
|
-
Advanced: 'advanced'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
33
|
-
*/
|
|
34
|
-
export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(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 GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json) {
|
|
46
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(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
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
58
|
-
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json) {
|
|
62
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
'question_text': value['questionText'],
|
|
70
|
-
'question_type': value['questionType'],
|
|
71
|
-
'topic': value['topic'],
|
|
72
|
-
'difficulty_level': value['difficultyLevel'],
|
|
73
|
-
'explanation': value['explanation'],
|
|
74
|
-
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
75
|
-
};
|
|
76
|
-
}
|