@easyedu/js-lsm-api 1.47.0 → 1.49.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/README.md +2 -2
- package/dist/apis/QuestionApi.d.ts +0 -1
- package/dist/apis/QuestionApi.js +0 -3
- package/dist/esm/apis/QuestionApi.d.ts +0 -1
- package/dist/esm/apis/QuestionApi.js +0 -3
- package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +0 -6
- package/dist/esm/models/CriteriaBasedSelectionCriteria.js +0 -2
- package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.js +16 -0
- package/dist/esm/models/GetQuestion.d.ts +0 -6
- package/dist/esm/models/GetQuestion.js +0 -2
- package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/esm/models/GetQuestionListFilters.js +0 -2
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +0 -6
- package/dist/esm/models/GetQuizCriteriaItem.js +0 -2
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +0 -6
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +0 -2
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +0 -6
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +0 -2
- package/dist/esm/models/PostQuestion.d.ts +0 -6
- package/dist/esm/models/PostQuestion.js +0 -2
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +0 -6
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +0 -2
- package/dist/esm/models/PutQuestion.d.ts +0 -6
- package/dist/esm/models/PutQuestion.js +0 -2
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +0 -6
- package/dist/models/CriteriaBasedSelectionCriteria.js +0 -2
- package/dist/models/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
- package/dist/models/GetModuleInstructorBasicReportingEngagement.js +16 -0
- package/dist/models/GetQuestion.d.ts +0 -6
- package/dist/models/GetQuestion.js +0 -2
- package/dist/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/models/GetQuestionListFilters.js +0 -2
- package/dist/models/GetQuizCriteriaItem.d.ts +0 -6
- package/dist/models/GetQuizCriteriaItem.js +0 -2
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +0 -6
- package/dist/models/GetQuizCriteriaListItemsInner.js +0 -2
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +0 -6
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +0 -2
- package/dist/models/PostQuestion.d.ts +0 -6
- package/dist/models/PostQuestion.js +0 -2
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +0 -6
- package/dist/models/PostQuizCriteriaCriteriaInner.js +0 -2
- package/dist/models/PutQuestion.d.ts +0 -6
- package/dist/models/PutQuestion.js +0 -2
- package/docs/CriteriaBasedSelectionCriteria.md +0 -2
- package/docs/GetModuleInstructorBasicReportingEngagement.md +8 -0
- package/docs/GetQuestion.md +0 -2
- package/docs/GetQuestionListFilters.md +0 -2
- package/docs/GetQuizCriteriaItem.md +0 -2
- package/docs/GetQuizCriteriaListItemsInner.md +0 -2
- package/docs/GetQuizQuestionsItemsInnerQuestionDetails.md +0 -2
- package/docs/PostQuestion.md +0 -2
- package/docs/PostQuizCriteriaCriteriaInner.md +0 -2
- package/docs/PutQuestion.md +0 -2
- package/docs/QuestionApi.md +1 -4
- package/package.json +1 -1
- package/src/apis/QuestionApi.ts +0 -5
- package/src/models/CriteriaBasedSelectionCriteria.ts +0 -8
- package/src/models/GetModuleInstructorBasicReportingEngagement.ts +36 -0
- package/src/models/GetQuestion.ts +0 -8
- package/src/models/GetQuestionListFilters.ts +0 -8
- package/src/models/GetQuizCriteriaItem.ts +0 -8
- package/src/models/GetQuizCriteriaListItemsInner.ts +0 -8
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +0 -8
- package/src/models/PostQuestion.ts +0 -8
- package/src/models/PostQuizCriteriaCriteriaInner.ts +0 -8
- package/src/models/PutQuestion.ts +0 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.49.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -421,7 +421,7 @@ and is automatically generated by the
|
|
|
421
421
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
422
422
|
|
|
423
423
|
- API version: `1.0.0`
|
|
424
|
-
- Package version: `1.
|
|
424
|
+
- Package version: `1.49.0`
|
|
425
425
|
- Generator version: `7.21.0`
|
|
426
426
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
427
427
|
|
package/dist/apis/QuestionApi.js
CHANGED
|
@@ -121,9 +121,6 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
121
121
|
if (requestParameters['topic'] != null) {
|
|
122
122
|
queryParameters['topic'] = requestParameters['topic'];
|
|
123
123
|
}
|
|
124
|
-
if (requestParameters['course'] != null) {
|
|
125
|
-
queryParameters['course'] = requestParameters['course'];
|
|
126
|
-
}
|
|
127
124
|
if (requestParameters['questionType'] != null) {
|
|
128
125
|
queryParameters['question_type'] = requestParameters['questionType'];
|
|
129
126
|
}
|
|
@@ -118,9 +118,6 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
118
118
|
if (requestParameters['topic'] != null) {
|
|
119
119
|
queryParameters['topic'] = requestParameters['topic'];
|
|
120
120
|
}
|
|
121
|
-
if (requestParameters['course'] != null) {
|
|
122
|
-
queryParameters['course'] = requestParameters['course'];
|
|
123
|
-
}
|
|
124
121
|
if (requestParameters['questionType'] != null) {
|
|
125
122
|
queryParameters['question_type'] = requestParameters['questionType'];
|
|
126
123
|
}
|
|
@@ -39,12 +39,6 @@ export interface CriteriaBasedSelectionCriteria {
|
|
|
39
39
|
* @memberof CriteriaBasedSelectionCriteria
|
|
40
40
|
*/
|
|
41
41
|
tags?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
* Course to filter by
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CriteriaBasedSelectionCriteria
|
|
46
|
-
*/
|
|
47
|
-
course?: string;
|
|
48
42
|
}
|
|
49
43
|
/**
|
|
50
44
|
* @export
|
|
@@ -48,7 +48,6 @@ export function CriteriaBasedSelectionCriteriaFromJSONTyped(json, ignoreDiscrimi
|
|
|
48
48
|
'difficultyLevels': json['difficulty_levels'] == null ? undefined : json['difficulty_levels'],
|
|
49
49
|
'questionTypes': json['question_types'] == null ? undefined : json['question_types'],
|
|
50
50
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
51
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
53
|
export function CriteriaBasedSelectionCriteriaToJSON(json) {
|
|
@@ -63,6 +62,5 @@ export function CriteriaBasedSelectionCriteriaToJSONTyped(value, ignoreDiscrimin
|
|
|
63
62
|
'difficulty_levels': value['difficultyLevels'],
|
|
64
63
|
'question_types': value['questionTypes'],
|
|
65
64
|
'tags': value['tags'],
|
|
66
|
-
'course': value['course'],
|
|
67
65
|
};
|
|
68
66
|
}
|
|
@@ -21,6 +21,30 @@ export interface GetModuleInstructorBasicReportingEngagement {
|
|
|
21
21
|
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
22
22
|
*/
|
|
23
23
|
avgTimeSpentHours: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Percentage of active course-enrolled students who have completed every published content item in this module. Null if there are no active enrolled students.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
28
|
+
*/
|
|
29
|
+
completionRatePercentage: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Number of active course-enrolled students who have completed every published content item in this module.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
34
|
+
*/
|
|
35
|
+
completedCount: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of active course-enrolled students who have started at least one content item in this module but have not completed all published items.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
40
|
+
*/
|
|
41
|
+
inProgressCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of active course-enrolled students who have not opened any content item in this module.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
46
|
+
*/
|
|
47
|
+
notStartedCount: number;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
50
|
* Check if a given object implements the GetModuleInstructorBasicReportingEngagement interface.
|
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
export function instanceOfGetModuleInstructorBasicReportingEngagement(value) {
|
|
18
18
|
if (!('avgTimeSpentHours' in value) || value['avgTimeSpentHours'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
+
if (!('completionRatePercentage' in value) || value['completionRatePercentage'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('completedCount' in value) || value['completedCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('inProgressCount' in value) || value['inProgressCount'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('notStartedCount' in value) || value['notStartedCount'] === undefined)
|
|
27
|
+
return false;
|
|
20
28
|
return true;
|
|
21
29
|
}
|
|
22
30
|
export function GetModuleInstructorBasicReportingEngagementFromJSON(json) {
|
|
@@ -28,6 +36,10 @@ export function GetModuleInstructorBasicReportingEngagementFromJSONTyped(json, i
|
|
|
28
36
|
}
|
|
29
37
|
return {
|
|
30
38
|
'avgTimeSpentHours': json['avg_time_spent_hours'],
|
|
39
|
+
'completionRatePercentage': json['completion_rate_percentage'],
|
|
40
|
+
'completedCount': json['completed_count'],
|
|
41
|
+
'inProgressCount': json['in_progress_count'],
|
|
42
|
+
'notStartedCount': json['not_started_count'],
|
|
31
43
|
};
|
|
32
44
|
}
|
|
33
45
|
export function GetModuleInstructorBasicReportingEngagementToJSON(json) {
|
|
@@ -39,5 +51,9 @@ export function GetModuleInstructorBasicReportingEngagementToJSONTyped(value, ig
|
|
|
39
51
|
}
|
|
40
52
|
return {
|
|
41
53
|
'avg_time_spent_hours': value['avgTimeSpentHours'],
|
|
54
|
+
'completion_rate_percentage': value['completionRatePercentage'],
|
|
55
|
+
'completed_count': value['completedCount'],
|
|
56
|
+
'in_progress_count': value['inProgressCount'],
|
|
57
|
+
'not_started_count': value['notStartedCount'],
|
|
42
58
|
};
|
|
43
59
|
}
|
|
@@ -59,12 +59,6 @@ export interface GetQuestion {
|
|
|
59
59
|
* @memberof GetQuestion
|
|
60
60
|
*/
|
|
61
61
|
topic: string;
|
|
62
|
-
/**
|
|
63
|
-
* Associated course identifier (e.g., FA 102 2022)
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof GetQuestion
|
|
66
|
-
*/
|
|
67
|
-
course?: string;
|
|
68
62
|
/**
|
|
69
63
|
* Difficulty level of the question
|
|
70
64
|
* @type {GetQuestionDifficultyLevelEnum}
|
|
@@ -67,7 +67,6 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
68
68
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
69
69
|
'topic': json['topic'],
|
|
70
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
71
70
|
'difficultyLevel': json['difficulty_level'],
|
|
72
71
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
73
72
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -92,7 +91,6 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
92
91
|
'correct_answer': value['correctAnswer'],
|
|
93
92
|
'explanation': value['explanation'],
|
|
94
93
|
'topic': value['topic'],
|
|
95
|
-
'course': value['course'],
|
|
96
94
|
'difficulty_level': value['difficultyLevel'],
|
|
97
95
|
'tags': value['tags'],
|
|
98
96
|
'version': value['version'],
|
|
@@ -21,12 +21,6 @@ export interface GetQuestionListFilters {
|
|
|
21
21
|
* @memberof GetQuestionListFilters
|
|
22
22
|
*/
|
|
23
23
|
topic?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Filter by course
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof GetQuestionListFilters
|
|
28
|
-
*/
|
|
29
|
-
course?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Filter by question type
|
|
32
26
|
* @type {GetQuestionListFiltersQuestionTypeEnum}
|
|
@@ -45,7 +45,6 @@ export function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
48
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
49
48
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
50
49
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
51
50
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -63,7 +62,6 @@ export function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = f
|
|
|
63
62
|
}
|
|
64
63
|
return {
|
|
65
64
|
'topic': value['topic'],
|
|
66
|
-
'course': value['course'],
|
|
67
65
|
'question_type': value['questionType'],
|
|
68
66
|
'difficulty_level': value['difficultyLevel'],
|
|
69
67
|
'tags': value['tags'],
|
|
@@ -51,12 +51,6 @@ export interface GetQuizCriteriaItem {
|
|
|
51
51
|
* @memberof GetQuizCriteriaItem
|
|
52
52
|
*/
|
|
53
53
|
tags?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Course filter (null for any course)
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof GetQuizCriteriaItem
|
|
58
|
-
*/
|
|
59
|
-
course?: string;
|
|
60
54
|
/**
|
|
61
55
|
* Minimum questions from this criteria
|
|
62
56
|
* @type {number}
|
|
@@ -62,7 +62,6 @@ export function GetQuizCriteriaItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
63
63
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
64
64
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
66
65
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
67
66
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
68
67
|
'priority': json['priority'],
|
|
@@ -85,7 +84,6 @@ export function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
85
84
|
'difficulty_level': value['difficultyLevel'],
|
|
86
85
|
'question_type': value['questionType'],
|
|
87
86
|
'tags': value['tags'],
|
|
88
|
-
'course': value['course'],
|
|
89
87
|
'min_questions': value['minQuestions'],
|
|
90
88
|
'max_questions': value['maxQuestions'],
|
|
91
89
|
'priority': value['priority'],
|
|
@@ -51,12 +51,6 @@ export interface GetQuizCriteriaListItemsInner {
|
|
|
51
51
|
* @memberof GetQuizCriteriaListItemsInner
|
|
52
52
|
*/
|
|
53
53
|
tags?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Course filter (null for any course)
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof GetQuizCriteriaListItemsInner
|
|
58
|
-
*/
|
|
59
|
-
course?: string;
|
|
60
54
|
/**
|
|
61
55
|
* Minimum questions from this criteria
|
|
62
56
|
* @type {number}
|
|
@@ -62,7 +62,6 @@ export function GetQuizCriteriaListItemsInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
62
62
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
63
63
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
64
64
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
66
65
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
67
66
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
68
67
|
'priority': json['priority'],
|
|
@@ -85,7 +84,6 @@ export function GetQuizCriteriaListItemsInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
85
84
|
'difficulty_level': value['difficultyLevel'],
|
|
86
85
|
'question_type': value['questionType'],
|
|
87
86
|
'tags': value['tags'],
|
|
88
|
-
'course': value['course'],
|
|
89
87
|
'min_questions': value['minQuestions'],
|
|
90
88
|
'max_questions': value['maxQuestions'],
|
|
91
89
|
'priority': value['priority'],
|
|
@@ -40,12 +40,6 @@ export interface GetQuizQuestionsItemsInnerQuestionDetails {
|
|
|
40
40
|
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
41
41
|
*/
|
|
42
42
|
difficultyLevel: GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
-
/**
|
|
44
|
-
* Course associated with question
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
47
|
-
*/
|
|
48
|
-
course?: string;
|
|
49
43
|
/**
|
|
50
44
|
* Explanation of correct answer
|
|
51
45
|
* @type {string}
|
|
@@ -57,7 +57,6 @@ export function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, ign
|
|
|
57
57
|
'questionType': json['question_type'],
|
|
58
58
|
'topic': json['topic'],
|
|
59
59
|
'difficultyLevel': json['difficulty_level'],
|
|
60
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
61
60
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
62
61
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
63
62
|
'versionNumber': json['version_number'] == null ? undefined : json['version_number'],
|
|
@@ -77,7 +76,6 @@ export function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value, igno
|
|
|
77
76
|
'question_type': value['questionType'],
|
|
78
77
|
'topic': value['topic'],
|
|
79
78
|
'difficulty_level': value['difficultyLevel'],
|
|
80
|
-
'course': value['course'],
|
|
81
79
|
'explanation': value['explanation'],
|
|
82
80
|
'tags': value['tags'],
|
|
83
81
|
'version_number': value['versionNumber'],
|
|
@@ -52,12 +52,6 @@ export interface PostQuestion {
|
|
|
52
52
|
* @memberof PostQuestion
|
|
53
53
|
*/
|
|
54
54
|
topic: string;
|
|
55
|
-
/**
|
|
56
|
-
* Associated course identifier (e.g., FA 102 2022)
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof PostQuestion
|
|
59
|
-
*/
|
|
60
|
-
course?: string;
|
|
61
55
|
/**
|
|
62
56
|
* Difficulty level of the question
|
|
63
57
|
* @type {PostQuestionDifficultyLevelEnum}
|
|
@@ -59,7 +59,6 @@ export function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
60
60
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
61
61
|
'topic': json['topic'],
|
|
62
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
63
62
|
'difficultyLevel': json['difficulty_level'],
|
|
64
63
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
64
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -79,7 +78,6 @@ export function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
78
|
'correct_answer': value['correctAnswer'],
|
|
80
79
|
'explanation': value['explanation'],
|
|
81
80
|
'topic': value['topic'],
|
|
82
|
-
'course': value['course'],
|
|
83
81
|
'difficulty_level': value['difficultyLevel'],
|
|
84
82
|
'tags': value['tags'],
|
|
85
83
|
'version': value['version'],
|
|
@@ -39,12 +39,6 @@ export interface PostQuizCriteriaCriteriaInner {
|
|
|
39
39
|
* @memberof PostQuizCriteriaCriteriaInner
|
|
40
40
|
*/
|
|
41
41
|
tags?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
* Filter by course (null for any course)
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof PostQuizCriteriaCriteriaInner
|
|
46
|
-
*/
|
|
47
|
-
course?: string;
|
|
48
42
|
/**
|
|
49
43
|
* Minimum questions to select from this criteria
|
|
50
44
|
* @type {number}
|
|
@@ -48,7 +48,6 @@ export function PostQuizCriteriaCriteriaInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
48
48
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
49
49
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
50
50
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
51
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
52
51
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
53
52
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
54
53
|
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
@@ -66,7 +65,6 @@ export function PostQuizCriteriaCriteriaInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
66
65
|
'difficulty_level': value['difficultyLevel'],
|
|
67
66
|
'question_type': value['questionType'],
|
|
68
67
|
'tags': value['tags'],
|
|
69
|
-
'course': value['course'],
|
|
70
68
|
'min_questions': value['minQuestions'],
|
|
71
69
|
'max_questions': value['maxQuestions'],
|
|
72
70
|
'priority': value['priority'],
|
|
@@ -52,12 +52,6 @@ export interface PutQuestion {
|
|
|
52
52
|
* @memberof PutQuestion
|
|
53
53
|
*/
|
|
54
54
|
topic?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Associated course identifier (e.g., FA 102 2022)
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof PutQuestion
|
|
59
|
-
*/
|
|
60
|
-
course?: string;
|
|
61
55
|
/**
|
|
62
56
|
* Difficulty level of the question
|
|
63
57
|
* @type {PutQuestionDifficultyLevelEnum}
|
|
@@ -51,7 +51,6 @@ export function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
52
52
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
53
53
|
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
54
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
55
54
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
56
55
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
57
56
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -71,7 +70,6 @@ export function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
70
|
'correct_answer': value['correctAnswer'],
|
|
72
71
|
'explanation': value['explanation'],
|
|
73
72
|
'topic': value['topic'],
|
|
74
|
-
'course': value['course'],
|
|
75
73
|
'difficulty_level': value['difficultyLevel'],
|
|
76
74
|
'tags': value['tags'],
|
|
77
75
|
'version': value['version'],
|
|
@@ -39,12 +39,6 @@ export interface CriteriaBasedSelectionCriteria {
|
|
|
39
39
|
* @memberof CriteriaBasedSelectionCriteria
|
|
40
40
|
*/
|
|
41
41
|
tags?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
* Course to filter by
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CriteriaBasedSelectionCriteria
|
|
46
|
-
*/
|
|
47
|
-
course?: string;
|
|
48
42
|
}
|
|
49
43
|
/**
|
|
50
44
|
* @export
|
|
@@ -56,7 +56,6 @@ function CriteriaBasedSelectionCriteriaFromJSONTyped(json, ignoreDiscriminator)
|
|
|
56
56
|
'difficultyLevels': json['difficulty_levels'] == null ? undefined : json['difficulty_levels'],
|
|
57
57
|
'questionTypes': json['question_types'] == null ? undefined : json['question_types'],
|
|
58
58
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
59
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
60
59
|
};
|
|
61
60
|
}
|
|
62
61
|
function CriteriaBasedSelectionCriteriaToJSON(json) {
|
|
@@ -71,6 +70,5 @@ function CriteriaBasedSelectionCriteriaToJSONTyped(value, ignoreDiscriminator =
|
|
|
71
70
|
'difficulty_levels': value['difficultyLevels'],
|
|
72
71
|
'question_types': value['questionTypes'],
|
|
73
72
|
'tags': value['tags'],
|
|
74
|
-
'course': value['course'],
|
|
75
73
|
};
|
|
76
74
|
}
|
|
@@ -21,6 +21,30 @@ export interface GetModuleInstructorBasicReportingEngagement {
|
|
|
21
21
|
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
22
22
|
*/
|
|
23
23
|
avgTimeSpentHours: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Percentage of active course-enrolled students who have completed every published content item in this module. Null if there are no active enrolled students.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
28
|
+
*/
|
|
29
|
+
completionRatePercentage: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Number of active course-enrolled students who have completed every published content item in this module.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
34
|
+
*/
|
|
35
|
+
completedCount: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of active course-enrolled students who have started at least one content item in this module but have not completed all published items.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
40
|
+
*/
|
|
41
|
+
inProgressCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of active course-enrolled students who have not opened any content item in this module.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetModuleInstructorBasicReportingEngagement
|
|
46
|
+
*/
|
|
47
|
+
notStartedCount: number;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
50
|
* Check if a given object implements the GetModuleInstructorBasicReportingEngagement interface.
|
|
@@ -24,6 +24,14 @@ exports.GetModuleInstructorBasicReportingEngagementToJSONTyped = GetModuleInstru
|
|
|
24
24
|
function instanceOfGetModuleInstructorBasicReportingEngagement(value) {
|
|
25
25
|
if (!('avgTimeSpentHours' in value) || value['avgTimeSpentHours'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('completionRatePercentage' in value) || value['completionRatePercentage'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('completedCount' in value) || value['completedCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('inProgressCount' in value) || value['inProgressCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('notStartedCount' in value) || value['notStartedCount'] === undefined)
|
|
34
|
+
return false;
|
|
27
35
|
return true;
|
|
28
36
|
}
|
|
29
37
|
function GetModuleInstructorBasicReportingEngagementFromJSON(json) {
|
|
@@ -35,6 +43,10 @@ function GetModuleInstructorBasicReportingEngagementFromJSONTyped(json, ignoreDi
|
|
|
35
43
|
}
|
|
36
44
|
return {
|
|
37
45
|
'avgTimeSpentHours': json['avg_time_spent_hours'],
|
|
46
|
+
'completionRatePercentage': json['completion_rate_percentage'],
|
|
47
|
+
'completedCount': json['completed_count'],
|
|
48
|
+
'inProgressCount': json['in_progress_count'],
|
|
49
|
+
'notStartedCount': json['not_started_count'],
|
|
38
50
|
};
|
|
39
51
|
}
|
|
40
52
|
function GetModuleInstructorBasicReportingEngagementToJSON(json) {
|
|
@@ -46,5 +58,9 @@ function GetModuleInstructorBasicReportingEngagementToJSONTyped(value, ignoreDis
|
|
|
46
58
|
}
|
|
47
59
|
return {
|
|
48
60
|
'avg_time_spent_hours': value['avgTimeSpentHours'],
|
|
61
|
+
'completion_rate_percentage': value['completionRatePercentage'],
|
|
62
|
+
'completed_count': value['completedCount'],
|
|
63
|
+
'in_progress_count': value['inProgressCount'],
|
|
64
|
+
'not_started_count': value['notStartedCount'],
|
|
49
65
|
};
|
|
50
66
|
}
|
|
@@ -59,12 +59,6 @@ export interface GetQuestion {
|
|
|
59
59
|
* @memberof GetQuestion
|
|
60
60
|
*/
|
|
61
61
|
topic: string;
|
|
62
|
-
/**
|
|
63
|
-
* Associated course identifier (e.g., FA 102 2022)
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof GetQuestion
|
|
66
|
-
*/
|
|
67
|
-
course?: string;
|
|
68
62
|
/**
|
|
69
63
|
* Difficulty level of the question
|
|
70
64
|
* @type {GetQuestionDifficultyLevelEnum}
|
|
@@ -75,7 +75,6 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
76
76
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
77
77
|
'topic': json['topic'],
|
|
78
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
79
78
|
'difficultyLevel': json['difficulty_level'],
|
|
80
79
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
81
80
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -100,7 +99,6 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
100
99
|
'correct_answer': value['correctAnswer'],
|
|
101
100
|
'explanation': value['explanation'],
|
|
102
101
|
'topic': value['topic'],
|
|
103
|
-
'course': value['course'],
|
|
104
102
|
'difficulty_level': value['difficultyLevel'],
|
|
105
103
|
'tags': value['tags'],
|
|
106
104
|
'version': value['version'],
|
|
@@ -21,12 +21,6 @@ export interface GetQuestionListFilters {
|
|
|
21
21
|
* @memberof GetQuestionListFilters
|
|
22
22
|
*/
|
|
23
23
|
topic?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Filter by course
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof GetQuestionListFilters
|
|
28
|
-
*/
|
|
29
|
-
course?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Filter by question type
|
|
32
26
|
* @type {GetQuestionListFiltersQuestionTypeEnum}
|
|
@@ -53,7 +53,6 @@ function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
56
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
57
56
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
58
57
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
59
58
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -71,7 +70,6 @@ function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
70
|
}
|
|
72
71
|
return {
|
|
73
72
|
'topic': value['topic'],
|
|
74
|
-
'course': value['course'],
|
|
75
73
|
'question_type': value['questionType'],
|
|
76
74
|
'difficulty_level': value['difficultyLevel'],
|
|
77
75
|
'tags': value['tags'],
|
|
@@ -51,12 +51,6 @@ export interface GetQuizCriteriaItem {
|
|
|
51
51
|
* @memberof GetQuizCriteriaItem
|
|
52
52
|
*/
|
|
53
53
|
tags?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Course filter (null for any course)
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof GetQuizCriteriaItem
|
|
58
|
-
*/
|
|
59
|
-
course?: string;
|
|
60
54
|
/**
|
|
61
55
|
* Minimum questions from this criteria
|
|
62
56
|
* @type {number}
|
|
@@ -70,7 +70,6 @@ function GetQuizCriteriaItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
71
71
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
72
72
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
73
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
74
73
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
75
74
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
76
75
|
'priority': json['priority'],
|
|
@@ -93,7 +92,6 @@ function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
92
|
'difficulty_level': value['difficultyLevel'],
|
|
94
93
|
'question_type': value['questionType'],
|
|
95
94
|
'tags': value['tags'],
|
|
96
|
-
'course': value['course'],
|
|
97
95
|
'min_questions': value['minQuestions'],
|
|
98
96
|
'max_questions': value['maxQuestions'],
|
|
99
97
|
'priority': value['priority'],
|
|
@@ -51,12 +51,6 @@ export interface GetQuizCriteriaListItemsInner {
|
|
|
51
51
|
* @memberof GetQuizCriteriaListItemsInner
|
|
52
52
|
*/
|
|
53
53
|
tags?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Course filter (null for any course)
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof GetQuizCriteriaListItemsInner
|
|
58
|
-
*/
|
|
59
|
-
course?: string;
|
|
60
54
|
/**
|
|
61
55
|
* Minimum questions from this criteria
|
|
62
56
|
* @type {number}
|
|
@@ -70,7 +70,6 @@ function GetQuizCriteriaListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
71
71
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
72
72
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
73
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
74
73
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
75
74
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
76
75
|
'priority': json['priority'],
|
|
@@ -93,7 +92,6 @@ function GetQuizCriteriaListItemsInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
93
92
|
'difficulty_level': value['difficultyLevel'],
|
|
94
93
|
'question_type': value['questionType'],
|
|
95
94
|
'tags': value['tags'],
|
|
96
|
-
'course': value['course'],
|
|
97
95
|
'min_questions': value['minQuestions'],
|
|
98
96
|
'max_questions': value['maxQuestions'],
|
|
99
97
|
'priority': value['priority'],
|
|
@@ -40,12 +40,6 @@ export interface GetQuizQuestionsItemsInnerQuestionDetails {
|
|
|
40
40
|
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
41
41
|
*/
|
|
42
42
|
difficultyLevel: GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
-
/**
|
|
44
|
-
* Course associated with question
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
47
|
-
*/
|
|
48
|
-
course?: string;
|
|
49
43
|
/**
|
|
50
44
|
* Explanation of correct answer
|
|
51
45
|
* @type {string}
|