@easyedu/js-lsm-api 1.46.0 → 1.48.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 +4 -0
- package/README.md +6 -2
- package/dist/apis/ContentApi.d.ts +18 -1
- package/dist/apis/ContentApi.js +47 -0
- package/dist/apis/ModuleApi.d.ts +17 -1
- package/dist/apis/ModuleApi.js +43 -0
- package/dist/apis/QuestionApi.d.ts +0 -1
- package/dist/apis/QuestionApi.js +0 -3
- package/dist/esm/apis/ContentApi.d.ts +18 -1
- package/dist/esm/apis/ContentApi.js +48 -1
- package/dist/esm/apis/ModuleApi.d.ts +17 -1
- package/dist/esm/apis/ModuleApi.js +44 -1
- 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/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/PostContentQuiz.d.ts +6 -0
- package/dist/esm/models/PostContentQuiz.js +2 -0
- package/dist/esm/models/PostContentUpload.d.ts +6 -0
- package/dist/esm/models/PostContentUpload.js +2 -0
- package/dist/esm/models/PostModule.d.ts +1 -1
- package/dist/esm/models/PostModule.js +1 -3
- 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/PutContentReorder.d.ts +32 -0
- package/dist/esm/models/PutContentReorder.js +43 -0
- package/dist/esm/models/PutCourse.d.ts +0 -6
- package/dist/esm/models/PutCourse.js +0 -2
- package/dist/esm/models/PutModule.d.ts +0 -6
- package/dist/esm/models/PutModule.js +0 -2
- package/dist/esm/models/PutModuleReorder.d.ts +32 -0
- package/dist/esm/models/PutModuleReorder.js +43 -0
- package/dist/esm/models/PutQuestion.d.ts +0 -6
- package/dist/esm/models/PutQuestion.js +0 -2
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +0 -6
- package/dist/models/CriteriaBasedSelectionCriteria.js +0 -2
- 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/PostContentQuiz.d.ts +6 -0
- package/dist/models/PostContentQuiz.js +2 -0
- package/dist/models/PostContentUpload.d.ts +6 -0
- package/dist/models/PostContentUpload.js +2 -0
- package/dist/models/PostModule.d.ts +1 -1
- package/dist/models/PostModule.js +1 -3
- 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/PutContentReorder.d.ts +32 -0
- package/dist/models/PutContentReorder.js +50 -0
- package/dist/models/PutCourse.d.ts +0 -6
- package/dist/models/PutCourse.js +0 -2
- package/dist/models/PutModule.d.ts +0 -6
- package/dist/models/PutModule.js +0 -2
- package/dist/models/PutModuleReorder.d.ts +32 -0
- package/dist/models/PutModuleReorder.js +50 -0
- package/dist/models/PutQuestion.d.ts +0 -6
- package/dist/models/PutQuestion.js +0 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/ContentApi.md +72 -0
- package/docs/CriteriaBasedSelectionCriteria.md +0 -2
- 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/ModuleApi.md +69 -0
- package/docs/PostContentQuiz.md +2 -0
- package/docs/PostContentUpload.md +2 -0
- package/docs/PostQuestion.md +0 -2
- package/docs/PostQuizCriteriaCriteriaInner.md +0 -2
- package/docs/PutContentReorder.md +34 -0
- package/docs/PutCourse.md +0 -2
- package/docs/PutModule.md +0 -2
- package/docs/PutModuleReorder.md +34 -0
- package/docs/PutQuestion.md +0 -2
- package/docs/QuestionApi.md +1 -4
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +71 -0
- package/src/apis/ModuleApi.ts +62 -0
- package/src/apis/QuestionApi.ts +0 -5
- package/src/models/CriteriaBasedSelectionCriteria.ts +0 -8
- 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/PostContentQuiz.ts +8 -0
- package/src/models/PostContentUpload.ts +8 -0
- package/src/models/PostModule.ts +2 -3
- package/src/models/PostQuestion.ts +0 -8
- package/src/models/PostQuizCriteriaCriteriaInner.ts +0 -8
- package/src/models/PutContentReorder.ts +66 -0
- package/src/models/PutCourse.ts +0 -8
- package/src/models/PutModule.ts +0 -8
- package/src/models/PutModuleReorder.ts +66 -0
- package/src/models/PutQuestion.ts +0 -8
- package/src/models/index.ts +2 -0
|
@@ -65,6 +65,12 @@ export interface PostContentQuiz {
|
|
|
65
65
|
* @memberof PostContentQuiz
|
|
66
66
|
*/
|
|
67
67
|
settings: PostContentQuizSettings;
|
|
68
|
+
/**
|
|
69
|
+
* Display order within the module. Auto-assigned if not provided.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof PostContentQuiz
|
|
72
|
+
*/
|
|
73
|
+
order?: number;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {PostContentQuizAssignment}
|
|
@@ -97,6 +103,7 @@ export function PostContentQuizFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
97
103
|
'description': json['description'] == null ? undefined : json['description'],
|
|
98
104
|
'questionSelection': PostContentQuizQuestionSelectionFromJSON(json['question_selection']),
|
|
99
105
|
'settings': PostContentQuizSettingsFromJSON(json['settings']),
|
|
106
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
100
107
|
'assignment': json['assignment'] == null ? undefined : PostContentQuizAssignmentFromJSON(json['assignment']),
|
|
101
108
|
};
|
|
102
109
|
}
|
|
@@ -116,6 +123,7 @@ export function PostContentQuizToJSONTyped(value?: PostContentQuiz | null, ignor
|
|
|
116
123
|
'description': value['description'],
|
|
117
124
|
'question_selection': PostContentQuizQuestionSelectionToJSON(value['questionSelection']),
|
|
118
125
|
'settings': PostContentQuizSettingsToJSON(value['settings']),
|
|
126
|
+
'order': value['order'],
|
|
119
127
|
'assignment': PostContentQuizAssignmentToJSON(value['assignment']),
|
|
120
128
|
};
|
|
121
129
|
}
|
|
@@ -31,6 +31,12 @@ export interface PostContentUpload {
|
|
|
31
31
|
* @memberof PostContentUpload
|
|
32
32
|
*/
|
|
33
33
|
contentType: PostContentUploadContentTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Display order within the module. Auto-assigned if not provided.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PostContentUpload
|
|
38
|
+
*/
|
|
39
|
+
order?: number;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
|
|
@@ -74,6 +80,7 @@ export function PostContentUploadFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
74
80
|
|
|
75
81
|
'name': json['name'],
|
|
76
82
|
'contentType': json['content_type'],
|
|
83
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
77
84
|
};
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -90,6 +97,7 @@ export function PostContentUploadToJSONTyped(value?: PostContentUpload | null, i
|
|
|
90
97
|
|
|
91
98
|
'name': value['name'],
|
|
92
99
|
'content_type': value['contentType'],
|
|
100
|
+
'order': value['order'],
|
|
93
101
|
};
|
|
94
102
|
}
|
|
95
103
|
|
package/src/models/PostModule.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface PostModule {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof PostModule
|
|
38
38
|
*/
|
|
39
|
-
order
|
|
39
|
+
order?: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -45,7 +45,6 @@ export interface PostModule {
|
|
|
45
45
|
export function instanceOfPostModule(value: object): value is PostModule {
|
|
46
46
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
47
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
48
|
-
if (!('order' in value) || value['order'] === undefined) return false;
|
|
49
48
|
return true;
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -61,7 +60,7 @@ export function PostModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
61
60
|
|
|
62
61
|
'name': json['name'],
|
|
63
62
|
'description': json['description'],
|
|
64
|
-
'order': json['order'],
|
|
63
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
66
|
|
|
@@ -63,12 +63,6 @@ export interface PostQuestion {
|
|
|
63
63
|
* @memberof PostQuestion
|
|
64
64
|
*/
|
|
65
65
|
topic: string;
|
|
66
|
-
/**
|
|
67
|
-
* Associated course identifier (e.g., FA 102 2022)
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof PostQuestion
|
|
70
|
-
*/
|
|
71
|
-
course?: string;
|
|
72
66
|
/**
|
|
73
67
|
* Difficulty level of the question
|
|
74
68
|
* @type {PostQuestionDifficultyLevelEnum}
|
|
@@ -141,7 +135,6 @@ export function PostQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
141
135
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
142
136
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
143
137
|
'topic': json['topic'],
|
|
144
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
145
138
|
'difficultyLevel': json['difficulty_level'],
|
|
146
139
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
147
140
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -165,7 +158,6 @@ export function PostQuestionToJSONTyped(value?: PostQuestion | null, ignoreDiscr
|
|
|
165
158
|
'correct_answer': value['correctAnswer'],
|
|
166
159
|
'explanation': value['explanation'],
|
|
167
160
|
'topic': value['topic'],
|
|
168
|
-
'course': value['course'],
|
|
169
161
|
'difficulty_level': value['difficultyLevel'],
|
|
170
162
|
'tags': value['tags'],
|
|
171
163
|
'version': value['version'],
|
|
@@ -43,12 +43,6 @@ export interface PostQuizCriteriaCriteriaInner {
|
|
|
43
43
|
* @memberof PostQuizCriteriaCriteriaInner
|
|
44
44
|
*/
|
|
45
45
|
tags?: Array<string>;
|
|
46
|
-
/**
|
|
47
|
-
* Filter by course (null for any course)
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof PostQuizCriteriaCriteriaInner
|
|
50
|
-
*/
|
|
51
|
-
course?: string;
|
|
52
46
|
/**
|
|
53
47
|
* Minimum questions to select from this criteria
|
|
54
48
|
* @type {number}
|
|
@@ -115,7 +109,6 @@ export function PostQuizCriteriaCriteriaInnerFromJSONTyped(json: any, ignoreDisc
|
|
|
115
109
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
116
110
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
117
111
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
118
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
119
112
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
120
113
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
121
114
|
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
@@ -137,7 +130,6 @@ export function PostQuizCriteriaCriteriaInnerToJSONTyped(value?: PostQuizCriteri
|
|
|
137
130
|
'difficulty_level': value['difficultyLevel'],
|
|
138
131
|
'question_type': value['questionType'],
|
|
139
132
|
'tags': value['tags'],
|
|
140
|
-
'course': value['course'],
|
|
141
133
|
'min_questions': value['minQuestions'],
|
|
142
134
|
'max_questions': value['maxQuestions'],
|
|
143
135
|
'priority': value['priority'],
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PutContentReorder
|
|
20
|
+
*/
|
|
21
|
+
export interface PutContentReorder {
|
|
22
|
+
/**
|
|
23
|
+
* Ordered list of content IDs
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof PutContentReorder
|
|
26
|
+
*/
|
|
27
|
+
ids: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutContentReorder interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutContentReorder(value: object): value is PutContentReorder {
|
|
34
|
+
if (!('ids' in value) || value['ids'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutContentReorderFromJSON(json: any): PutContentReorder {
|
|
39
|
+
return PutContentReorderFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutContentReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentReorder {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'ids': json['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutContentReorderToJSON(json: any): PutContentReorder {
|
|
53
|
+
return PutContentReorderToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutContentReorderToJSONTyped(value?: PutContentReorder | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'ids': value['ids'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/PutCourse.ts
CHANGED
|
@@ -37,12 +37,6 @@ export interface PutCourse {
|
|
|
37
37
|
* @memberof PutCourse
|
|
38
38
|
*/
|
|
39
39
|
description?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof PutCourse
|
|
44
|
-
*/
|
|
45
|
-
instructor?: string;
|
|
46
40
|
/**
|
|
47
41
|
* Whether the course is published and visible to students
|
|
48
42
|
* @type {boolean}
|
|
@@ -71,7 +65,6 @@ export function PutCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
71
65
|
'id': json['id'] == null ? undefined : json['id'],
|
|
72
66
|
'name': json['name'] == null ? undefined : json['name'],
|
|
73
67
|
'description': json['description'] == null ? undefined : json['description'],
|
|
74
|
-
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
75
68
|
'published': json['published'] == null ? undefined : json['published'],
|
|
76
69
|
};
|
|
77
70
|
}
|
|
@@ -89,7 +82,6 @@ export function PutCourseToJSONTyped(value?: Omit<PutCourse, 'id'> | null, ignor
|
|
|
89
82
|
|
|
90
83
|
'name': value['name'],
|
|
91
84
|
'description': value['description'],
|
|
92
|
-
'instructor': value['instructor'],
|
|
93
85
|
'published': value['published'],
|
|
94
86
|
};
|
|
95
87
|
}
|
package/src/models/PutModule.ts
CHANGED
|
@@ -31,12 +31,6 @@ export interface PutModule {
|
|
|
31
31
|
* @memberof PutModule
|
|
32
32
|
*/
|
|
33
33
|
description?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof PutModule
|
|
38
|
-
*/
|
|
39
|
-
order?: number;
|
|
40
34
|
/**
|
|
41
35
|
* Whether the module is published and visible to students
|
|
42
36
|
* @type {boolean}
|
|
@@ -64,7 +58,6 @@ export function PutModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
64
58
|
|
|
65
59
|
'name': json['name'] == null ? undefined : json['name'],
|
|
66
60
|
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
-
'order': json['order'] == null ? undefined : json['order'],
|
|
68
61
|
'published': json['published'] == null ? undefined : json['published'],
|
|
69
62
|
};
|
|
70
63
|
}
|
|
@@ -82,7 +75,6 @@ export function PutModuleToJSONTyped(value?: PutModule | null, ignoreDiscriminat
|
|
|
82
75
|
|
|
83
76
|
'name': value['name'],
|
|
84
77
|
'description': value['description'],
|
|
85
|
-
'order': value['order'],
|
|
86
78
|
'published': value['published'],
|
|
87
79
|
};
|
|
88
80
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PutModuleReorder
|
|
20
|
+
*/
|
|
21
|
+
export interface PutModuleReorder {
|
|
22
|
+
/**
|
|
23
|
+
* Ordered list of module IDs
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof PutModuleReorder
|
|
26
|
+
*/
|
|
27
|
+
ids: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutModuleReorder(value: object): value is PutModuleReorder {
|
|
34
|
+
if (!('ids' in value) || value['ids'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutModuleReorderFromJSON(json: any): PutModuleReorder {
|
|
39
|
+
return PutModuleReorderFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutModuleReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutModuleReorder {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'ids': json['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutModuleReorderToJSON(json: any): PutModuleReorder {
|
|
53
|
+
return PutModuleReorderToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutModuleReorderToJSONTyped(value?: PutModuleReorder | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'ids': value['ids'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -63,12 +63,6 @@ export interface PutQuestion {
|
|
|
63
63
|
* @memberof PutQuestion
|
|
64
64
|
*/
|
|
65
65
|
topic?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Associated course identifier (e.g., FA 102 2022)
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof PutQuestion
|
|
70
|
-
*/
|
|
71
|
-
course?: string;
|
|
72
66
|
/**
|
|
73
67
|
* Difficulty level of the question
|
|
74
68
|
* @type {PutQuestionDifficultyLevelEnum}
|
|
@@ -137,7 +131,6 @@ export function PutQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
137
131
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
138
132
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
139
133
|
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
140
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
141
134
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
142
135
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
143
136
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -161,7 +154,6 @@ export function PutQuestionToJSONTyped(value?: PutQuestion | null, ignoreDiscrim
|
|
|
161
154
|
'correct_answer': value['correctAnswer'],
|
|
162
155
|
'explanation': value['explanation'],
|
|
163
156
|
'topic': value['topic'],
|
|
164
|
-
'course': value['course'],
|
|
165
157
|
'difficulty_level': value['difficultyLevel'],
|
|
166
158
|
'tags': value['tags'],
|
|
167
159
|
'version': value['version'],
|
package/src/models/index.ts
CHANGED
|
@@ -195,10 +195,12 @@ export * from './PostVerifyManifest';
|
|
|
195
195
|
export * from './PostVerifyManifestItemsInner';
|
|
196
196
|
export * from './PostVerifyManifestResourcesInner';
|
|
197
197
|
export * from './PutContent';
|
|
198
|
+
export * from './PutContentReorder';
|
|
198
199
|
export * from './PutContentVersion';
|
|
199
200
|
export * from './PutCourse';
|
|
200
201
|
export * from './PutCourseEnrollment';
|
|
201
202
|
export * from './PutModule';
|
|
203
|
+
export * from './PutModuleReorder';
|
|
202
204
|
export * from './PutPortalBranding';
|
|
203
205
|
export * from './PutQuestion';
|
|
204
206
|
export * from './PutQuestionAnswerChoicesInner';
|