@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
|
@@ -42,6 +42,12 @@ export interface PostContentQuiz {
|
|
|
42
42
|
* @memberof PostContentQuiz
|
|
43
43
|
*/
|
|
44
44
|
settings: PostContentQuizSettings;
|
|
45
|
+
/**
|
|
46
|
+
* Display order within the module. Auto-assigned if not provided.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof PostContentQuiz
|
|
49
|
+
*/
|
|
50
|
+
order?: number;
|
|
45
51
|
/**
|
|
46
52
|
*
|
|
47
53
|
* @type {PostContentQuizAssignment}
|
|
@@ -45,6 +45,7 @@ function PostContentQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'description': json['description'] == null ? undefined : json['description'],
|
|
46
46
|
'questionSelection': (0, PostContentQuizQuestionSelection_1.PostContentQuizQuestionSelectionFromJSON)(json['question_selection']),
|
|
47
47
|
'settings': (0, PostContentQuizSettings_1.PostContentQuizSettingsFromJSON)(json['settings']),
|
|
48
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
48
49
|
'assignment': json['assignment'] == null ? undefined : (0, PostContentQuizAssignment_1.PostContentQuizAssignmentFromJSON)(json['assignment']),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -60,6 +61,7 @@ function PostContentQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
'description': value['description'],
|
|
61
62
|
'question_selection': (0, PostContentQuizQuestionSelection_1.PostContentQuizQuestionSelectionToJSON)(value['questionSelection']),
|
|
62
63
|
'settings': (0, PostContentQuizSettings_1.PostContentQuizSettingsToJSON)(value['settings']),
|
|
64
|
+
'order': value['order'],
|
|
63
65
|
'assignment': (0, PostContentQuizAssignment_1.PostContentQuizAssignmentToJSON)(value['assignment']),
|
|
64
66
|
};
|
|
65
67
|
}
|
|
@@ -27,6 +27,12 @@ export interface PostContentUpload {
|
|
|
27
27
|
* @memberof PostContentUpload
|
|
28
28
|
*/
|
|
29
29
|
contentType: PostContentUploadContentTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Display order within the module. Auto-assigned if not provided.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostContentUpload
|
|
34
|
+
*/
|
|
35
|
+
order?: number;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* @export
|
|
@@ -55,6 +55,7 @@ function PostContentUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
return {
|
|
56
56
|
'name': json['name'],
|
|
57
57
|
'contentType': json['content_type'],
|
|
58
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function PostContentUploadToJSON(json) {
|
|
@@ -67,5 +68,6 @@ function PostContentUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
68
|
return {
|
|
68
69
|
'name': value['name'],
|
|
69
70
|
'content_type': value['contentType'],
|
|
71
|
+
'order': value['order'],
|
|
70
72
|
};
|
|
71
73
|
}
|
|
@@ -26,8 +26,6 @@ function instanceOfPostModule(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('description' in value) || value['description'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('order' in value) || value['order'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
function PostModuleFromJSON(json) {
|
|
@@ -40,7 +38,7 @@ function PostModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
38
|
return {
|
|
41
39
|
'name': json['name'],
|
|
42
40
|
'description': json['description'],
|
|
43
|
-
'order': json['order'],
|
|
41
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
function PostModuleToJSON(json) {
|
|
@@ -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}
|
|
@@ -67,7 +67,6 @@ function PostQuestionFromJSONTyped(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'],
|
|
@@ -87,7 +86,6 @@ function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
86
|
'correct_answer': value['correctAnswer'],
|
|
88
87
|
'explanation': value['explanation'],
|
|
89
88
|
'topic': value['topic'],
|
|
90
|
-
'course': value['course'],
|
|
91
89
|
'difficulty_level': value['difficultyLevel'],
|
|
92
90
|
'tags': value['tags'],
|
|
93
91
|
'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}
|
|
@@ -56,7 +56,6 @@ function PostQuizCriteriaCriteriaInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
57
57
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
58
58
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
59
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
60
59
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
61
60
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
62
61
|
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
@@ -74,7 +73,6 @@ function PostQuizCriteriaCriteriaInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
74
73
|
'difficulty_level': value['difficultyLevel'],
|
|
75
74
|
'question_type': value['questionType'],
|
|
76
75
|
'tags': value['tags'],
|
|
77
|
-
'course': value['course'],
|
|
78
76
|
'min_questions': value['minQuestions'],
|
|
79
77
|
'max_questions': value['maxQuestions'],
|
|
80
78
|
'priority': value['priority'],
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutContentReorder
|
|
16
|
+
*/
|
|
17
|
+
export interface PutContentReorder {
|
|
18
|
+
/**
|
|
19
|
+
* Ordered list of content IDs
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof PutContentReorder
|
|
22
|
+
*/
|
|
23
|
+
ids: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutContentReorder interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutContentReorder(value: object): value is PutContentReorder;
|
|
29
|
+
export declare function PutContentReorderFromJSON(json: any): PutContentReorder;
|
|
30
|
+
export declare function PutContentReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentReorder;
|
|
31
|
+
export declare function PutContentReorderToJSON(json: any): PutContentReorder;
|
|
32
|
+
export declare function PutContentReorderToJSONTyped(value?: PutContentReorder | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutContentReorder = instanceOfPutContentReorder;
|
|
17
|
+
exports.PutContentReorderFromJSON = PutContentReorderFromJSON;
|
|
18
|
+
exports.PutContentReorderFromJSONTyped = PutContentReorderFromJSONTyped;
|
|
19
|
+
exports.PutContentReorderToJSON = PutContentReorderToJSON;
|
|
20
|
+
exports.PutContentReorderToJSONTyped = PutContentReorderToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutContentReorder interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutContentReorder(value) {
|
|
25
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutContentReorderFromJSON(json) {
|
|
30
|
+
return PutContentReorderFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutContentReorderFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ids': json['ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutContentReorderToJSON(json) {
|
|
41
|
+
return PutContentReorderToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutContentReorderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ids': value['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface PutCourse {
|
|
|
33
33
|
* @memberof PutCourse
|
|
34
34
|
*/
|
|
35
35
|
description?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof PutCourse
|
|
40
|
-
*/
|
|
41
|
-
instructor?: string;
|
|
42
36
|
/**
|
|
43
37
|
* Whether the course is published and visible to students
|
|
44
38
|
* @type {boolean}
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -35,7 +35,6 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'id': json['id'] == null ? undefined : json['id'],
|
|
36
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
37
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
-
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
39
38
|
'published': json['published'] == null ? undefined : json['published'],
|
|
40
39
|
};
|
|
41
40
|
}
|
|
@@ -49,7 +48,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
48
|
return {
|
|
50
49
|
'name': value['name'],
|
|
51
50
|
'description': value['description'],
|
|
52
|
-
'instructor': value['instructor'],
|
|
53
51
|
'published': value['published'],
|
|
54
52
|
};
|
|
55
53
|
}
|
|
@@ -27,12 +27,6 @@ export interface PutModule {
|
|
|
27
27
|
* @memberof PutModule
|
|
28
28
|
*/
|
|
29
29
|
description?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof PutModule
|
|
34
|
-
*/
|
|
35
|
-
order?: number;
|
|
36
30
|
/**
|
|
37
31
|
* Whether the module is published and visible to students
|
|
38
32
|
* @type {boolean}
|
package/dist/models/PutModule.js
CHANGED
|
@@ -34,7 +34,6 @@ function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
-
'order': json['order'] == null ? undefined : json['order'],
|
|
38
37
|
'published': json['published'] == null ? undefined : json['published'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
@@ -48,7 +47,6 @@ function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
47
|
return {
|
|
49
48
|
'name': value['name'],
|
|
50
49
|
'description': value['description'],
|
|
51
|
-
'order': value['order'],
|
|
52
50
|
'published': value['published'],
|
|
53
51
|
};
|
|
54
52
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutModuleReorder
|
|
16
|
+
*/
|
|
17
|
+
export interface PutModuleReorder {
|
|
18
|
+
/**
|
|
19
|
+
* Ordered list of module IDs
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof PutModuleReorder
|
|
22
|
+
*/
|
|
23
|
+
ids: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutModuleReorder(value: object): value is PutModuleReorder;
|
|
29
|
+
export declare function PutModuleReorderFromJSON(json: any): PutModuleReorder;
|
|
30
|
+
export declare function PutModuleReorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutModuleReorder;
|
|
31
|
+
export declare function PutModuleReorderToJSON(json: any): PutModuleReorder;
|
|
32
|
+
export declare function PutModuleReorderToJSONTyped(value?: PutModuleReorder | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutModuleReorder = instanceOfPutModuleReorder;
|
|
17
|
+
exports.PutModuleReorderFromJSON = PutModuleReorderFromJSON;
|
|
18
|
+
exports.PutModuleReorderFromJSONTyped = PutModuleReorderFromJSONTyped;
|
|
19
|
+
exports.PutModuleReorderToJSON = PutModuleReorderToJSON;
|
|
20
|
+
exports.PutModuleReorderToJSONTyped = PutModuleReorderToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutModuleReorder interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutModuleReorder(value) {
|
|
25
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutModuleReorderFromJSON(json) {
|
|
30
|
+
return PutModuleReorderFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutModuleReorderFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ids': json['ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutModuleReorderToJSON(json) {
|
|
41
|
+
return PutModuleReorderToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutModuleReorderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ids': value['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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}
|
|
@@ -59,7 +59,6 @@ function PutQuestionFromJSONTyped(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'] == null ? undefined : json['topic'],
|
|
62
|
-
'course': json['course'] == null ? undefined : json['course'],
|
|
63
62
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : 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 @@ function PutQuestionToJSONTyped(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'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -193,10 +193,12 @@ export * from './PostVerifyManifest';
|
|
|
193
193
|
export * from './PostVerifyManifestItemsInner';
|
|
194
194
|
export * from './PostVerifyManifestResourcesInner';
|
|
195
195
|
export * from './PutContent';
|
|
196
|
+
export * from './PutContentReorder';
|
|
196
197
|
export * from './PutContentVersion';
|
|
197
198
|
export * from './PutCourse';
|
|
198
199
|
export * from './PutCourseEnrollment';
|
|
199
200
|
export * from './PutModule';
|
|
201
|
+
export * from './PutModuleReorder';
|
|
200
202
|
export * from './PutPortalBranding';
|
|
201
203
|
export * from './PutQuestion';
|
|
202
204
|
export * from './PutQuestionAnswerChoicesInner';
|
package/dist/models/index.js
CHANGED
|
@@ -211,10 +211,12 @@ __exportStar(require("./PostVerifyManifest"), exports);
|
|
|
211
211
|
__exportStar(require("./PostVerifyManifestItemsInner"), exports);
|
|
212
212
|
__exportStar(require("./PostVerifyManifestResourcesInner"), exports);
|
|
213
213
|
__exportStar(require("./PutContent"), exports);
|
|
214
|
+
__exportStar(require("./PutContentReorder"), exports);
|
|
214
215
|
__exportStar(require("./PutContentVersion"), exports);
|
|
215
216
|
__exportStar(require("./PutCourse"), exports);
|
|
216
217
|
__exportStar(require("./PutCourseEnrollment"), exports);
|
|
217
218
|
__exportStar(require("./PutModule"), exports);
|
|
219
|
+
__exportStar(require("./PutModuleReorder"), exports);
|
|
218
220
|
__exportStar(require("./PutPortalBranding"), exports);
|
|
219
221
|
__exportStar(require("./PutQuestion"), exports);
|
|
220
222
|
__exportStar(require("./PutQuestionAnswerChoicesInner"), exports);
|
package/docs/ContentApi.md
CHANGED
|
@@ -22,6 +22,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
22
22
|
| [**postContentSession**](ContentApi.md#postcontentsession) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | Post a new content session |
|
|
23
23
|
| [**postContentUpload**](ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload |
|
|
24
24
|
| [**putContent**](ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id |
|
|
25
|
+
| [**putContentReorder**](ContentApi.md#putcontentreorder) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/reorder | Reorder content in a module |
|
|
25
26
|
| [**putContentVersion**](ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version |
|
|
26
27
|
| [**setScormValue**](ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value |
|
|
27
28
|
| [**terminateScormSession**](ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session |
|
|
@@ -1352,6 +1353,77 @@ No authorization required
|
|
|
1352
1353
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1353
1354
|
|
|
1354
1355
|
|
|
1356
|
+
## putContentReorder
|
|
1357
|
+
|
|
1358
|
+
> putContentReorder(moduleId, courseId, putContentReorder)
|
|
1359
|
+
|
|
1360
|
+
Reorder content in a module
|
|
1361
|
+
|
|
1362
|
+
### Example
|
|
1363
|
+
|
|
1364
|
+
```ts
|
|
1365
|
+
import {
|
|
1366
|
+
Configuration,
|
|
1367
|
+
ContentApi,
|
|
1368
|
+
} from '@easyedu/js-lsm-api';
|
|
1369
|
+
import type { PutContentReorderRequest } from '@easyedu/js-lsm-api';
|
|
1370
|
+
|
|
1371
|
+
async function example() {
|
|
1372
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1373
|
+
const api = new ContentApi();
|
|
1374
|
+
|
|
1375
|
+
const body = {
|
|
1376
|
+
// string
|
|
1377
|
+
moduleId: moduleId_example,
|
|
1378
|
+
// string
|
|
1379
|
+
courseId: courseId_example,
|
|
1380
|
+
// PutContentReorder | Ordered list of content IDs
|
|
1381
|
+
putContentReorder: ...,
|
|
1382
|
+
} satisfies PutContentReorderRequest;
|
|
1383
|
+
|
|
1384
|
+
try {
|
|
1385
|
+
const data = await api.putContentReorder(body);
|
|
1386
|
+
console.log(data);
|
|
1387
|
+
} catch (error) {
|
|
1388
|
+
console.error(error);
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
// Run the test
|
|
1393
|
+
example().catch(console.error);
|
|
1394
|
+
```
|
|
1395
|
+
|
|
1396
|
+
### Parameters
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
| Name | Type | Description | Notes |
|
|
1400
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1401
|
+
| **moduleId** | `string` | | [Defaults to `undefined`] |
|
|
1402
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
1403
|
+
| **putContentReorder** | [PutContentReorder](PutContentReorder.md) | Ordered list of content IDs | |
|
|
1404
|
+
|
|
1405
|
+
### Return type
|
|
1406
|
+
|
|
1407
|
+
`void` (Empty response body)
|
|
1408
|
+
|
|
1409
|
+
### Authorization
|
|
1410
|
+
|
|
1411
|
+
No authorization required
|
|
1412
|
+
|
|
1413
|
+
### HTTP request headers
|
|
1414
|
+
|
|
1415
|
+
- **Content-Type**: `application/json`
|
|
1416
|
+
- **Accept**: Not defined
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
### HTTP response details
|
|
1420
|
+
| Status code | Description | Response headers |
|
|
1421
|
+
|-------------|-------------|------------------|
|
|
1422
|
+
| **200** | Content reordered successfully | - |
|
|
1423
|
+
|
|
1424
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1425
|
+
|
|
1426
|
+
|
|
1355
1427
|
## putContentVersion
|
|
1356
1428
|
|
|
1357
1429
|
> GetContentVersion putContentVersion(contentId, moduleId, courseId, versionId, putContentVersion)
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`difficultyLevels` | Array<string>
|
|
11
11
|
`questionTypes` | Array<string>
|
|
12
12
|
`tags` | Array<string>
|
|
13
|
-
`course` | string
|
|
14
13
|
|
|
15
14
|
## Example
|
|
16
15
|
|
|
@@ -23,7 +22,6 @@ const example = {
|
|
|
23
22
|
"difficultyLevels": null,
|
|
24
23
|
"questionTypes": null,
|
|
25
24
|
"tags": null,
|
|
26
|
-
"course": null,
|
|
27
25
|
} satisfies CriteriaBasedSelectionCriteria
|
|
28
26
|
|
|
29
27
|
console.log(example)
|
package/docs/GetQuestion.md
CHANGED
|
@@ -13,7 +13,6 @@ Name | Type
|
|
|
13
13
|
`correctAnswer` | string
|
|
14
14
|
`explanation` | string
|
|
15
15
|
`topic` | string
|
|
16
|
-
`course` | string
|
|
17
16
|
`difficultyLevel` | string
|
|
18
17
|
`tags` | Array<string>
|
|
19
18
|
`version` | string
|
|
@@ -37,7 +36,6 @@ const example = {
|
|
|
37
36
|
"correctAnswer": null,
|
|
38
37
|
"explanation": null,
|
|
39
38
|
"topic": null,
|
|
40
|
-
"course": null,
|
|
41
39
|
"difficultyLevel": null,
|
|
42
40
|
"tags": null,
|
|
43
41
|
"version": null,
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`topic` | string
|
|
10
|
-
`course` | string
|
|
11
10
|
`questionType` | string
|
|
12
11
|
`difficultyLevel` | string
|
|
13
12
|
`tags` | Array<string>
|
|
@@ -23,7 +22,6 @@ import type { GetQuestionListFilters } from '@easyedu/js-lsm-api'
|
|
|
23
22
|
// TODO: Update the object below with actual values
|
|
24
23
|
const example = {
|
|
25
24
|
"topic": null,
|
|
26
|
-
"course": null,
|
|
27
25
|
"questionType": null,
|
|
28
26
|
"difficultyLevel": null,
|
|
29
27
|
"tags": null,
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`difficultyLevel` | string
|
|
13
13
|
`questionType` | string
|
|
14
14
|
`tags` | Array<string>
|
|
15
|
-
`course` | string
|
|
16
15
|
`minQuestions` | number
|
|
17
16
|
`maxQuestions` | number
|
|
18
17
|
`priority` | number
|
|
@@ -33,7 +32,6 @@ const example = {
|
|
|
33
32
|
"difficultyLevel": null,
|
|
34
33
|
"questionType": null,
|
|
35
34
|
"tags": null,
|
|
36
|
-
"course": null,
|
|
37
35
|
"minQuestions": null,
|
|
38
36
|
"maxQuestions": null,
|
|
39
37
|
"priority": null,
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`difficultyLevel` | string
|
|
13
13
|
`questionType` | string
|
|
14
14
|
`tags` | Array<string>
|
|
15
|
-
`course` | string
|
|
16
15
|
`minQuestions` | number
|
|
17
16
|
`maxQuestions` | number
|
|
18
17
|
`priority` | number
|
|
@@ -33,7 +32,6 @@ const example = {
|
|
|
33
32
|
"difficultyLevel": null,
|
|
34
33
|
"questionType": null,
|
|
35
34
|
"tags": null,
|
|
36
|
-
"course": null,
|
|
37
35
|
"minQuestions": null,
|
|
38
36
|
"maxQuestions": null,
|
|
39
37
|
"priority": null,
|
|
@@ -11,7 +11,6 @@ Name | Type
|
|
|
11
11
|
`questionType` | string
|
|
12
12
|
`topic` | string
|
|
13
13
|
`difficultyLevel` | string
|
|
14
|
-
`course` | string
|
|
15
14
|
`explanation` | string
|
|
16
15
|
`tags` | Array<string>
|
|
17
16
|
`versionNumber` | number
|
|
@@ -29,7 +28,6 @@ const example = {
|
|
|
29
28
|
"questionType": null,
|
|
30
29
|
"topic": null,
|
|
31
30
|
"difficultyLevel": null,
|
|
32
|
-
"course": null,
|
|
33
31
|
"explanation": null,
|
|
34
32
|
"tags": null,
|
|
35
33
|
"versionNumber": null,
|